fix test_iss6743 after removal of SIGHASH_ALL from psbt input
This commit is contained in:
parent
e039fb8603
commit
ce1026cb4b
@ -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 \
|
||||
|
||||
@ -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())
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user