rpcserver: adds signed blocks til maturity in pending channels
This commit is contained in:
parent
1f34f117ff
commit
23343c0700
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user