Add unit test for bitcoin_merkle_root functions

We test `bitcoin_merkle_root` over in the `blockdata::block` module.
Although the `bitcoin_merkle_root` and `bitcoin_merkle_root_inline`
functions are almost identical there is enough index manipulation done
that it is not immediately obvious that the code is error free.

Add a unit test that verifies that the two functions return the same
resulting merkle root.
This commit is contained in:
Tobin Harding 2021-11-19 11:18:51 +11:00
parent df72500465
commit e04795093f
1 changed files with 29 additions and 0 deletions

File diff suppressed because one or more lines are too long