Skip to content

Commit

Permalink
Merge pull request lightningnetwork#6232 from bottlepay/require-inter…
Browse files Browse the repository at this point in the history
…ceptor

htlcswitch: add an always on mode to htlc interceptor
  • Loading branch information
guggero authored Mar 19, 2022
2 parents 3a04017 + ae314ec commit 57840bb
Show file tree
Hide file tree
Showing 13 changed files with 568 additions and 249 deletions.
4 changes: 4 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ type Config struct {

RejectHTLC bool `long:"rejecthtlc" description:"If true, lnd will not forward any HTLCs that are meant as onward payments. This option will still allow lnd to send HTLCs and receive HTLCs but lnd won't be used as a hop."`

// RequireInterceptor determines whether the HTLC interceptor is
// registered regardless of whether the RPC is called or not.
RequireInterceptor bool `long:"requireinterceptor" description:"Whether to always intercept HTLCs, even if no stream is attached"`

StaggerInitialReconnect bool `long:"stagger-initial-reconnect" description:"If true, will apply a randomized staggering between 0s and 30s when reconnecting to persistent peers on startup. The first 10 reconnections will be attempted instantly, regardless of the flag's value"`

MaxOutgoingCltvExpiry uint32 `long:"max-cltv-expiry" description:"The maximum number of blocks funds could be locked up for when forwarding payments."`
Expand Down
4 changes: 4 additions & 0 deletions docs/release-notes/release-notes-0.15.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
change, it allows encrypted failure messages to be returned to the sender.
Additionally it is possible to signal a malformed htlc.

* Add an [always on](https://github.com/lightningnetwork/lnd/pull/6232) mode to
the HTLC interceptor API. This enables interception applications where every
packet must be intercepted.

## Database

* [Add ForAll implementation for etcd to speed up
Expand Down
Loading

0 comments on commit 57840bb

Please sign in to comment.