itests: add itest for ListSweeps's start_height

This commit is contained in:
Andras Banki-Horvath committed 2024-02-01 21:02:25 +01:00
1 parent 7725a57055
commit 187e61da23
5 files changed
+112 -6

No files matched your search

+2 -2
View File
@@ -2041,10 +2041,10 @@ func (h *HarnessTest) FindCommitAndAnchor(sweepTxns []*wire.MsgTx,
//
// NOTE: Does not account for node's internal state.
func (h *HarnessTest) AssertSweepFound(hn *node.HarnessNode,
sweep string, verbose bool) {
sweep string, verbose bool, startHeight int32) {
// List all sweeps that alice's node had broadcast.
sweepResp := hn.RPC.ListSweeps(verbose)
sweepResp := hn.RPC.ListSweeps(verbose, startHeight)
var found bool
if verbose {