rpc: populate local CSV delay in ListChannels

This commit is contained in:
Olaoluwa Osuntokun
2017-12-05 17:31:14 -08:00
parent 0ebf55a9f6
commit bd11529ae9

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 {