[BUG] Fix Ethereum Network Fee Slashes

We're currently seeing slash points accrue on ETH network fee updates, and it seems this is due to a mismatch in the observed values between nodes. I believe this is primarily caused by the usage of the eth_gasPrice RPC at runtime instead of using the fee from the previous block. Additionally @fandral mentioned that block re-orgs may cause consistency issues which seems highly likely here as well. This change contains the following:

  1. Update the gas price suggestion to use a deterministic algorithm (research: https://notebooks.ninerealms.com/#eth-gas-investigation)
  2. Set a 1 block lag in the Ethereum block scanner, which based on anecdotal data (https://etherscan.io/blocks_forked) should avoid the majority of re-orgs

Earmarks

  • Avoid getting the entire block in GetHeight
Edited by Heimdall

Merge request reports

Loading