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.
This commit is contained in:
George Tsagkarelis
2025-08-28 13:40:00 +02:00
parent 44406db82a
commit 56c56060aa

View File

@@ -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