Closed
Description
We should properly support eth_hashrate
, as it currently always returns 0.
We need to add eth_submitHashrate that is just a two arg function, a BigInteger first arg (value) and a hash as second arg (key) and we put it in a hashmap. Then for eth_hashrate we sum up the values of the map with the cpu rate.
We may want to size limit the hashmap (where we evict the least recently updated value) and remove zero rates to prevent memory bloat attacks.