bump min gas price to 100 gwei

pull/3990/head
Rongjian Lan 3 years ago committed by Leo Chen
parent 2dc54381fb
commit 4324729c60
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: 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