Rescan, Account Discovery, and default Passphhrase #38
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
mining
question
rpc
ux
wallet
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbcwallet#38
Loading…
Reference in a new issue
No description provided.
Delete branch "separate-rescan-and-account-discovery"
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?
Account discovery scans the address of accounts that are not knowingly being used yet. To derive those addresses, the wallet has to be unblocked first. It is performed at wallet startup as part of the recovery process. The wallet prompts users for the passphrase before moving forward.
Many users integrate the wallet as part of their infrastructure in a secure environment and prefer to remove this interactive prompt and have the wallet start in an unlocked state. This PR introduces the following changes:
Upon startup, only scan addresses previously derived when catching up blocks. The passphrase is not required to derive those addresses.
Account discovery is implemented in a new RPC -
rescanblockchain
, which requires the wallet to be unlocked with a passphrase first.Introduce the default passphrase
passphrase
, which is used during wallet creation unless users override it with the-p
option.Upon startup, the wallet unlocks itself with no timeout using the default or user-provided(with
-p
) passphrase.