In function get_transaction_segwit_digest , transaction is no longer copied (Code works well even without copying the transaction) . Also in struct.pack, unsigned long is changed to unsigned int. (<I for unsigned int, is explicitly used for 4 bytes in Python's struct module rather than <L).
In function
get_transaction_segwit_digest
, transaction is no longer copied (Code works well even without copying the transaction) . Also instruct.pack
, unsigned long is changed to unsigned int. (<I
for unsigned int, is explicitly used for 4 bytes in Python's struct module rather than<L
).