Skip to content

Commit

Permalink
Set gasprice floor for miner and tx pool to zero (ethereum#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmoreton authored Nov 8, 2018
1 parent 1dc5d58 commit e2e11ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ var DefaultTxPoolConfig = TxPoolConfig{
Journal: "transactions.rlp",
Rejournal: time.Hour,

PriceLimit: 1,
PriceLimit: 0,
PriceBump: 10,

AccountSlots: 16,
Expand All @@ -164,7 +164,7 @@ func (config *TxPoolConfig) sanitize() TxPoolConfig {
log.Warn("Sanitizing invalid txpool journal time", "provided", conf.Rejournal, "updated", time.Second)
conf.Rejournal = time.Second
}
if conf.PriceLimit < 1 {
if conf.PriceLimit < 0 {
log.Warn("Sanitizing invalid txpool price limit", "provided", conf.PriceLimit, "updated", DefaultTxPoolConfig.PriceLimit)
conf.PriceLimit = DefaultTxPoolConfig.PriceLimit
}
Expand Down
3 changes: 1 addition & 2 deletions eth/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/eth/downloader"
"github.com/ethereum/go-ethereum/eth/gasprice"
"github.com/ethereum/go-ethereum/params"
)

// DefaultConfig contains default settings for use on the Ethereum main net.
Expand All @@ -50,7 +49,7 @@ var DefaultConfig = Config{
TrieTimeout: 60 * time.Minute,
MinerGasFloor: 8000000,
MinerGasCeil: 8000000,
MinerGasPrice: big.NewInt(params.GWei),
MinerGasPrice: big.NewInt(0), // params.GWei
MinerRecommit: 3 * time.Second,
MinerVerificationServiceUrl: "https://mining-pool.celo.org/v0.1/sms",

Expand Down

0 comments on commit e2e11ee

Please sign in to comment.