...and set suggested gas percentile to 40 instead of 60. Recently, the recommended gas price requested via `eth_gasPrice`, `hmy_gasPrice` or `hmyv2_gasPrice` has been fairly high (think 100k gwei). This patch changes the maximum suggested gas price via these APIs to be capped at 500 gwei. Users are still allowed to change the gas price manually to be higher than this, for faster execution. The occurence of these extremely high gas prices can be attributed to the self reinforcing mechanism of this implementation. If some 20 blocks are produced with extremely high gas prices for all transactions, the API queries the transactions and returns the (erstwhile) 60th percentile from them. This then results in a feedback loop for the following blocks. This loop continues until transactions which do not use the suggested gas price become part of the following blocks - which in itself is unlikely, since transactions are sorted by gas price for inclusion.pull/4134/head
parent
cea90ca4c2
commit
c9ec957b4f
Loading…
Reference in new issue