-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: delete all trackers when finalizing CCTX (#2615)
* refactor tracker cleanup * add changelog * add extra tests for pending nonces * add more checks for ballot index * resolve comments * rebase develop
- Loading branch information
Showing
9 changed files
with
244 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package runner | ||
|
||
import ( | ||
"github.com/stretchr/testify/require" | ||
|
||
crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" | ||
) | ||
|
||
// EnsureNoTrackers ensures that there are no trackers left on zetacore | ||
func (r *E2ERunner) EnsureNoTrackers() { | ||
// get all trackers | ||
res, err := r.CctxClient.OutTxTrackerAll( | ||
r.Ctx, | ||
&crosschaintypes.QueryAllOutboundTrackerRequest{}, | ||
) | ||
require.NoError(r, err) | ||
require.Empty(r, res.OutboundTracker, "there should be no trackers at the end of the test") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.