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
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 1 additions and 0 deletions

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 {