This PR introduces a third test type — "utreexo".
It is the same as full block tests but with Utreexo data section that includes initial accumulator state, inclusion proofs, and expected accumulator state.
The test program args are extended with Utreexo args in a backwards compatible manner, i.e. if the Utreexo section is missing, the program would run in "full" mode.
The utreexo test data generation is a bit different:
First the script indexes from genesis up to the specified block height
Only last block is included in the test
This is necessary to obtain the Utreexo state before the update
This PR introduces a third test type — "utreexo". It is the same as full block tests but with Utreexo data section that includes initial accumulator state, inclusion proofs, and expected accumulator state.
The test program args are extended with Utreexo args in a backwards compatible manner, i.e. if the Utreexo section is missing, the program would run in "full" mode.
The utreexo test data generation is a bit different: