Skip to content

Commit

Permalink
txpool: set default GasCeil from 30M to 0 (#2688)
Browse files Browse the repository at this point in the history
This PR tries to improve #2680
If the node did not set `Eth.Miner` in config.toml, the default GasCeil
will be 30000000, it is not an accurate number for both BSC mainnet and testnet.
Set it to 0 means disable the transaction GasLimit check, i.e. the TxPool will
accept transactions with any GasLimit size.
  • Loading branch information
zzzckck authored Sep 5, 2024
1 parent 1bcdad8 commit e7e5d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type Config struct {

// DefaultConfig contains default settings for miner.
var DefaultConfig = Config{
GasCeil: 30000000,
GasCeil: 0,
GasPrice: big.NewInt(params.GWei),

// The default recommit time is chosen as two seconds since
Expand Down

0 comments on commit e7e5d50

Please sign in to comment.