update min gas price to 50gwei

pull/3990/head
Rongjian Lan 3 years ago committed by Leo Chen
parent 4324729c60
commit 4e0d3ee593
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",
Rejournal: time.Hour,
PriceLimit: 1e11, // 100 Gwei/Nano
PriceLimit: 5e10, // 100 Gwei/Nano
PriceBump: 10,
AccountSlots: 16,

@ -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

@ -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 {

Loading…
Cancel
Save