fix test_iss6743 after removal of SIGHASH_ALL from psbt input

This commit is contained in:
scgbckbone 2025-01-18 06:20:00 +01:00 committed by doc-hex
parent e039fb8603
commit ce1026cb4b
2 changed files with 3 additions and 2 deletions

View File

@ -135,7 +135,8 @@ class BasicPSBTInput(PSBTSection):
def __eq__(a, b):
if a.sighash != b.sighash:
if a.sighash is not None and b.sighash is not None:
# no sighash == SIGHASH_ALL
if {a.sighash, b.sighash} != {None, 1}:
return False
rv = a.utxo == b.utxo and \

View File

@ -2034,7 +2034,7 @@ def test_iss6743(repeat, set_seed_words, sim_execfile, try_sign):
# sign a multisig, with xpubs in globals
_, out_psbt = try_sign(psbt_b4, accept=True, accept_ms_import=True)
assert out_psbt != psbt_wrong
assert out_psbt == psbt_right
assert BasicPSBT().parse(out_psbt) == BasicPSBT().parse(psbt_right)
open('debug/i6.psbt', 'wt').write(out_psbt.hex())