bump min gas price to 100 gwei

pull/3960/head
Rongjian Lan 3 years ago
parent 4c9546a4d5
commit da65c8158a
  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: 1e9, // 1 Gwei/Nano
PriceLimit: 1e11, // 100 Gwei/Nano
PriceBump: 10,
AccountSlots: 16,

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

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

Loading…
Cancel
Save