python-bitcoinlib icon indicating copy to clipboard operation
python-bitcoinlib copied to clipboard

witness flagbyte errors

Open ThomasRossi opened this issue 4 years ago • 0 comments

This allows the library to rise two errors:

  • flagbyte !=1 ( #220 )
  • flagbute == 1 but wit.is_null() ( #221 )

An invalid_tx is added with flagbyte 02 to test, that tx body is taken from a bitcoin core test tx, which also have values in the data, therefore test_transaction is modified to accept json_prevout with 4 elements (the value of the output being the 4th elem)

ThomasRossi avatar Nov 18 '20 21:11 ThomasRossi