Merge rust-bitcoin/rust-bitcoin#711: Add unit test for bitcoin_merkle_root functions

e04795093f Add unit test for bitcoin_merkle_root functions (Tobin Harding)

Pull request description:

  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 was done in response to #394.

ACKs for top commit:
  RCasatta:
    ACK e04795093f
  Kixunil:
    ACK e04795093f

Tree-SHA512: 68a1cdb3612a9beb6359e3ced1b00aeee48354d9882f13ed56afe5e01062f81deeaad7b1ffb7c1110f5352170f5587704a98fb5304a9bad309ee283223bad22b
This commit is contained in:
Riccardo Casatta 2021-11-22 11:33:15 +01:00
commit 615a900c88
No known key found for this signature in database
GPG Key ID: FD986A969E450397
1 changed files with 29 additions and 0 deletions

File diff suppressed because one or more lines are too long