itest: Add itest for bumpclosefeerate rpc.

Add an itest which will bump the close fee rate of an anchor
channel which is force closed without having any HTLCs at stake.
This commit is contained in:
ziggie
2024-07-29 16:42:55 +02:00
parent ae28f75557
commit 2d04813dc3
4 changed files with 174 additions and 1 deletions

View File

@@ -254,6 +254,21 @@ func (h *HarnessRPC) BumpFee(
return resp
}
// BumpForceCloseFee makes a RPC call to the node's WalletKitClient and asserts.
//
//nolint:lll
func (h *HarnessRPC) BumpForceCloseFee(
req *walletrpc.BumpForceCloseFeeRequest) *walletrpc.BumpForceCloseFeeResponse {
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
defer cancel()
resp, err := h.WalletKit.BumpForceCloseFee(ctxt, req)
h.NoError(err, "BumpForceCloseFee")
return resp
}
// ListAccounts makes a RPC call to the node's WalletKitClient and asserts.
func (h *HarnessRPC) ListAccounts(
req *walletrpc.ListAccountsRequest) *walletrpc.ListAccountsResponse {