itests: add FundPsbt custom lock ID and duration test

This commit is contained in:
Andras Banki-Horvath
2025-04-16 20:44:54 +02:00
parent 8dab512981
commit fbe645f96a
4 changed files with 133 additions and 0 deletions

View File

@@ -379,3 +379,16 @@ func (h *HarnessRPC) RequiredReserve(
return resp
}
// ListLeases makes a ListLeases RPC call to the node's WalletKit client.
func (h *HarnessRPC) ListLeases() *walletrpc.ListLeasesResponse {
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
defer cancel()
resp, err := h.WalletKit.ListLeases(
ctxt, &walletrpc.ListLeasesRequest{},
)
h.NoError(err, "ListLeases")
return resp
}