From 6a4bc96c5ad2e670ba19f6a30fe4a1709ed8fcdd Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sun, 1 Aug 2021 11:41:34 +0700 Subject: [PATCH] run --- txpool/pool.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/txpool/pool.go b/txpool/pool.go index 7ad90da8d..44391aef0 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -98,12 +98,12 @@ func (mt *MetaTx) Less(than *MetaTx) bool { return mt.SubPool < than.SubPool } // means that strict nonce ordering of transactions from the same sender must be observed. - //if mt.Tx.sender != than.Tx.sender { - // return bytes.Compare(mt.Tx.sender[:], than.Tx.sender[:]) < 0 - //} - //if mt.Tx.nonce != than.Tx.nonce { - // return mt.Tx.nonce < than.Tx.nonce - //} + if mt.Tx.senderID != than.Tx.senderID { + return mt.Tx.senderID < than.Tx.senderID + } + if mt.Tx.nonce != than.Tx.nonce { + return mt.Tx.nonce < than.Tx.nonce + } return false }