republish messages even if the chains have negative performance
This commit is contained in:
parent
52ce80f2b4
commit
6d53862142
@ -67,12 +67,6 @@ func (mp *MessagePool) republishPendingMessages() error {
|
|||||||
return chains[i].Before(chains[j])
|
return chains[i].Before(chains[j])
|
||||||
})
|
})
|
||||||
|
|
||||||
// we don't republish negative performing chains; this is an error that will be screamed
|
|
||||||
// at the user
|
|
||||||
if chains[0].gasPerf < 0 {
|
|
||||||
return xerrors.Errorf("skipping republish: all message chains have negative gas performance; best gas performance: %f", chains[0].gasPerf)
|
|
||||||
}
|
|
||||||
|
|
||||||
gasLimit := int64(build.BlockGasLimit)
|
gasLimit := int64(build.BlockGasLimit)
|
||||||
minGas := int64(gasguess.MinGas)
|
minGas := int64(gasguess.MinGas)
|
||||||
var msgs []*types.SignedMessage
|
var msgs []*types.SignedMessage
|
||||||
@ -89,12 +83,6 @@ func (mp *MessagePool) republishPendingMessages() error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
// we don't republish negative performing chains, as they won't be included in
|
|
||||||
// a block anyway
|
|
||||||
if chain.gasPerf < 0 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
// has the chain been invalidated?
|
// has the chain been invalidated?
|
||||||
if !chain.valid {
|
if !chain.valid {
|
||||||
i++
|
i++
|
||||||
|
Loading…
Reference in New Issue
Block a user