github.com/aswedchain/aswed@v1.0.1/eth/gasprice/config.go (about)

     1  package gasprice
     2  
     3  import "math/big"
     4  
     5  type Config struct {
     6  	Blocks     int
     7  	Percentile int
     8  	Default    *big.Int `toml:",omitempty"`
     9  	MaxPrice   *big.Int `toml:",omitempty"`
    10  
    11  	PredConfig
    12  }
    13  
    14  type PredConfig struct {
    15  	PredictIntervalSecs int
    16  	MinTxCntPerBlock    int // minimum tx cnt per block for caculations.
    17  	FastFactor          int // how many times of avgTxCnt for the fast index
    18  	MedianFactor        int // how many times of avgTxCnt for the median index
    19  	LowFactor           int // how many times of avgTxCnt for the low index
    20  	MinMedianIndex      int // min index in all pending transactions for median price
    21  	MinLowIndex         int // min index in all pending transactions for low price
    22  
    23  	FastPercentile   int //fast percentile for the case there are no many pending transactions
    24  	MeidanPercentile int
    25  
    26  	MaxValidPendingSecs int
    27  }