Changeset View
Changeset View
Standalone View
Standalone View
src/core_memusage.h
// Copyright (c) 2015-2016 The Bitcoin Core developers | // Copyright (c) 2015-2016 The Bitcoin Core 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_CORE_MEMUSAGE_H | #ifndef BITCOIN_CORE_MEMUSAGE_H | ||||
#define BITCOIN_CORE_MEMUSAGE_H | #define BITCOIN_CORE_MEMUSAGE_H | ||||
#include "memusage.h" | #include <memusage.h> | ||||
#include "primitives/block.h" | #include <primitives/block.h> | ||||
#include "primitives/transaction.h" | #include <primitives/transaction.h> | ||||
static inline size_t RecursiveDynamicUsage(const CScript &script) { | static inline size_t RecursiveDynamicUsage(const CScript &script) { | ||||
return memusage::DynamicUsage(*static_cast<const CScriptBase *>(&script)); | return memusage::DynamicUsage(*static_cast<const CScriptBase *>(&script)); | ||||
} | } | ||||
static inline size_t RecursiveDynamicUsage(const COutPoint &out) { | static inline size_t RecursiveDynamicUsage(const COutPoint &out) { | ||||
return 0; | return 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |