99 Commits
Author SHA1 Message Date
Roy Lee 04763e36f0 doc: update README.md
CI / Format, compilation and lint check (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
2022-10-31 21:21:45 -07:00
Roy Lee ca56a420ee rpc: implement rescanblockchain 2022-10-31 19:53:16 -07:00
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
CI / Format, compilation and lint check (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
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
CI / Format, compilation and lint check (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
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
Roy Lee f4ba8a01d1 Revert "wallet: rescan 2 days past the birthday block"
This reverts commit af82460075.

The 48-hour margin has been set in the waddrmgr.Create() right before
written to the databasw.
2022-09-13 10:59:26 -07:00
Roy Lee af82460075 wallet: rescan 2 days past the birthday block
CI / Format, compilation and lint check (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
2022-08-19 17:04:32 -07:00
Roy Lee 40f7d7cefe prompt: ask birthday for user provided seed 2022-08-19 17:04:32 -07:00
Roy Lee d9d257a9f6 prompt: minror refactoring 2022-08-19 17:04:32 -07:00
Roy Lee 92acdcbfca rpc: reverse the order of listtransactions to align with lbrycrd (2nd attempt)
CI / Format, compilation and lint check (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
The previous change doesn't handle the truncated list.
2022-08-08 17:54:42 -07:00
Roy Lee 893a820c65 hack: trating all imported privatekey as non-watchonly
CI / Format, compilation and lint check (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
This is to unblock partner integration.

More comprehensive solution will be available soon.
2022-08-08 01:53:47 -07:00
Roy Lee 46f4df5a64 rpc: reverse the order of listtransactions to align with lbrycrd
CI / Format, compilation and lint check (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
2022-08-08 01:26:28 -07:00
Roy Lee 610ec20ea8 ci: run "make fmt" 2022-08-08 01:26:02 -07:00
Roy Lee 0c2b21840d ci: update github Worflow, and Go 1.19 2022-08-08 01:26:02 -07:00
Roy Lee 3e45c66f34 Merge pull request #11 from lbryio/roylee17/fix-signrawtransaction
rpc: handle "input not found" case in signrawtransaction
2022-08-04 22:04:03 -07:00
Roy Lee fd92031e27 rpc: handle "input not found" case in signrawtransaction 2022-08-04 21:55:39 -07:00
Roy Lee eff01c9e63 Merge pull request #12 from lbryio/roylee17/update-ci-go-version
ci: update workflow and Go 1.19
2022-08-04 21:50:24 -07:00
Roy Lee 2428b381da ci: run "make fmt" 2022-08-04 21:41:06 -07:00
Roy Lee 2e95c1427f ci: update github Worflow, and Go 1.19 2022-08-04 21:40:57 -07:00
Roy Lee 13a42b37ce ci: add tools package to lock Go tooling versions 2022-08-04 21:40:37 -07:00
Roy Lee 18b605c6e1 mod: update go dependencies 2022-08-04 21:40:19 -07:00
Roy Lee c21be77e05 configs: updated docs/comments about disabling tls for remote connections 2022-08-04 17:24:24 -07:00
Roy Lee d1700f2658 rpc: allow listtransaction take "default" as account
golangci-lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
This is also another quirks that lbcwallet mixes account with label.
2022-07-27 10:32:52 -07:00
Roy Lee be9df55a7c rpc: remove deprecated rpc "move" and "setaccount" 2022-07-27 10:29:35 -07:00
Roy Lee 9d812ab865 [lbry] config: allow non-localhost connections with TLS disabled
golangci-lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
2022-07-11 16:22:35 -07:00
Roy Lee b4a9f5f524 [lbry] version: bump lbcd depencency to include version handling fix
golangci-lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
2022-07-06 20:47:07 -07:00
Roy Lee 56a178f545 test: fix race conditions in tests
golangci-lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
2022-07-05 22:09:03 -07:00
Roy Lee a7cbb7c481 [lbry] ci: disable few tests for now to unblock CI 2022-07-05 21:06:53 -07:00
Roy Lee c4421900c1 test: fix fmt string directive. 2022-07-05 21:06:53 -07:00
Roy Lee e5f7fefaac [lbry] rpc: update getaddressinfo help messages 2022-07-05 21:06:53 -07:00
Roy Lee 5d95b1cd9a Merge pull request #7 from lbryio/roylee/hardcode-paytxfee-to-zero
[lbry] fee: update getinfo.paytxfee to 0
2022-06-14 17:06:52 -07:00
Roy Lee 444fc83aad [lbry] fee: update getinfo.paytxfee to 0
golangci-lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
This is a hack fix to unblock lbrypool.net.

The paytxfee in lbcwallet is actually not being used anywhere, and is
hardcoded to DefaultRelayFee, which is 1000. Lbrycrd sets default to 0.

Also, since the paytxfee is not actually used/implemented, the
'settxfee' RPC is also
2022-06-14 17:03:16 -07:00
Roy Lee ce9b4eb809 [lbry] version: use version package
golangci-lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / run unit tests (unit-cover) (push) Waiting to run
CI / run unit tests (unit-race) (push) Waiting to run
goreleaser / goreleaser (push) Waiting to run
2022-05-24 11:00:43 -07:00
Roy Lee 10b9f52e03 [lbry] ci: update Makefile and remove goclean.sh 2022-05-24 11:00:43 -07:00
Roy Lee 471b2d1987 [lbry] ci: update Dockerfile 2022-05-24 11:00:43 -07:00
Roy Lee df1d2ee1a1 [lbry] ci: support GoReleaser 2022-05-24 11:00:43 -07:00
Roy Lee 3671cd0c05 [lbry] ci: add github workflows 2022-05-24 10:48:28 -07:00
Roy Lee 57e8d9cdd2 [lbry] ci: update golangci settings 2022-05-24 10:48:28 -07:00
Roy Lee 5c8800691c [lbry] go module: update dependencies 2022-05-24 10:48:28 -07:00
Roy Lee 49e78d88cb [lbry] rpc: support --skipverify on TLS connection to lbcd 2022-05-24 10:48:28 -07:00
Roy Lee 09ae692b44 [lbry] rpc: update help docs 2022-05-24 10:48:28 -07:00
Roy Lee 10d0a26792 [lbry] update backend list 2022-05-24 10:31:06 -07:00
Roy Lee d6434b148a [lbry] enable regtest for --createtemp (temporary wallet) 2022-05-24 10:31:06 -07:00
Roy LeeandBrannon King f52bea1e37 [lbry] rpc: getaddressinfo
Co-authored-by: Brannon King <countprimes@gmail.com>
2022-05-24 10:31:06 -07:00
Roy Lee 879bf10dde [lbry] chain: bring back removed chainParams for a testcase 2022-05-24 10:31:06 -07:00
Roy Lee cedfab95fa [lbry] update coin_type to LBC (140) 2022-05-24 10:31:06 -07:00
Roy Lee 5c96fa9cda [lbry] docs: Update README.md 2022-05-24 10:31:06 -07:00
Roy Lee 36554814e8 [lbry] align port settings between lbcd, lbcctl, and lbcwallet 2022-05-24 10:31:06 -07:00
Roy Lee 202374ebd8 [lbry] fork from btcsuite to lbryio
1. btcd -> lbcd
2. btcwallet -> lbcallet
3. btcutil -> lbcutil
2022-05-24 10:31:06 -07:00
Roy Lee 7b5b2ff774 [lbry] remove nested go mudules 2022-05-24 03:09:34 -07:00
Roy Lee 8701ecb329 [lbry] build: remove neutrino and bitcoind support 2022-05-24 03:09:34 -07:00
Roy Lee 0e82225623 [lbry] git: ignore dist/ and .vscode 2022-05-24 03:09:34 -07:00