From 4e0d3ee59334b875410e8a91927bbc1ef5f1bb35 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Mon, 20 Dec 2021 17:32:18 -0800 Subject: [PATCH] update min gas price to 50gwei --- core/tx_pool.go | 2 +- hmy/hmy.go | 2 +- rpc/harmony.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index 4f5e653eb..9c06b8e4f 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -170,7 +170,7 @@ var DefaultTxPoolConfig = TxPoolConfig{ Journal: "transactions.rlp", Rejournal: time.Hour, - PriceLimit: 1e11, // 100 Gwei/Nano + PriceLimit: 5e10, // 100 Gwei/Nano PriceBump: 10, AccountSlots: 16, diff --git a/hmy/hmy.go b/hmy/hmy.go index 33a9e81b1..a693f80e5 100644 --- a/hmy/hmy.go +++ b/hmy/hmy.go @@ -153,7 +153,7 @@ func New( gpoParams := GasPriceConfig{ Blocks: 20, Percentile: 60, - Default: big.NewInt(1e11), + Default: big.NewInt(5e10), } gpo := NewOracle(backend, gpoParams) backend.gpo = gpo diff --git a/rpc/harmony.go b/rpc/harmony.go index 86efc6278..bc1fff4fd 100644 --- a/rpc/harmony.go +++ b/rpc/harmony.go @@ -60,8 +60,8 @@ func (s *PublicHarmonyService) Syncing( // Note that the return type is an interface to account for the different versions func (s *PublicHarmonyService) GasPrice(ctx context.Context) (interface{}, error) { price, err := s.hmy.SuggestPrice(ctx) - if err != nil || price.Cmp(big.NewInt(1e11)) < 0 { - price = big.NewInt(1e11) + if err != nil || price.Cmp(big.NewInt(5e10)) < 0 { + price = big.NewInt(5e10) } // Format response according to version switch s.version {