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 committed 2024-08-09 19:41:27 +02:00
1 parent ae28f75557
commit 2d04813dc3
4 files changed
+174 -1

No files matched your search

+15
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 {