rpc: populate local CSV delay in ListChannels
This commit is contained in:
1 file changed
+1
@@ -1494,6 +1494,7 @@ func (r *rpcServer) ListChannels(ctx context.Context,
|
|||||||
TotalSatoshisReceived: int64(dbChannel.TotalMSatReceived.ToSatoshis()),
|
TotalSatoshisReceived: int64(dbChannel.TotalMSatReceived.ToSatoshis()),
|
||||||
NumUpdates: localCommit.CommitHeight,
|
NumUpdates: localCommit.CommitHeight,
|
||||||
PendingHtlcs: make([]*lnrpc.HTLC, len(localCommit.Htlcs)),
|
PendingHtlcs: make([]*lnrpc.HTLC, len(localCommit.Htlcs)),
|
||||||
|
CsvDelay: uint32(dbChannel.LocalChanCfg.CsvDelay),
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, htlc := range localCommit.Htlcs {
|
for i, htlc := range localCommit.Htlcs {
|
||||||
|
|||||||
Reference in new issue
Block a user