Rescan, Account Discovery, and default Passphhrase #38

Merged
roylee17 merged 4 commits from separate-rescan-and-account-discovery into master 2022-11-01 03:53:17 +01:00

4 commits

Author SHA1 Message Date
Roy Lee
ca05970546 rpc: implement rescanblockchain 2022-10-31 19:43:53 -07:00
Roy Lee
fe6f28d469 wallet: break recovery() to recovery() and rescanblockchain()
Now the recovery, which runs at startup, only scans for known
addresses that were generated and recorded by this wallet.

The coming rescanblockchain RPC implementation, which requires the
wallet to be unlocked, does account discovery.
2022-10-31 18:11:47 -07:00
Roy Lee
e03ce4c6d5 go mod: update lbcd to v0.22.118 2022-10-31 18:11:47 -07:00
Roy Lee
9f4e998260 wallet: update passphrase user experience.
For users don't want to set/manage a passphrase a default passphrase
"passphrase" will be used during wallet creation.

At startup, the wallet tries to unlock itself using the default
passphrase, or a user provided one (using -p).

Users that prefer a passphrase can override the default one at wallet
creation time using -p, or use the walletpassphrase rpc when
the wallet is running. This will prevent the wallet from auto-unlock,
and preserve the lock-by-default behavior.
2022-10-31 08:47:51 -07:00