-
Notifications
You must be signed in to change notification settings - Fork 640
Open
Description
python-bitcoinlib/bitcoin/core/__init__.py
Line 425 in ebc85bf
if markerbyte == 0 and flagbyte == 1: |
if flagbyte != 1, then it will try to deserialize as non-witness, whereas Core in UnserializeTransaction
checks that flags are actually expected (only first bit is expected now) and will do throw std::ios_base::failure("Unknown transaction optional data");
if there's unexpected bits set in flags.
It certainly looks like that the CTransaction.deserialize()
is not correct and should fail if it sees flagbytes != 1
Metadata
Metadata
Assignees
Labels
No labels