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 committed 2023-05-18 13:02:30 -04:00
1 parent 396a4cb6c4
commit c8e4d8e69b
1 file changed
+1
+1
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),