diff --git a/hmy/gasprice.go b/hmy/gasprice.go index 8c2693663..05cf6b7cd 100644 --- a/hmy/gasprice.go +++ b/hmy/gasprice.go @@ -34,7 +34,7 @@ import ( const sampleNumber = 3 // Number of transactions sampled in a block -var DefaultMaxPrice = big.NewInt(1 * params.Ether) +var DefaultMaxPrice = big.NewInt(5e11) // 500 gwei is the max suggested limit type GasPriceConfig struct { Blocks int diff --git a/hmy/hmy.go b/hmy/hmy.go index 2af8d2655..537873030 100644 --- a/hmy/hmy.go +++ b/hmy/hmy.go @@ -151,9 +151,9 @@ func New( // Setup gas price oracle gpoParams := GasPriceConfig{ - Blocks: 20, - Percentile: 60, - Default: big.NewInt(3e10), + Blocks: 20, // take all eligible txs past 20 blocks and sort them + Percentile: 40, // get the 40th percentile when sorted in an ascending manner + Default: big.NewInt(3e10), // minimum of 30 gwei } gpo := NewOracle(backend, gpoParams) backend.gpo = gpo