Changeset View
Changeset View
Standalone View
Standalone View
src/script/scriptcache.h
// Copyright (c) 2017 - The Bitcoin Developers | // Copyright (c) 2017 - The Bitcoin Developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_SCRIPT_SCRIPTCACHE_H | #ifndef BITCOIN_SCRIPT_SCRIPTCACHE_H | ||||
#define BITCOIN_SCRIPT_SCRIPTCACHE_H | #define BITCOIN_SCRIPT_SCRIPTCACHE_H | ||||
#include "uint256.h" | #include <uint256.h> | ||||
#include <cstdint> | #include <cstdint> | ||||
class CTransaction; | class CTransaction; | ||||
// DoS prevention: limit cache size to 32MB (over 1000000 entries on 64-bit | // DoS prevention: limit cache size to 32MB (over 1000000 entries on 64-bit | ||||
// systems). Due to how we count cache size, actual memory usage is slightly | // systems). Due to how we count cache size, actual memory usage is slightly | ||||
// more (~32.25 MB) | // more (~32.25 MB) | ||||
Show All 17 Lines |