utils.Logger().Info().Str("txId",tx.Hash().Hex()).Int("MaxNumTxsPerBlockLimit",txsThrottleConfig.MaxNumTxsPerBlockLimit).Msg("Throttling tx with max num txs per block limit")
returnsender,shardingconfig.TxUnselect
}
// throttle a single sender sending too many transactions in one block
utils.Logger().Info().Str("txId",tx.Hash().Hex()).Uint64("MaxTxAmountLimit",txsThrottleConfig.MaxTxAmountLimit.Uint64()).Uint64("txAmount",tx.Value().Uint64()).Msg("Throttling tx with max amount limit")
utils.Logger().Info().Str("txId",tx.Hash().Hex()).Uint64("MaxNumRecentTxsPerAccountLimit",txsThrottleConfig.MaxNumRecentTxsPerAccountLimit).Msg("Throttling tx with max txs per account in a single block limit")
utils.GetLogInstance().Info("Transaction gas limit info",
"Transaction Id",tx.Hash().Hex(),
"tx gas limit",tx.Gas())
utils.Logger().Info().Str("txId",tx.Hash().Hex()).Uint64("txGasLimit",tx.Gas()).Msg("Transaction gas limit info")
}
utils.GetLogInstance().Info("Block gas limit and usage info",
"newBlockNum",newBlockNum,
"block gas limit",w.current.header.GasLimit,
"block gas used",w.current.header.GasUsed)
utils.Logger().Info().Uint64("newBlockNum",newBlockNum).Uint64("blockGasLimit",w.current.header.GasLimit).Uint64("blockGasUsed",w.current.header.GasUsed).Msg("Block gas limit and usage info")