lnwallet: add Memo to InitFundingReserveMsg
We also pass the value of Memo from funding/manager.go.
This commit is contained in:
2 files changed
+5
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user