utils.Logger().Error().Err(err).Msg("[ProposeNewBlock] Failed finalizing the new block")
returnnil,err
}
utils.Logger().Info().Msgf("[ProposeNewBlock] verifying the new block: shard %d, number %d, epoch %d",finalizedBlock.ShardID(),finalizedBlock.NumberU64(),finalizedBlock.Epoch().Uint64())
current*environment// An environment for current running cycle.
engineconsensus_engine.Engine
gasFlooruint64
gasCeiluint64
}
@ -70,12 +68,6 @@ func (w *Worker) CommitSortedTransactions(
coinbasecommon.Address,
){
for{
ifw.current.gasPool.Gas()<50000000{
// Temporary solution to reduce the fullness of the block. Break here when the available gas left hit 50M.
// Effectively making the gas limit 30M (since 80M is the default gas limit)
utils.Logger().Info().Uint64("have",w.current.gasPool.Gas()).Uint64("want",params.TxGas).Msg("[Temp Gas Limit] Not enough gas for further transactions")
break
}
// If we don't have enough gas for any further transactions then we're done
ifw.current.gasPool.Gas()<params.TxGas{
utils.Logger().Info().Uint64("have",w.current.gasPool.Gas()).Uint64("want",params.TxGas).Msg("Not enough gas for further transactions")
@ -96,7 +88,7 @@ func (w *Worker) CommitSortedTransactions(
from,_:=types.Sender(signer,tx)
// Check whether the tx is replay protected. If we're not in the EIP155 hf