getGasPriceConfig returns the bigger one between global and cmd configured
()
| 138 | |
| 139 | // getGasPriceConfig returns the bigger one between global and cmd configured |
| 140 | func getGasPriceConfig() uint64 { |
| 141 | globalGasPrice, err := getGlobalGasPrice() |
| 142 | if err != nil { |
| 143 | log.Info(err) |
| 144 | return 0 |
| 145 | } |
| 146 | |
| 147 | if globalGasPrice < config.DefConfig.Common.GasPrice { |
| 148 | return config.DefConfig.Common.GasPrice |
| 149 | } |
| 150 | return globalGasPrice |
| 151 | } |
| 152 | |
| 153 | // init initializes the server with the configured settings |
| 154 | func (s *TXPoolServer) init(num uint8, disablePreExec, disableBroadcastNetTx bool) { |
no test coverage detected