update min gas to 30 gwei

pull/3990/head
Rongjian Lan 3 years ago committed by Leo Chen
parent 3a842f098f
commit 31a3e129a4
No known key found for this signature in database
GPG Key ID: 9A0417092EBC5E96
  1. 2
      core/tx_pool.go
  2. 2
      hmy/hmy.go
  3. 4
      rpc/harmony.go

@ -170,7 +170,7 @@ var DefaultTxPoolConfig = TxPoolConfig{
Journal: "transactions.rlp", Journal: "transactions.rlp",
Rejournal: time.Hour, Rejournal: time.Hour,
PriceLimit: 5e10, // 50 Gwei/Nano PriceLimit: 3e10, // 30 Gwei/Nano
PriceBump: 10, PriceBump: 10,
AccountSlots: 16, AccountSlots: 16,

@ -153,7 +153,7 @@ func New(
gpoParams := GasPriceConfig{ gpoParams := GasPriceConfig{
Blocks: 20, Blocks: 20,
Percentile: 60, Percentile: 60,
Default: big.NewInt(5e10), Default: big.NewInt(3e10),
} }
gpo := NewOracle(backend, gpoParams) gpo := NewOracle(backend, gpoParams)
backend.gpo = gpo backend.gpo = gpo

@ -60,8 +60,8 @@ func (s *PublicHarmonyService) Syncing(
// Note that the return type is an interface to account for the different versions // Note that the return type is an interface to account for the different versions
func (s *PublicHarmonyService) GasPrice(ctx context.Context) (interface{}, error) { func (s *PublicHarmonyService) GasPrice(ctx context.Context) (interface{}, error) {
price, err := s.hmy.SuggestPrice(ctx) price, err := s.hmy.SuggestPrice(ctx)
if err != nil || price.Cmp(big.NewInt(5e10)) < 0 { if err != nil || price.Cmp(big.NewInt(3e10)) < 0 {
price = big.NewInt(5e10) price = big.NewInt(3e10)
} }
// Format response according to version // Format response according to version
switch s.version { switch s.version {

Loading…
Cancel
Save