itests: add itest for ListSweeps's start_height
This commit is contained in:
5 files changed
+112
-6
No files matched your search
@@ -159,11 +159,16 @@ func (h *HarnessRPC) VerifyMessageWithAddr(
|
||||
}
|
||||
|
||||
// ListSweeps makes a ListSweeps RPC call to the node's WalletKit client.
|
||||
func (h *HarnessRPC) ListSweeps(verbose bool) *walletrpc.ListSweepsResponse {
|
||||
func (h *HarnessRPC) ListSweeps(verbose bool,
|
||||
startHeight int32) *walletrpc.ListSweepsResponse {
|
||||
|
||||
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
||||
defer cancel()
|
||||
|
||||
req := &walletrpc.ListSweepsRequest{Verbose: verbose}
|
||||
req := &walletrpc.ListSweepsRequest{
|
||||
Verbose: verbose,
|
||||
StartHeight: startHeight,
|
||||
}
|
||||
resp, err := h.WalletKit.ListSweeps(ctxt, req)
|
||||
h.NoError(err, "ListSweeps")
|
||||
|
||||
|
||||
Reference in new issue
Block a user