Commit Graph

15970 Commits

Author SHA1 Message Date
Keagan McClelland
d47338cd45 feature: fixup making data loss protection compulsory 2024-01-11 13:58:01 -08:00
Keagan McClelland
717facc202 feature: make gossip queries compulsory 2024-01-11 13:57:56 -08:00
Slyghtning
a6b4135781
funding: fix logs 2024-01-11 19:39:11 +01:00
Keagan McClelland
239103c2b3 multi: make tlv onion compulsory 2024-01-11 09:43:31 -08:00
Oliver Gugger
2ae6b586e3
Merge pull request #8361 from calvinrzachman/remote-signer-itest
lntest: standby test nodes in remote signing configuration
2024-01-11 16:57:08 +01:00
Elle Mouton
bdf9ec1423
wtclient: demonstrate "tower has un-acked updates" bug
This commit adds a test to demonstrate an edge case that can result in
the "tower has un-acked updates" error being thrown when a user is
attempting to remove a tower. This will be fixed in an upcoming commit.
2024-01-11 15:13:02 +02:00
Calvin Zachman
2209badfe8
lntest: standby test nodes in remote signing configuration
Add the ability to create a test harness with nodes in a
remote signing configuration.
2024-01-10 09:18:30 -06:00
Oliver Gugger
9afe1b72dc
Merge pull request #8188 from guggero/debug-rpcs
rpcserver+lncli: add ability to create encrypted debug information package
2024-01-09 16:28:03 +01:00
Alex Sears
4521894ed2
channeldb: Serialize/deserialize AMP struct in hop
The AMP struct in a hop was never being set when deserizlied. Also,
the AMP TLV record was not being added when the hop was serialized.
This sets the TLV record when serializing and correctly sets the
AMP struct on the hop when that record is present.

Co-authored-by: BitcoinCoderBob <90647227+BitcoinCoderBob@users.noreply.github.com>
Co-authored-by: Tee8z <tee8z@protonmail.com>
2024-01-09 10:02:16 -05:00
Oliver Gugger
ad34f80c85
docs: add release notes 2024-01-09 12:43:44 +01:00
Oliver Gugger
0da35edc48
cmd/lncli: add flags for more info to encryptdebugpackage
This commit adds three optional command line flags to the
encryptdebugpackage: --peers, --onchain and --channels.
Each of them adds the output of extra commands to the encrypted debug
package.
2024-01-09 12:43:42 +01:00
Oliver Gugger
d4f49cb04b
cmd/lncli: add {encrypt,decrypt}debugpackage commands 2024-01-09 12:40:39 +01:00
Oliver Gugger
b6abede4a3
lnencrypt: add ECDHEncryptor
With this commit we add a new way to encrypt and decrypt a sensitive
payload: By using Diffie-Hellman over a local and remote key to derive
at a shared secret key.
2024-01-09 12:32:38 +01:00
Oliver Gugger
375bc6950c
cmd/lncli: add new getdebuginfo command 2024-01-09 12:32:37 +01:00
Oliver Gugger
8a2c3a3d85
lnrpc+rpcserver: add new GetDebugInfo RPC method 2024-01-09 12:32:37 +01:00
Oliver Gugger
becbe7085d
config: create helper for dumping config
With this commit we add a new helper function that recursively turns the
runtime configuration into a flat key/value map that is human-readable,
using the dot notation for nested values that is also used in the config
file or command line flags.
2024-01-09 12:32:01 +01:00
Oliver Gugger
2b54774721
Merge pull request #8339 from mani2310/mani2310-Wrong-documentation-on-lncli
Wrong documentation on lncli
2024-01-09 08:29:06 +01:00
ziggie
90f5dc3efe
docs: update release-docs. 2024-01-09 01:23:58 +01:00
ziggie
1bdc7ce165
lncli: add max_fee_rate to closechannel cmd. 2024-01-09 01:19:10 +01:00
ziggie
7481ed0a43
walletrpc-lncli: add new bumpforceclosefee cmd.
Replace (hide) the old bumpclosefee cmd with the new
bumpforceclosefee cmd to avoid confusion which closing
transactions can be bumped.
2024-01-09 01:15:43 +01:00
ziggie
81dd631935
walletrpc: add status to BumpFeeResponse type.
BumpFee now returns a status signaling the success of the operation.
2024-01-09 01:15:42 +01:00
Yong
34af399a5b
Merge pull request #8096 from ziggie1984/fix-dip-below-reserve
lnwallet: Introduce a fee buffer.
2024-01-09 01:52:04 +08:00
Oliver Gugger
7cb53020ee
Merge pull request #8346 from yyforyongyu/remove-error-return
routing+routerrpc: remove redudant error check
2024-01-08 17:41:32 +01:00
ziggie
320108a424
docs: add release-notes. 2024-01-08 16:47:48 +01:00
ziggie
1aa1e18b9f
routing: add log message. 2024-01-08 16:47:48 +01:00
ziggie
a1678fa9b7
itest: multi part payments test fix.
Because we need to account for an addtional fee buffer we need to
increase channel capacities for the multi payment tests.
2024-01-08 16:47:47 +01:00
Oliver Gugger
8d0abc01c1
Merge pull request #8353 from mohamedawnallah/fix-typo-code-formatting-rules
docs: fix typo "paren" to "parenthesis" in `code_formatting_rules.md` [skip ci]
2024-01-08 15:51:32 +01:00
Mohamed Awnallah
39d9252c96
docs: fix typo "paren" to "parenthesis" [skip ci] 2024-01-07 14:49:26 +02:00
ziggie
51c56d2825
lnwallet: add underflow check when computing balance. 2024-01-06 20:52:46 +01:00
ziggie
0b63989f3a
lnwallet+htlcswitch: Introduce a fee buffer.
We take into account a fee buffer of twice the current fee rate
of the commitment transaction plus an additional htlc output
when we are the opener of the channel hence pay when publishing the
commitment transaction. This buffer is not consensus critical
because we only consider it when we are in control of adding a
new htlc to the state. The goal is to prevent situations
where we push our local balance below our channel reserve due to
parallel adding of htlcs to the state. Its not a panacea for these
situations but until we have __option_simplified_update__ deployed
widely on the network its a good precaution to protect against
fee spikes and parallel adding of htlcs to the update log.

Moreover the way the available balance for a channel changed.
We now need to account for a fee buffer when we are the channel
opener. Therefore all the tests had to be adopted.
2024-01-06 20:52:46 +01:00
Olaoluwa Osuntokun
2f04ce7c6e
Merge pull request #8334 from lightningnetwork/tlv-record-enchancements
tlv: various enhancements to the new RecordT type
2024-01-05 13:57:55 -08:00
yyforyongyu
6de21b2a02
routerrpc: add verbose log and ignore context canceled error 2024-01-05 22:18:25 +08:00
yyforyongyu
58677569b5
routing+routerrpc: remove redudant error check
Since `SendPaymentAsync` now never returns an error, there's no need to
catch it and check it in `SendPaymentV2`.
2024-01-05 18:11:04 +08:00
Elle
695bfc8414
Merge pull request #7736 from ellemouton/towerInterfaces
watchtower+refactor: CommitmentType and JusticeKit interface
2024-01-04 16:04:11 +02:00
Elle Mouton
4daa0f309c
docs: add release note for 7736 2024-01-04 14:37:42 +02:00
Elle Mouton
154e9fafec
watchtower: convert JusticeKit to interface
In this commit, we convert the `JusticeKit` struct to an interface.
Then, we add two implementations of that interface:
1) The `legacyJusticeKit` which implements all the methods of
   `JusticeKit`
2) The `anchorJusticKit` which wraps the `legacyJusticeKit` and just
   re-implements the `ToRemoteOutputSpendInfo` method since.
2024-01-04 14:37:42 +02:00
Elle Mouton
048dc54110
watchtower/blob: move code to justice_kit_packet.go
In preparation for the next commit which will introduce the `JusticeKit`
interface, here we just move the code related to building the actual
justice kit packet into a separate file.
2024-01-04 14:37:42 +02:00
Elle Mouton
204ca6cb0f
watchtower: introduce CommitmentType
In this commit a new enum, CommitmentType, is introduced and initially
there are 3 CommitmentTypes: Legacy, LegacyTweakless and Anchor.

Then, various methods are added to `CommitmentType`. This allows us to
remove a bunch of "if-else" chains from the `wtclient` and `lookout`
code. This will also make things easier to extend when a new commitment
type (like Taproot) is added.
2024-01-04 14:37:42 +02:00
Oliver Gugger
708bd05df3
Merge pull request #8342 from guggero/js-doc-fix
docs: update Node.JS example
2024-01-04 10:57:39 +01:00
Oliver Gugger
0bf857d8e1
Merge pull request #8341 from threewebcode/patch-3
fix: remove duplicate words [skip ci]
2024-01-04 10:37:47 +01:00
Oliver Gugger
3a7e564582
docs: update Node.JS example
Fixes #8333 by not using the outdated `bytebuffer` library anymore.
2024-01-04 09:13:59 +01:00
Oliver Gugger
319a5dab5c
Merge pull request #8325 from Thabokani/master
chore: fix typos [skip ci]
2024-01-04 09:01:58 +01:00
Afanti
452b2d5a80
fix: remove duplicate words [skip ci]
There are some unnecessary duplicate words in the source file. Use this change to remove them. The CI can be skipped.
2024-01-04 04:47:03 +08:00
Olaoluwa Osuntokun
cedbdd8999
Merge pull request #8142 from carlaKC/8137-validateblindedpayload
routing: Add Validation for Decoding Blinded Paths
2024-01-03 12:33:11 -08:00
Olaoluwa Osuntokun
ffd330ac43
Merge pull request #8095 from carlaKC/7882-mcblinding
missioncontrol: add invalid onion blinding handling for blinded paths
2024-01-03 12:29:43 -08:00
Manisha
034bb5b51e Wrong documentation on lncli
Signed-off-by: Manisha <manisha2133@gmail.com>
2024-01-03 21:57:25 +05:30
Oliver Gugger
82e2b4010b
Merge pull request #8320 from threewebcode/patch-2
fix: correct the typo [skip ci]
2024-01-03 14:07:41 +01:00
Thabokani
b8d2fc3816
kvdb+cmd: fix typos 2024-01-03 12:06:32 +08:00
Olaoluwa Osuntokun
85046997c9
tlv: add utility funcs/methods to make tlv.OptionalRecord easier to use
We add a WhenSome that'll pass in the actual underlying value, and not
just the record.

We also add `SomeRecord` to make it easier to create TLV records w/
`Some` set.
2024-01-02 18:51:41 -08:00
Olaoluwa Osuntokun
aec2f9bf08
tlv: add TlvType method to RecordT
This will be useful when decoding optional TLV records, as we can use
this to look up in the `typeMap` for a given field to see if we decoded
it or not.
2024-01-02 18:51:35 -08:00