Skip to content

Commit

Permalink
PASS1-126: Passport crashes when making a microSD backup
Browse files Browse the repository at this point in the history
This issue was happening only when attempting to backup a device with a multisig configuration that contained multiple different derivation paths instead of all devices in a given configuration having the same derivation path.
  • Loading branch information
coreylakey committed Nov 19, 2021
1 parent f18c784 commit d23ac7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PsbtTxnSampler(DataSampler):
# Return True if it matches or False if not.
@classmethod
def sample(cls, data):
print('psbt sampler: data={}'.format(b2a_hex(data)))
# print('psbt sampler: data={}'.format(b2a_hex(data)))
if data[0:5] == b'psbt\xff':
return True
if data[0:10] == b'70736274ff': # hex-encoded
Expand Down
2 changes: 1 addition & 1 deletion ports/stm32/boards/Passport/modules/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def ms_has_master_xfp(xpubs):
master_xfp = settings.get('xfp', None)

for xpub in xpubs:
(xfp, _) = xpub
xfp = xpub[0]
# print('ms_has_master_xfp: xfp={} master_xfp={}'.format(xfp, master_xfp))
if xfp == master_xfp:
# print('Including this one')
Expand Down

0 comments on commit d23ac7b

Please sign in to comment.