rpcserver+lntemp: add more error logs to PendingChannels

This commit adds error logs to `PendingChannels` and changes how we
assert the num of pending force close channels, see the docs for more
info.
This commit is contained in:
yyforyongyu
2022-08-02 17:19:01 +08:00
parent c3bc4d403c
commit 3b250b294c
2 changed files with 24 additions and 1 deletions

View File

@@ -3479,6 +3479,9 @@ func (r *rpcServer) fetchPendingForceCloseChannels() (pendingForceClose,
&chanPoint, currentHeight, forceClose,
)
if err != nil {
rpcsLog.Errorf("unable to populate nursery "+
"force close resp:%s, %v",
chanPoint, err)
return nil, 0, err
}
@@ -3486,6 +3489,9 @@ func (r *rpcServer) fetchPendingForceCloseChannels() (pendingForceClose,
&chanPoint, currentHeight, forceClose,
)
if err != nil {
rpcsLog.Errorf("unable to populate arbitrator "+
"force close resp:%s, %v",
chanPoint, err)
return nil, 0, err
}