remove same account constraint

This commit is contained in:
scgbckbone 2024-09-09 18:21:28 +02:00 committed by doc-hex
parent ee2b721c27
commit dee80eef3a

View File

@ -1605,8 +1605,6 @@ async def validate_xpub_for_ms(obj, af_str, deriv, chain, my_xfp, xpubs):
ln = obj.get(af_str)
if not deriv:
deriv = n_deriv
else:
assert deriv == n_deriv, "wrong derivation: %s != %s" % (deriv, n_deriv)
return MultisigWallet.check_xpub(xfp, ln, deriv, chain.ctype, my_xfp, xpubs), deriv
@ -1756,6 +1754,9 @@ async def ondevice_multisig_create(mode='p2wsh', addr_fmt=AF_P2WSH, is_qr=False)
await ux_dramatic_pause('Aborted.', 2)
return # user cancel
# create appropriate object
assert 1 <= M <= N <= MAX_SIGNERS
name = 'CC-%d-of-%d' % (M, N)
ms = MultisigWallet(name, (M, N), xpubs, chain_type=chain.ctype, addr_fmt=addr_fmt)