From 6d538621426fe6ff4ffedee65fb9516f1a027b74 Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 4 Sep 2020 22:16:10 +0300 Subject: [PATCH] republish messages even if the chains have negative performance --- chain/messagepool/repub.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/chain/messagepool/repub.go b/chain/messagepool/repub.go index 1173bdb48..044c4ce36 100644 --- a/chain/messagepool/repub.go +++ b/chain/messagepool/repub.go @@ -67,12 +67,6 @@ func (mp *MessagePool) republishPendingMessages() error { 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) minGas := int64(gasguess.MinGas) var msgs []*types.SignedMessage @@ -89,12 +83,6 @@ func (mp *MessagePool) republishPendingMessages() error { 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? if !chain.valid { i++