Commit Graph

12624 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
e78560c472
docs/release-notes: add entry for chan type fix 2021-12-15 16:38:34 -08:00
Olaoluwa Osuntokun
99f79ea507 funding: always send a channel type in explicit mode
In this commit, we switch to always sending a channel type when we're in
explicit mode. This is compatible with prior versions of lnd as they
won't send a channel type, and we'll just arrive at the same type via
the existing implicit funding.

Fixes https://github.com/lightningnetwork/lnd/issues/6067
2021-12-15 16:36:28 -08:00
Olaoluwa Osuntokun
e58a9793b8
Merge pull request #6076 from ellemouton/alwaysClampFeeFloor
lnwallet+docs: minrelayfee always above fee floor
2021-12-15 16:33:28 -08:00
Elle Mouton
b829be133a
docs: add review bot commands to guidelines [skip ci]
Add the review bot commands to the contribution guidelines so that we
can link to these commands from the bots readme.
2021-12-15 10:36:36 +02:00
yyforyongyu
48827bb30f
docs: add release note for invoice registry fix 2021-12-15 02:38:54 +08:00
yyforyongyu
df2ecd6bc5
invoices: refactor invoice subscriptions to avoid blocking
This commit fixes a potential blocking when notifying invoice updates.
When a new subscription client is created followed by an immediate
cancel, it's likely the client will be removed from the registry's
map(noop) and then added to its map again. This subscription will then
be kept in registry until lnd is restarted. Another more serious issue
is when multiple subscriptions are made for the same invoice, when the
above case happens, other subscriptions may never send invoice updates
because a previous client has a stopped notification queue that blocks
following notifications.
2021-12-15 02:38:51 +08:00
yyforyongyu
3230cc4822
invoices: remove redundant mutex lock 2021-12-15 02:26:32 +08:00
yyforyongyu
f4f446519b
invoices: remove potential cyclic pointer references
This commit removes the pointer reference to InvoiceRegistry when
creating an InvoiceSubscriptionKit and mounts the channels needed for
communication.
2021-12-15 02:26:32 +08:00
Oliver Gugger
6d59a2c807
Merge pull request #5931 from yyforyongyu/5924-remote-balance
rpcserver: add remote balance for pending force close
2021-12-14 10:02:23 +01:00
yyforyongyu
e00c72e871
docs: add release notes for remote balance field 2021-12-14 03:43:15 +08:00
yyforyongyu
eb11d4866f
rpcserver: add remote balance for pending force close 2021-12-14 03:40:48 +08:00
Oliver Gugger
22607a1c53
Merge pull request #6084 from guggero/backend-readonly
channeldb: allow to be used read-only in external tools
2021-12-13 14:06:27 +01:00
Oliver Gugger
c0e1bfc26f
docs: add release notes 2021-12-13 12:33:48 +01:00
Oliver Gugger
b147d589c1
channeldb: add NoMigration mode
In case the channeldb package is used as a library in external tools, it
can be useful to allow read-only access to a DB. This allows such a
tool to access a DB even if not all migrations were executed, which can
be useful for recovery purposes.
To make it possible to even start the DB with a read-only backend, we
need to disable the automatic migration step.
2021-12-13 12:31:49 +01:00
Oliver Gugger
a8f75e0221
Merge pull request #4177 from torkelrogstad/2020-04-11-lncli-complete
Add auto-generated Fish shell lncli-completions
2021-12-13 12:22:44 +01:00
Torkel Rogstad
f51891da27 docs: update release notes 2021-12-13 11:08:48 +01:00
Torkel Rogstad
55617f153f lncli: add fish-completion
This is a new, hidden command that generates completions for Fish shell.
This can be piped into `source` or saved in a file to activate (almost)
perfect tab completion.
2021-12-13 11:07:49 +01:00
Torkel Rogstad
c64e9c5286 Bump urfave/cli version
urfave/cli added functionality for generating Fish shell tab-completions
a few releases ago. We bump the dependency version to get access to
this functionality.
2021-12-13 11:07:49 +01:00
Oliver Gugger
2aef091367
Merge pull request #5952 from jblachly/key-import-docs
Docs: fix language ambiguity in key import
2021-12-13 11:00:25 +01:00
Elle Mouton
2449e66d29
lnwallet+docs: minrelayfee always above fee floor
The minimum relay fee is always ensured to be above our fee floor except
in the very first min relay fee query to bitcoind. This commit ensures
that the fee floor is respected in this first query.
2021-12-13 08:22:34 +02:00
Oliver Gugger
485ec0f697
Merge pull request #5710 from ErikEk/zmq-healthcheck
config: misconfigured bitcoind zmq
2021-12-10 12:54:15 +01:00
Oliver Gugger
2de8571ab3
Merge pull request #6073 from mattbajorek/5518-clarify-invalid-config-timeout-constraints
netann: clarify invalid config timeout constraints [skip ci]
2021-12-10 12:52:29 +01:00
Oliver Gugger
66a669d8e9
Merge pull request #5854 from LN-Zap/upstream/RPCTransaction
Adds helper function lnrpc.RPCTransaction to create a single lnrpc.Transaction and refactors lnrpc.RPCTransactionDetails
2021-12-10 12:45:17 +01:00
Oliver Gugger
1ccd03784b
Merge pull request #5539 from Kixunil/no-psbt-midstep-enforce-new-reserved-value
Do not enforce new reserved value in PSBT midstep
2021-12-10 12:33:05 +01:00
Bjarne Magnussen
46c268eec0
add to release notes 0.14.2 2021-12-10 08:27:19 +01:00
Bjarne Magnussen
93e5de9306
lnrpc: refactor populating lnrpc.Transaction inside SubscribeTransaction 2021-12-10 08:26:16 +01:00
Martin Habovstiak
333fe39a51 docs: added release notes regarding #5539 2021-12-10 00:23:00 +01:00
Martin Habovstiak
2b3b70d40b test: don't enforce reserved value in PSBT midstep
This adds an integration test that makes sure channel can be funded from
empty wallet using PSBT if the funding transaction contains an output
belonging to the wallet, satisfying the reserve.
2021-12-10 00:22:17 +01:00
Martin Habovstiak
ec24767b9b lnwallet: don't enforce new reserved value in PSBT midstep
This change avoids enforcing new reserved value when PSBT funding is not
finished yet as new inputs and outputs may still be added that could
change the outcome of the check.

This originally failed in the scenario when funding a channel from
external wallet *and depositing to on-chain wallet* was done
simultaneously in a single transaction. If such transaction confirms
then reserved UTXO is guaranteed to be available but the check didn't
take it into account.

The enforcement still occurs in the final step of PSBT funding flow, so
it is safe. It also occurs in case of non-PSBT funding.
2021-12-10 00:22:17 +01:00
Olaoluwa Osuntokun
f022e557bf
Merge pull request #6068 from bhandras/mc_store_fix
routing: fix memory corruption in MC store
2021-12-09 15:20:07 -08:00
Olaoluwa Osuntokun
842fa15229
Merge pull request #6062 from yyforyongyu/6056-fix-webapi
chainfee: return floor fee rate when a given target is not found
2021-12-09 15:17:05 -08:00
Matthew Bajorek
93b1cd0e82 docs: update release note for #6073 [skip ci] 2021-12-09 09:29:18 -05:00
Matthew Bajorek
6fb3c25228 netann: clarify invalid config timeout constraints [skip ci] 2021-12-09 09:29:04 -05:00
Oliver Gugger
94bbad3fd1
Merge pull request #6071 from sputn1ck/fix-error-msgs
routerrpc: fix wrong error messages
2021-12-09 10:54:22 +01:00
ErikEk
94cb818dd9 healthcheck: misconfigured bitcoind zmq 2021-12-09 10:51:34 +01:00
kon
59b215fe09 routerrpc: fix wrong error messages
when payment_hash or final_cltv_delta and payment_request was set, the error message showed that the parameters shouldn't be set with dest instead of payment_request

[skip ci]
2021-12-09 10:36:32 +01:00
Andras Banki-Horvath
5efbb2b0ff
docs: update release notes 2021-12-08 23:10:20 +01:00
Andras Banki-Horvath
8cd607447e
routing: fix memory corruption in MC store
Since bbolt returns references to internally stored data when storing
locally it's best to copy the byte slices returned or alternatively
convert them to string (which also makes a copy) to avoid crashes casued
by memory corruption.
2021-12-08 23:10:16 +01:00
Oliver Gugger
71b23a2c54
Merge pull request #5971 from yyforyongyu/add-chan-status
rpcserver: expose ChanStatusFlags in pending close
2021-12-08 12:23:07 +01:00
yyforyongyu
4a62b7cf8c
docs: add release note for ChanStatusFlags 2021-12-08 04:50:47 +08:00
yyforyongyu
53e02fa83d
rpcserver: expose ChanStatusFlags in pending close
This commit exposes the ChanStatusFlags inside waitingCloseResp such
that the channel close type is exposed.
2021-12-08 04:50:23 +08:00
Oliver Gugger
099d5b8286
Merge pull request #6060 from mattbajorek/bugfix/lncli-trackpayment-json
lncli: Add json flag to trackpayment
2021-12-07 21:15:38 +01:00
Matthew Bajorek
6ebc896f6f lncli: Add json flag to trackpayment [skip ci] 2021-12-07 14:04:27 -05:00
yyforyongyu
7f3a146216
docs: update release note for fee rate fix 2021-12-07 20:18:24 +08:00
yyforyongyu
7e7fca78c4
chainfee: update test TestWebAPIFeeEstimator 2021-12-07 20:18:24 +08:00
yyforyongyu
655ce00220
chainfee: handle conf target not found in cache 2021-12-07 20:18:24 +08:00
Oliver Gugger
c75c3bd847
Merge pull request #5756 from yyforyongyu/itest-1-run-ctx
itest: refactor context management inside harness node and net
2021-12-07 13:14:27 +01:00
yyforyongyu
c4de19b757
docs: update release note for itest ctxt fix 2021-12-07 18:52:55 +08:00
Oliver Gugger
17babfdd8e
Merge pull request #6050 from arshbot/export-BitcoindBackendConfig-attributes
lntest: export attributes of type BitcoindBackendConfig
2021-12-07 11:36:24 +01:00
Harsha Goli
64a34f4f9f
docs: update release notes 2021-12-06 14:45:11 -05:00