From 16bfeddccc6b103d43453440a4643f2eb7e1ec1f Mon Sep 17 00:00:00 2001 From: zakir <80246097+zakir-code@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:14:20 +0800 Subject: [PATCH] remove comment --- types/mempool/priority_nonce_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/types/mempool/priority_nonce_test.go b/types/mempool/priority_nonce_test.go index 3a5bed96045b..73d61cb9c2e9 100644 --- a/types/mempool/priority_nonce_test.go +++ b/types/mempool/priority_nonce_test.go @@ -540,10 +540,8 @@ func (s *MempoolTestSuite) TestRandomTxOrderManyTimes() { // validateOrder checks that the txs are ordered by priority and nonce // in O(n^2) time by checking each tx against all the other txs func validateOrder(mtxs []sdk.Tx) error { - iterations := 0 var itxs []txSpec for i, mtx := range mtxs { - iterations++ tx := mtx.(testTx) itxs = append(itxs, txSpec{p: int(tx.priority), n: int(tx.nonce), a: tx.address, i: i}) } @@ -556,7 +554,6 @@ func validateOrder(mtxs []sdk.Tx) error { for _, a := range itxs { for _, b := range itxs { - iterations++ // when b is before a // when a is before b @@ -574,7 +571,6 @@ func validateOrder(mtxs []sdk.Tx) error { // find a tx with same sender as b and lower nonce found := false for _, c := range itxs { - iterations++ if c.a.Equals(b.a) && c.n < b.n && c.p <= a.p { found = true break @@ -588,8 +584,6 @@ func validateOrder(mtxs []sdk.Tx) error { } } } - _ = iterations - // fmt.Printf("validation in iterations: %d\n", iterations) return nil }