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 committed 2022-10-27 01:11:33 +08:00
1 parent c3bc4d403c
commit 3b250b294c
2 files changed
+24 -1

No files matched your search

+6
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
}