Commit graph

1535 commits

Author SHA1 Message Date
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 2022-07-11 16:22:35 -07:00
Roy Lee
b4a9f5f524 [lbry] version: bump lbcd depencency to include version handling fix 2022-07-06 20:47:07 -07:00
Roy Lee
56a178f545 test: fix race conditions in tests 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
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 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
Brannon King
1d0ef1da6d [lbry] added staked value to balance call 2022-05-24 10:48:28 -07:00
Brannon King
23f883be7e [lbry] eliminated btcd dependency 2022-05-24 10:48:28 -07:00
Brannon King
d5328e1834 [lbry] coin selection and balance no longer include stakes 2022-05-24 10:48:28 -07:00
Brannon King
4c6e495f86 [lbry] use address type parameter in getnewaddress 2022-05-24 10:48:20 -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 Lee
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
ennmichael
e74c3939aa Fixed a bug where unconfirmed txn notifications were missing a label 2022-05-24 03:09:34 -07:00
Yaacov Akiba Slama
759741dccc waddrmgr: add support for pay to witness script address
With this commit we refactor the existing script address into a
baseScriptAddress struct and then add a new witnessScriptAddress type
that manages a pay-to-witness-script address.
2022-05-24 03:09:34 -07:00
Oliver Gugger
9eb48cb6ab waddrmgr: add adtWitnessScript serialization 2022-05-24 03:09:34 -07:00
Oliver Gugger
6d7b545acb waddrmgr: rename ambiguous scriptCT to scriptClearText
Since CT can mean both Cipher Text as well as Clear Text, the variable
name scriptCT lead to confusion about its meaning. We rename it to make
it more clear how it's used.
2022-05-24 03:09:34 -07:00
Oliver Gugger
cb3343ae15 mod: update btcutil dep to pull in TaprootAddress type 2022-05-24 03:09:34 -07:00
Oliver Gugger
f2ec9f1ec8 wallet: export ScriptForOutput
We need to be able to call ScriptForOutput in external code, so we
export it.
2022-05-24 03:09:34 -07:00
Olaoluwa Osuntokun
6eede89a43 chain: fix peer selection for the pruned block dispatcher
In this commit, we fix the peer selection for the pruned block
dispatcher. Turns out that the bits are actually mutually exclusive: a
node can set the network bit _and_ the limited (pruned bit).

The prior logic would only seek out "pure" nodes, meaning older nodes
that wouldn't set the limited bit when they're a full-full node. We fix
this by ignoring the limited bit, and we'll only look at the network and
segwit bits.

A unit test has also been added to show the issue in the prior filter
function.
2022-05-24 03:09:34 -07:00
Oliver Gugger
b4e83b1f8c waddrmgr: fix concurrent map access
Fixes lightningnetwork/lnd#5864.
The loadAccountInfo does load an account as its name suggests. But after
loading it, the account is also added to a map to cache it. That map
write should be seen as a writing operation and therefore the _write_
lock must be held, not just the read lock.
2022-05-24 03:09:33 -07:00
Oliver Gugger
45a94de617 wallet: return unsigned TX in watch-only SendOutputs
If SendOutputs is called on a watch-only wallet then a transaction is
created but without any signatures. Publishing that transaction will
always fail. But the attempt to publish will already update the internal
state of the wallet so we shouldn't try to publish this unsigned TX.
Instead we return a new error along with the unsigned transaction to
give the caller the chance to sign and publish it through other means.
2022-05-24 03:09:33 -07:00
Bjarne Magnussen
9f1eb98666 wallet: add minimum confirmation parameter to FundPsbt
Setting the minimum confirmation is used for the coin selection when no inputs are provided.
2022-05-24 03:09:33 -07:00
Olaoluwa Osuntokun
b218504ca9 build: update to latest versions of txauthor, txrules, and txsize 2022-05-24 03:09:33 -07:00
eugene
0fe2b53b69 wallet/txauthor+txrules: update go mod to include btcd changes 2022-05-24 03:09:33 -07:00
Oliver Gugger
8e853a7fb5 wallet: add ImportAccountWithScope
When creating a fully watch-only wallet, we know exactly what accounts
we are importing and what scope should be used for them.
2022-05-24 03:09:33 -07:00
Oliver Gugger
47a13774bb wallet: don't hold unlock in watch-only mode
If we're running in watch-only mode, there is no unlock possible.
Therefore, we also don't need to prevent any unlocks from happening when
doing coin selection in that mode.
2022-05-24 03:09:33 -07:00
Olaoluwa Osuntokun
cdf737027b build: pin mid Go version to 1.16, run new go mod tidy
By running `go mod tidy -go=1.16`, we also automatically convert the
"legacy" build tag syntax to use the new Go 1.17 compatible variant.
2022-05-24 03:09:33 -07:00
Oliver Gugger
70f11dbca2 Travis+GitHub: switch CI from Travis to GitHub actions 2022-05-24 03:09:33 -07:00
Oliver Gugger
4e131c23d0 waddrmgr: fix test compilation 2022-05-24 03:09:33 -07:00