diff --git a/testing/psbt.py b/testing/psbt.py index 13035658..ca556d7d 100644 --- a/testing/psbt.py +++ b/testing/psbt.py @@ -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 \ diff --git a/testing/test_multisig.py b/testing/test_multisig.py index fafa0fdd..8600c6d6 100644 --- a/testing/test_multisig.py +++ b/testing/test_multisig.py @@ -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())