aboutsummaryrefslogtreecommitdiff
path: root/src/test/coins_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-09-24 03:19:04 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-24 03:19:04 +0200
commit7c70438dc67547e83953ba0343a071fae304ce65 (patch)
tree88683dd773ad889a630e5262b5051e85262c6bdc /src/test/coins_tests.cpp
parented27e53c9be3c2e194b3e7cff85933531aef4cc8 (diff)
downloadbitcoin-7c70438dc67547e83953ba0343a071fae304ce65.tar.xz
Get rid of the dummy CCoinsViewCache constructor arg
Diffstat (limited to 'src/test/coins_tests.cpp')
-rw-r--r--src/test/coins_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp
index 214aaff900..3ecd301bc7 100644
--- a/src/test/coins_tests.cpp
+++ b/src/test/coins_tests.cpp
@@ -90,7 +90,7 @@ BOOST_AUTO_TEST_CASE(coins_cache_simulation_test)
// The cache stack.
CCoinsViewTest base; // A CCoinsViewTest at the bottom.
std::vector<CCoinsViewCache*> stack; // A stack of CCoinsViewCaches on top.
- stack.push_back(new CCoinsViewCache(base, false)); // Start with one cache.
+ stack.push_back(new CCoinsViewCache(&base)); // Start with one cache.
// Use a limited set of random transaction ids, so we do test overwriting entries.
std::vector<uint256> txids;
@@ -151,7 +151,7 @@ BOOST_AUTO_TEST_CASE(coins_cache_simulation_test)
} else {
removed_all_caches = true;
}
- stack.push_back(new CCoinsViewCache(*tip, false));
+ stack.push_back(new CCoinsViewCache(tip));
if (stack.size() == 4) {
reached_4_caches = true;
}