fix tests

This commit is contained in:
scgbckbone 2026-06-23 22:09:39 +02:00 committed by doc-hex
parent 0d04e5e1f8
commit eb112eb3a1
2 changed files with 9 additions and 2 deletions

View File

@ -283,7 +283,7 @@ def test_bip322_0th_input_witness_utxo_requires_zero_value(bip322_txn, start_sig
@pytest.mark.parametrize("ins", [
[["p2wpkh", None, None], ["p2wpkh", None, 10000000], ["p2wpkh", None, 10000000]],
[["p2wpkh", None, None], ["p2sh-p2wpkh", None, 10000000], ["p2pkh", None, 10000000]],
[["p2sh-p2wpkh", None, None], ["p2sh-p2wpkh", None, 10000000], ["p2sh-p2wpkh", None, 10000000]],
[["p2pkh", None, None], ["p2wpkh", None, 10000000], ["p2sh-p2wpkh", None, 10000000]],
])
def test_bip322_Xth_input_witness_utxo(ins, bip322_txn, start_sign, cap_story, end_sign,

View File

@ -1539,7 +1539,14 @@ def test_ms_sign_myself(M, use_regtest, make_myself_wallet, addr_fmt, num_ins, d
use_regtest()
# create a wallet, with 3 bip39 pw's
keys, select_wallet = make_myself_wallet(M, do_import=(not incl_xpubs))
if addr_fmt == AF_P2WSH:
af = "p2wsh"
elif addr_fmt == AF_P2SH:
af = "p2sh"
else:
assert False
keys, select_wallet = make_myself_wallet(M, do_import=(not incl_xpubs), addr_fmt=af)
N = len(keys)
assert M<=N