From da65c8158af4a713445122ddeb8c61bfe9981576 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Mon, 20 Dec 2021 17:09:14 -0800 Subject: [PATCH] bump min gas price to 100 gwei --- 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 b0a37017e..4f5e653eb 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: 1e9, // 1 Gwei/Nano + PriceLimit: 1e11, // 100 Gwei/Nano PriceBump: 10, AccountSlots: 16, diff --git a/hmy/hmy.go b/hmy/hmy.go index 1ac7dfdde..33a9e81b1 100644 --- a/hmy/hmy.go +++ b/hmy/hmy.go @@ -153,7 +153,7 @@ func New( gpoParams := GasPriceConfig{ Blocks: 20, Percentile: 60, - Default: big.NewInt(1e10), + Default: big.NewInt(1e11), } gpo := NewOracle(backend, gpoParams) backend.gpo = gpo diff --git a/rpc/harmony.go b/rpc/harmony.go index 86dc17706..86efc6278 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(1e10)) < 0 { - price = big.NewInt(1e10) + if err != nil || price.Cmp(big.NewInt(1e11)) < 0 { + price = big.NewInt(1e11) } // Format response according to version switch s.version {