Remove upper limit for backup file size
This commit is contained in:
parent
b121b0de51
commit
0fd5a43618
@ -1386,7 +1386,7 @@ async def restore_temporary(*A):
|
||||
|
||||
fn = await file_picker('Select file containing the backup '
|
||||
'to be restored as temporary seed.',
|
||||
suffix=".7z", max_size=10000)
|
||||
suffix=".7z")
|
||||
|
||||
if fn:
|
||||
import backups
|
||||
@ -1400,7 +1400,7 @@ async def restore_everything(*A):
|
||||
|
||||
# restore everything, using a password, from single encrypted 7z file
|
||||
fn = await file_picker('Select file containing the backup to be restored, and '
|
||||
'then enter the password.', suffix='.7z', max_size=10000)
|
||||
'then enter the password.', suffix='.7z')
|
||||
|
||||
if fn:
|
||||
import backups
|
||||
@ -1415,7 +1415,7 @@ async def restore_everything_cleartext(*A):
|
||||
|
||||
# restore everything, using NO password, from single text file, like would be wrapped in 7z
|
||||
fn = await file_picker('Select the cleartext file containing the backup to be restored.',
|
||||
suffix='.txt', max_size=10000)
|
||||
suffix='.txt')
|
||||
|
||||
if fn:
|
||||
import backups
|
||||
|
||||
@ -485,4 +485,6 @@ def test_clone_start(reset_seed_words, pick_menu_item, cap_story, goto_home):
|
||||
|
||||
# TODO check file made is a good backup, with correct password
|
||||
|
||||
# TODO: test larger backup files > 10,000 bytes
|
||||
|
||||
# EOF
|
||||
|
||||
@ -357,7 +357,7 @@ def test_nfc_after(num_outs, fake_txn, try_sign, nfc_read, need_keypress,
|
||||
for got in ndef.message_decoder(contents):
|
||||
if got.type == 'urn:nfc:wkt:T':
|
||||
assert 'Transaction' in got.text
|
||||
assert b2a_hex(txid).decode() in got.text
|
||||
assert txid.hex() in got.text
|
||||
elif got.type == 'urn:nfc:ext:bitcoin.org:txid':
|
||||
assert got.data == txid
|
||||
elif got.type == 'urn:nfc:ext:bitcoin.org:txn':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user