From db44924c5a4dcb60f321952192a18d11b2b634d5 Mon Sep 17 00:00:00 2001 From: shaurya947 Date: Wed, 3 May 2023 16:30:11 -0400 Subject: [PATCH] lnwallet: add Memo to InitFundingReserveMsg We also pass the value of Memo from funding/manager.go. --- funding/manager.go | 1 + lnwallet/wallet.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/funding/manager.go b/funding/manager.go index 8563ec94e..8c4d8c06c 100644 --- a/funding/manager.go +++ b/funding/manager.go @@ -4141,6 +4141,7 @@ func (f *Manager) handleInitFundingMsg(msg *InitFundingMsg) { ZeroConf: zeroConf, OptionScidAlias: scid, ScidAliasFeature: scidFeatureVal, + Memo: msg.Memo, } reservation, err := f.cfg.Wallet.InitChannelReservation(req) diff --git a/lnwallet/wallet.go b/lnwallet/wallet.go index 06f701af1..d9914a778 100644 --- a/lnwallet/wallet.go +++ b/lnwallet/wallet.go @@ -179,6 +179,10 @@ type InitFundingReserveMsg struct { // negotiated. ScidAliasFeature bool + // Memo is any arbitrary information we wish to store locally about the + // channel that will be useful to our future selves. + Memo []byte + // err is a channel in which all errors will be sent across. Will be // nil if this initial set is successful. //