lnd: add max fee rate check to closechannel rpc

This commit is contained in:
ziggie committed 2025-02-20 17:43:18 +01:00
1 parent 59443faa36
commit f458844412
7 files changed
+109 -12

No files matched your search

+6 -4
View File
@@ -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")