This commit is contained in:
alex.sharov 2021-08-01 11:41:34 +07:00
parent 54b4e1b034
commit 6a4bc96c5a

View File

@ -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
}