rpc: in logging for CloseChannel RPC, also log the force parameter
This commit is contained in:
parent
9a93f83370
commit
d76f660eb1
@ -712,14 +712,16 @@ func (r *rpcServer) CloseChannel(in *lnrpc.CloseChannelRequest,
|
|||||||
}
|
}
|
||||||
chanPoint := wire.NewOutPoint(txid, index)
|
chanPoint := wire.NewOutPoint(txid, index)
|
||||||
|
|
||||||
rpcsLog.Tracef("[closechannel] request for ChannelPoint(%v)",
|
rpcsLog.Tracef("[closechannel] request for ChannelPoint(%v), force=%v",
|
||||||
chanPoint)
|
chanPoint, force)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
updateChan chan *lnrpc.CloseStatusUpdate
|
updateChan chan *lnrpc.CloseStatusUpdate
|
||||||
errChan chan error
|
errChan chan error
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// TODO(roasbeef): if force and peer online then don't force?
|
||||||
|
|
||||||
// If a force closure was requested, then we'll handle all the details
|
// If a force closure was requested, then we'll handle all the details
|
||||||
// around the creation and broadcast of the unilateral closure
|
// around the creation and broadcast of the unilateral closure
|
||||||
// transaction here rather than going to the switch as we don't require
|
// transaction here rather than going to the switch as we don't require
|
||||||
|
Loading…
Reference in New Issue
Block a user