fix Before bug

This commit is contained in:
vyzo 2020-08-05 10:28:12 +03:00
parent 9b6d822b3e
commit 23003c4d55

View File

@ -286,7 +286,7 @@ func (mp *MessagePool) createMessageChains(actor address.Address, mset *msgSet,
func (self *msgChain) Before(other *msgChain) bool { func (self *msgChain) Before(other *msgChain) bool {
return self.gasPerf > other.gasPerf || return self.gasPerf > other.gasPerf ||
(self.gasPerf == other.gasPerf && self.gasReward.Cmp(other.gasReward) < 0) (self.gasPerf == other.gasPerf && self.gasReward.Cmp(other.gasReward) > 0)
} }
func (mc *msgChain) Trim(gasLimit int64, mp *MessagePool, ts *types.TipSet) { func (mc *msgChain) Trim(gasLimit int64, mp *MessagePool, ts *types.TipSet) {