find the accounts a restored phrase already uses #69
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #4
Why
#67 lets someone add accounts by hand, but a phrase restored from another Quantus wallet already has the accounts it has: the mobile wallet numbers them and its import runs a BIP-44 gap-limit scan over both schemes to find the ones that exist on chain. Restore here opens account 1 only, so a person who kept their funds on account 2 or 3 sees an empty wallet and has to guess how many times to press "Add account".
Scope
System::Accountpresent), and keep scanning while any number in the last batch existed, stopping after a gap of consecutive empty numbers (the mobile wallet uses 20).Not in scope
Scanning for wormhole deposits: those are found by the leaf scan already, and a wormhole address is derived per wallet, not per account number.
Acceptance
On the dev node: fund account 3 of a phrase from another wallet, restore that phrase here, and the accounts page shows accounts 1 to 3 with account 3's balance, without pressing anything. On a phrase with nothing beyond account 1, the scan adds nothing and says so.