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 }