hermeznetwork / hermez-node

Hermez node Go implementation
GNU Affero General Public License v3.0
58 stars 33 forks source link

GasPrice from Etherscan should be converted in wei before price limit check #1050

Closed jeffprestes closed 3 years ago

jeffprestes commented 3 years ago

Summary of Bug

Today the gasPrice returned from Etherscan is converted in wei after max limit check what mislead the verification and also make the maxGasPrice parameter being set as Gwei and not in WEI as it must be.

Expected Behavior

MaxGasPrice and MinGasPrice parameter must be set in wei and the convertion from wei to gwei must be performed within the function that get data from etherscan

Steps to Reproduce

Put MaxGasPrice in wei in config file