Commit graph

1553 commits

Author SHA1 Message Date
Roy Lee
67c9c48940 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 19:53:16 -07:00
Roy Lee
c6842ef6fb go mod: update lbcd to v0.22.118 2022-10-31 19:53:16 -07:00
Roy Lee
1fa143fa0e 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 19:53:16 -07:00
Roy Lee
3aca0be46a consolidate: refactor prompt related code 2022-09-29 00:06:51 -07:00
Roy Lee
dc7f1e88eb config: remove SigNet and SimNet related code 2022-09-28 23:42:21 -07:00
Roy Lee
be7892a2ae config: unify lbcd and lbcwallet RPC credentails
1. remove lbcdusername and lbcdpassword
2. rename (username, password) to (rpcuser, rpcpass)

Most users are confused with the lbcduser and username at first,
and choose to use the same credentials between lbcd and lbcwallet.
2022-09-28 23:29:20 -07:00
Roy Lee
7a4cd602bb config: remove noinitload related configs 2022-09-28 23:04:56 -07:00
Roy Lee
10d58126b5 config: remove spv related configs 2022-09-28 23:04:32 -07:00
Roy Lee
08e57e9ee3 config: remove gRPC related configs 2022-09-28 23:04:22 -07:00
Roy Lee
1917978ae8 consolidate: remove obsoleted files 2022-09-28 22:27:03 -07:00
Roy Lee
79da868c74 wallet: remove public passphrase prompt
1. Remove passphrase support for public keys.
2. Rename privPassphrase to passphrase to avoid confusion.

Note:

There has been a bug in the prompt, which prevents users from
specifying a custom public passphrase. So, most wallet databases
have been using the default password for the public keys, anyway.
2022-09-28 22:12:38 -07:00
Roy Lee
9c20f19d23 go mod: update lbcd version to include rpc commend updates 2022-09-28 11:48:23 -07:00
Roy Lee
e78e49d0f6 multi-account: update rpc help messages 2022-09-28 11:48:23 -07:00
Roy Lee
50950fb0d5 multi-account: update listaddresstransactions 2022-09-28 11:48:23 -07:00
Roy Lee
51e700e7d9 multi-account: update listsinceblock 2022-09-28 11:48:23 -07:00
Roy Lee
1edb90e0aa multi-account: update listalltransactions 2022-09-28 11:48:23 -07:00
Roy Lee
2e8dcc4312 multi-account: update listtransactions 2022-09-28 11:48:23 -07:00
Roy Lee
4acd03be8b multi-account: update listreceivedbyaddress 2022-09-28 11:48:23 -07:00
Roy Lee
b34aa61e4d multi-account: update listreceivedbyaccount 2022-09-28 11:48:23 -07:00
Roy Lee
93b33edbcd multi-account: update sendtoaddress 2022-09-28 11:48:23 -07:00
Roy Lee
e6a4b3d1fd multi-account: update gettransaction 2022-09-28 11:48:23 -07:00
Roy Lee
c42e8a0705 multi-account: update validateaddress 2022-09-28 11:48:23 -07:00
Roy Lee
03256c049b multi-account: update getreceivedbyaccount 2022-09-28 11:48:23 -07:00
Roy Lee
678379ce45 multi-account: update listaccounts 2022-09-28 11:48:23 -07:00
Roy Lee
64554cfbc0 multi-account: update sendfrom 2022-09-28 11:48:23 -07:00
Roy Lee
af2d35a604 multi-account: update sendmany 2022-09-28 11:48:23 -07:00
Roy Lee
43bbf0a089 multi-account: update getrawchangeaddress 2022-09-28 11:48:23 -07:00
Roy Lee
c0b263ece7 multi-account: update renameaccount 2022-09-28 11:48:23 -07:00
Roy Lee
531c461383 multi-account: update createNewAccount 2022-09-28 11:48:23 -07:00
Roy Lee
03dd33f8c9 multi-account: update getunconfirmedbalance 2022-09-28 11:48:23 -07:00
Roy Lee
09ec547ed6 multi-account: update getaccount 2022-09-28 11:48:23 -07:00
Roy Lee
608e4dddb5 multi-account: update getbalance 2022-09-28 11:48:23 -07:00
Roy Lee
71f8ba68a0 multi-account: update getaccountaddress 2022-09-28 11:48:23 -07:00
Roy Lee
6a610a8cdf multi-account: update getaddressbyaccount 2022-09-28 11:48:23 -07:00
Roy Lee
a02435bbf7 multi-account: update getnewaddress 2022-09-28 11:48:23 -07:00
Roy Lee
47e8dbda55 multi-account: set DefaultScope to KeyScopeBIP0044
By design, all scopes shared the same account name/number space.
2022-09-28 11:48:23 -07:00
Roy Lee
5a0c010688 multi-account: update sendPairs to take keyscope pointer 2022-09-28 11:48:23 -07:00
Roy Lee
00c29c3936 multi-account: add forEachKeyScope uitility iterator 2022-09-28 11:48:23 -07:00
Roy Lee
169abd446c multi-account: support BIP44 account discovery 2022-09-28 11:48:23 -07:00
Roy Lee
0410b7ce01 consolidate: merge internal/external branches 2022-09-28 11:48:23 -07:00
Roy Lee
de408d4133 consolidate: remove watch-only address/account support 2022-09-20 00:29:47 -07:00
Roy Lee
2b0d245b1f consolidate: remove gRPC APIs 2022-09-19 16:04:51 -07:00
Roy Lee
efb8e0b699 consolidate: remove legacystore related code 2022-09-19 15:56:14 -07:00
Roy Lee
e0cb7b7a91 multi-scope: use BIP0049 instead of BIP0049Plus 2022-09-17 14:39:05 -07:00
Roy Lee
f27ea6094e rpc: remove all address type alias in lookupKeyScope
Use the same address type name as bitcoind getnewaddress()
2022-09-17 14:15:12 -07:00
Roy Lee
78b8743ced waddrmgr: use Derive() instead of DeriveNonStandard() 2022-09-17 13:58:07 -07:00
Roy Lee
1f05a9858b wallet: unblock Lock() when the wallet is shutdown 2022-09-17 13:39:19 -07:00
Roy Lee
79bcb8365c wallet: handle corner cases for reorg 2022-09-13 11:40:06 -07:00
Roy Lee
b7013bf5e1 wallet: revert blockhash properly during reorg 2022-09-13 11:40:06 -07:00
Roy Lee
aecb972d75 test: update birthday related tests 2022-09-13 10:59:26 -07:00