lnwallet: add Memo to InitFundingReserveMsg

We also pass the value of Memo from funding/manager.go.
This commit is contained in:
shaurya947 committed 2023-05-18 13:02:30 -04:00
1 parent 7c6faa4c98
commit db44924c5a
2 files changed
+5

No files matched your search

+1
View File
@@ -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)
+4
View File
@@ -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.
//