diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-07-17 13:46:18 -0400 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-07-20 11:17:53 -0400 |
commit | 9e38d0f7451092f6a16853a2b0a37b68a5b3c3fb (patch) | |
tree | 469af8922b6454945e160b99e118d35873470180 /src/coins.h | |
parent | 89289d875da108c42ca013f33597eda46cb6eb53 (diff) |
Separate core memory usage computation in core_memusage.h
Diffstat (limited to 'src/coins.h')
-rw-r--r-- | src/coins.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coins.h b/src/coins.h index a4671645df..bf4a777b8a 100644 --- a/src/coins.h +++ b/src/coins.h @@ -7,6 +7,7 @@ #define BITCOIN_COINS_H #include "compressor.h" +#include "core_memusage.h" #include "memusage.h" #include "serialize.h" #include "uint256.h" @@ -257,8 +258,7 @@ public: size_t DynamicMemoryUsage() const { size_t ret = memusage::DynamicUsage(vout); BOOST_FOREACH(const CTxOut &out, vout) { - const std::vector<unsigned char> *script = &out.scriptPubKey; - ret += memusage::DynamicUsage(*script); + ret += RecursiveDynamicUsage(out.scriptPubKey); } return ret; } |