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,
|
ZeroConf: zeroConf,
|
||||||
OptionScidAlias: scid,
|
OptionScidAlias: scid,
|
||||||
ScidAliasFeature: scidFeatureVal,
|
ScidAliasFeature: scidFeatureVal,
|
||||||
|
Memo: msg.Memo,
|
||||||
}
|
}
|
||||||
|
|
||||||
reservation, err := f.cfg.Wallet.InitChannelReservation(req)
|
reservation, err := f.cfg.Wallet.InitChannelReservation(req)
|
||||||
|
|||||||
@@ -179,6 +179,10 @@ type InitFundingReserveMsg struct {
|
|||||||
// negotiated.
|
// negotiated.
|
||||||
ScidAliasFeature bool
|
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
|
// err is a channel in which all errors will be sent across. Will be
|
||||||
// nil if this initial set is successful.
|
// nil if this initial set is successful.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in new issue
Block a user