lnd: add max fee rate check to closechannel rpc
This commit is contained in:
7 files changed
+109
-12
No files matched your search
+2
-6
@@ -1296,14 +1296,10 @@ func (h *HarnessTest) ForceCloseChannel(hn *node.HarnessNode,
|
||||
// CloseChannelAssertErr closes the given channel and asserts an error
|
||||
// returned.
|
||||
func (h *HarnessTest) CloseChannelAssertErr(hn *node.HarnessNode,
|
||||
cp *lnrpc.ChannelPoint, force bool) error {
|
||||
req *lnrpc.CloseChannelRequest) error {
|
||||
|
||||
// Calls the rpc to close the channel.
|
||||
closeReq := &lnrpc.CloseChannelRequest{
|
||||
ChannelPoint: cp,
|
||||
Force: force,
|
||||
}
|
||||
stream := hn.RPC.CloseChannel(closeReq)
|
||||
stream := hn.RPC.CloseChannel(req)
|
||||
|
||||
// Consume the "channel close" update in order to wait for the closing
|
||||
// transaction to be broadcast, then wait for the closing tx to be seen
|
||||
|
||||
Reference in new issue
Block a user