From 56c56060aa0a7ebc090bda2558107c3e3308faba Mon Sep 17 00:00:00 2001 From: George Tsagkarelis Date: Thu, 28 Aug 2025 13:40:00 +0200 Subject: [PATCH] lnd: add AuxChannelNegotiator to AuxComponents We now plug-in the aux channel negotiator to the server impl config. We also provide it to the peer config as that's where it's needed in order to inject custom records in the appropriate peer messages. --- config_builder.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config_builder.go b/config_builder.go index 6f9cb1f3e..d3ca5e2b2 100644 --- a/config_builder.go +++ b/config_builder.go @@ -213,6 +213,11 @@ type AuxComponents struct { // AuxContractResolver is an optional interface that can be used to // modify the way contracts are resolved. AuxContractResolver fn.Option[lnwallet.AuxContractResolver] + + // AuxChannelNegotiator is an optional interface that allows aux channel + // implementations to inject and process custom records over channel + // related wire messages. + AuxChannelNegotiator fn.Option[lnwallet.AuxChannelNegotiator] } // DefaultWalletImpl is the default implementation of our normal, btcwallet