python-bitcoinlib
python-bitcoinlib copied to clipboard
witness flagbyte errors
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)