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/test | |
parent | 89289d875da108c42ca013f33597eda46cb6eb53 (diff) | |
download | bitcoin-9e38d0f7451092f6a16853a2b0a37b68a5b3c3fb.tar.xz |
Separate core memory usage computation in core_memusage.h
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/coins_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index 34b311b804..13d848311a 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -70,9 +70,9 @@ public: // Manually recompute the dynamic usage of the whole data, and compare it. size_t ret = memusage::DynamicUsage(cacheCoins); for (CCoinsMap::iterator it = cacheCoins.begin(); it != cacheCoins.end(); it++) { - ret += memusage::DynamicUsage(it->second.coins); + ret += it->second.coins.DynamicMemoryUsage(); } - BOOST_CHECK_EQUAL(memusage::DynamicUsage(*this), ret); + BOOST_CHECK_EQUAL(DynamicMemoryUsage(), ret); } }; |