Commit Graph
15808 Commits
Author SHA1 Message Date
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
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
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
Olaoluwa Osuntokun 09afc92215 tlv: make TlvType method for TlvType interface public
With this change, callers can now examine a struct instance of the
`TlvType` instance to figure out programmatically which integer type is
maps to. This'll be useful when decoding optional TLV types into a wire
struct (knowing when to set it to Some vs None).
2024-01-02 18:51:33 -08:00
Olaoluwa Osuntokun 66cf4396a2 tlv: modify RecordT type to ensure type param takes precedence
In this commit, we modify the RecordT type to allow callers to re-use
the Record definition of a different type, but use the new type param to
override the integer type used on the wire.

This will let use do things like encode a signature using the same
RecordProducer instance, but with a diff type in another context.

The upcoming use for this is allowing our `lnwire.Sig` type to be
encoded in the same message using distinct TLV integer types (new co-op
close protocol).
2024-01-02 18:51:30 -08:00
Olaoluwa Osuntokun 7f8b185f40 Merge pull request #8307 from ziggie1984/channel-reestablishment-logging
lnwallet: fix logging.
2024-01-02 12:28:01 -08:00
Thabokani 55072bfd5e sweep+lntest: fix typos 2024-01-02 19:23:30 +08:00
Yong ab8fb2c9c3 Merge pull request #8308 from ziggie1984/new_min_cltv_default
zpay32: Change min_final_cltv_expiry_delta.
2024-01-02 17:19:52 +08:00
ziggie 160713eade docs: add release-notes. 2023-12-29 22:35:12 +01:00
Afanti fff785c909 fix: correct the typo 2023-12-29 21:27:13 +08:00
ziggie ec02ffa383 zpay32: Change min_final_cltv_expiry_delta.
We adhere to BOLT 02 and use 18 instead of 9.
2023-12-22 18:16:07 +01:00
ziggie 45a3bf333b lnwallet: fix logging. 2023-12-22 17:36:41 +01:00
Oliver Gugger 4d8fa349ca Merge pull request #8303 from AtomicInnovation321/master
docs: fix typos
2023-12-21 17:31:59 +01:00
bitcoin-lightning b72fc9529e docs: fix typos 2023-12-21 15:21:35 +00:00