mirror of https://github.com/status-im/op-geth.git
682875adff
Gas estimation currently mostly works, but can underestimate for more funky refunds. This is because various ops (e.g. CALL) need more gas to run than they actually consume (e.g. 2300 stipend that is refunded if not used). With more intricate contract interplays, it becomes almost impossible to return a proper value to the user. This commit swaps out the simplistic gas estimation to a binary search approach, honing in on the correct gas use. This does mean that gas estimation needs to rerun the transaction log(max-price) times to measure whether it fails or not, but it's a price paid by the transaction issuer, and it should be worth it to support proper estimates. |
||
---|---|---|
.. | ||
abi | ||
testdata | ||
account_manager.go | ||
accounts_test.go | ||
addrcache.go | ||
addrcache_test.go | ||
key.go | ||
key_store_passphrase.go | ||
key_store_passphrase_test.go | ||
key_store_plain.go | ||
key_store_test.go | ||
presale.go | ||
watch.go | ||
watch_fallback.go |