diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-09-17 14:27:55 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-09-17 14:28:10 -0400 |
commit | b3067f4338d901394fb0237567cb5e19ccee5f8a (patch) | |
tree | 820efd5d2656556098b7a67e57ee3bedbb44f371 /src/test/crypto_tests.cpp | |
parent | 99beda47f56a39e789639a069910763a4af0647e (diff) | |
parent | 8573429d46f1e014663695e95109c10dfe4d54c9 (diff) |
Merge #16865: test: add some unit tests for merkle.cpp
8573429d46f1e014663695e95109c10dfe4d54c9 test: add some unit tests for merkle.cpp (soroosh-sdi)
Pull request description:
following situations are covered:
- empty block
- one Tx
- Merkle root of a block with odd Txs should not change with repeating
last one
- Merkle root is computed with combining Merkle root of left subtree and right subtree
- block witness is Merkle root of a block when setting first Tx
to zero.
Signed-off-by: soroosh-sdi <soroosh.sardari@gmail.com>
ACKs for top commit:
laanwj:
ACK 8573429d46f1e014663695e95109c10dfe4d54c9
Tree-SHA512: e12228171de8f8480f173c9d9d0359f00f46bf09075e0767f5f1a367478a1b7b6d177d230f7e930914915cd2c6b66b18d24b1682f1233c38e97954ba331e5773
Diffstat (limited to 'src/test/crypto_tests.cpp')
0 files changed, 0 insertions, 0 deletions