mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 10:33:13 +02:00
lnd: add max fee rate check to closechannel rpc
This commit is contained in:
@@ -283,14 +283,16 @@ func (c *chanRestoreScenario) testScenario(ht *lntest.HarnessTest,
|
||||
|
||||
// We don't get an error directly but only when reading the first
|
||||
// message of the stream.
|
||||
err := ht.CloseChannelAssertErr(
|
||||
dave, &lnrpc.ChannelPoint{
|
||||
req := &lnrpc.CloseChannelRequest{
|
||||
ChannelPoint: &lnrpc.ChannelPoint{
|
||||
FundingTxid: &lnrpc.ChannelPoint_FundingTxidStr{
|
||||
FundingTxidStr: chanPointParts[0],
|
||||
},
|
||||
OutputIndex: uint32(chanPointIndex),
|
||||
}, true,
|
||||
)
|
||||
},
|
||||
Force: true,
|
||||
}
|
||||
err := ht.CloseChannelAssertErr(dave, req)
|
||||
require.Contains(ht, err.Error(), "cannot close channel with state: ")
|
||||
require.Contains(ht, err.Error(), "ChanStatusRestored")
|
||||
|
||||
|
Reference in New Issue
Block a user