rpcserver: attach channel Memo to *lnrpc.Channel struct

This allows us the memo to be returned in responses such as
listchannels.
This commit is contained in:
shaurya947 2023-05-04 13:53:05 -04:00
parent 396a4cb6c4
commit c8e4d8e69b
No known key found for this signature in database

View File

@ -4224,6 +4224,7 @@ func createRPCOpenChannel(r *rpcServer, dbChannel *channeldb.OpenChannel,
PeerScidAlias: peerScidAlias.ToUint64(),
ZeroConf: dbChannel.IsZeroConf(),
ZeroConfConfirmedScid: dbChannel.ZeroConfRealScid().ToUint64(),
Memo: string(dbChannel.Memo),
// TODO: remove the following deprecated fields
CsvDelay: uint32(dbChannel.LocalChanCfg.CsvDelay),
LocalChanReserveSat: int64(dbChannel.LocalChanCfg.ChanReserve),