This makes the tests very fragile and it requires larges changes to the tests when block-numbering or utxo-assignment changes. Making all the changes necessary to test a new non-sequential UTXO scheme would take many hours and would be error prone.
The tests should be able to fill in the necessary values for block numbers and utxo ids automatically.
Currently, many values in both the Python and JS test suites are hard-coded. For example, in
demo.py
we see lines like:This makes the tests very fragile and it requires larges changes to the tests when block-numbering or utxo-assignment changes. Making all the changes necessary to test a new non-sequential UTXO scheme would take many hours and would be error prone.
The tests should be able to fill in the necessary values for block numbers and utxo ids automatically.