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")
returnsender,shardingconfig.TxInvalid
}
returnsender,shardingconfig.TxSelect
}
// CommitTransactions commits transactions for new block.