You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: helper/config.go
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,9 @@ const (
103
103
104
104
DefaultBttcChainIDstring="15001"
105
105
106
+
DefaultEnableIncreaseGasPrice=false
107
+
DefaultGasPriceIncreasePercent=0
108
+
106
109
DefaultLogsType="json"
107
110
DefaultChain="mainnet"
108
111
@@ -168,6 +171,9 @@ type Configuration struct {
168
171
BscMaxQueryBlocksint64`mapstructure:"bsc_max_query_blocks"`// bsc max number of blocks in one query logs
169
172
TronMaxQueryBlocksint64`mapstructure:"tron_max_query_blocks"`// tron max number of blocks in one query logs
170
173
HeimdallMaxQueryBlocksint64`mapstructure:"heimdall_max_query_blocks"`// heimdall max number of blocks in one query logs
174
+
175
+
EnableIncreaseGasPricebool`mapstructure:"enable_increase_gas_price"`// whether enable increase gas price when submit checkpoint to eth
176
+
GasPriceIncreasePercentint64`mapstructure:"gas_price_increase_percent"`// the increase percent of gas price when submit tx. newGasPrice = oldGasPrice * (100 + GasPriceIncreasePercent) / 100
0 commit comments