rpcserver: adds signed blocks til maturity in pending channels

This commit is contained in:
Conner Fromknecht 2017-11-08 23:08:13 -08:00
parent 1f34f117ff
commit 23343c0700
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -1246,8 +1246,9 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
// If the transaction has been confirmed, then
// we can compute how many blocks it has left.
if forceClose.MaturityHeight != 0 {
forceClose.BlocksTilMaturity = (forceClose.MaturityHeight -
uint32(currentHeight))
forceClose.BlocksTilMaturity =
int32(forceClose.MaturityHeight) -
currentHeight
}
resp.TotalLimboBalance += int64(nurseryInfo.limboBalance)