rpc: populate local CSV delay in ListChannels

This commit is contained in:
Olaoluwa Osuntokun committed 2017-12-05 17:46:19 -08:00
1 parent 0ebf55a9f6
commit bd11529ae9
1 file changed
+1
+1
View File
@@ -1494,6 +1494,7 @@ func (r *rpcServer) ListChannels(ctx context.Context,
TotalSatoshisReceived: int64(dbChannel.TotalMSatReceived.ToSatoshis()),
NumUpdates: localCommit.CommitHeight,
PendingHtlcs: make([]*lnrpc.HTLC, len(localCommit.Htlcs)),
CsvDelay: uint32(dbChannel.LocalChanCfg.CsvDelay),
}
for i, htlc := range localCommit.Htlcs {