This commit is contained in:
alex.sharov 2021-08-01 11:44:40 +07:00
parent 6a4bc96c5a
commit 52fc8df02a

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.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
}
//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
}