fix Before bug
This commit is contained in:
parent
9b6d822b3e
commit
23003c4d55
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user