rpcserver: adds signed blocks til maturity in pending channels

This commit is contained in:
Conner Fromknecht committed 2017-11-15 18:04:44 -08:00
1 parent 1f34f117ff
commit 23343c0700
1 file changed
+3 -2
+3 -2
View File
@@ -1246,8 +1246,9 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
// If the transaction has been confirmed, then // If the transaction has been confirmed, then
// we can compute how many blocks it has left. // we can compute how many blocks it has left.
if forceClose.MaturityHeight != 0 { if forceClose.MaturityHeight != 0 {
forceClose.BlocksTilMaturity = (forceClose.MaturityHeight - forceClose.BlocksTilMaturity =
uint32(currentHeight)) int32(forceClose.MaturityHeight) -
currentHeight
} }
resp.TotalLimboBalance += int64(nurseryInfo.limboBalance) resp.TotalLimboBalance += int64(nurseryInfo.limboBalance)