mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 14:25:53 +01:00
eece63fa72
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. |
||
---|---|---|
.. | ||
consensus.h | ||
merkle.cpp | ||
merkle.h | ||
params.h | ||
validation.h |