aboutsummaryrefslogtreecommitdiff
path: root/src/test/main_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2015-11-17 17:35:44 +0100
committerPieter Wuille <[email protected]>2015-11-27 15:36:52 +0100
commiteece63fa72566068cb2a1bf85c95a72a5ba59bc9 (patch)
tree093633b56700e77f3bc4d8fda2b3032d2aa7c4dd /src/test/main_tests.cpp
parentAdd merkle.{h,cpp}, generic merkle root/branch algorithm (diff)
downloaddiscoin-eece63fa72566068cb2a1bf85c95a72a5ba59bc9.tar.xz
discoin-eece63fa72566068cb2a1bf85c95a72a5ba59bc9.zip
Switch blocks to a constant-space Merkle root/branch algorithm.
This switches the Merkle tree logic for blocks to one that runs in constant (small) space. The old code is moved to tests, and a new test is added that for various combinations of block sizes, transaction positions to compute a branch for, and mutations: * Verifies that the old code and new code agree for the Merkle root. * Verifies that the old code and new code agree for the Merkle branch. * Verifies that the computed Merkle branch is valid. * Verifies that mutations don't change the Merkle root. * Verifies that mutations are correctly detected.
Diffstat (limited to 'src/test/main_tests.cpp')
-rw-r--r--src/test/main_tests.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/main_tests.cpp b/src/test/main_tests.cpp
index 21ae46d6e..2b92d239e 100644
--- a/src/test/main_tests.cpp
+++ b/src/test/main_tests.cpp
@@ -72,5 +72,4 @@ BOOST_AUTO_TEST_CASE(test_combiner_all)
Test.disconnect(&ReturnTrue);
BOOST_CHECK(Test());
}
-
BOOST_AUTO_TEST_SUITE_END()