MCPcopy Create free account
hub / github.com/DNAProject/DNA / getGasPriceConfig

Function getGasPriceConfig

txnpool/proc/txnpool_server.go:140–151  ·  view source on GitHub ↗

getGasPriceConfig returns the bigger one between global and cmd configured

()

Source from the content-addressed store, hash-verified

138
139// getGasPriceConfig returns the bigger one between global and cmd configured
140func 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
154func (s *TXPoolServer) init(num uint8, disablePreExec, disableBroadcastNetTx bool) {

Callers 2

initMethod · 0.85
cleanTransactionListMethod · 0.85

Calls 2

InfoFunction · 0.92
getGlobalGasPriceFunction · 0.85

Tested by

no test coverage detected