plugeth/accounts/abi/bind
Péter Szilágyi 682875adff accounts/abi/bind, internal/ethapi: binary search gas estimation (#3587)
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.
2017-01-20 23:39:16 +01:00
..
backends accounts/abi/bind, internal/ethapi: binary search gas estimation (#3587) 2017-01-20 23:39:16 +01:00
auth.go accounts, core, crypto, internal: use normalised V during signature handling (#3455) 2017-01-05 11:35:23 +01:00
backend.go all: update license information 2016-11-09 02:51:34 +01:00
base.go all: fix ineffectual assignments and remove uses of crypto.Sha3 2017-01-09 16:24:42 +01:00
bind_test.go accounts/abi/bind, internal/ethapi: binary search gas estimation (#3587) 2017-01-20 23:39:16 +01:00
bind.go all: fix issues reported by honnef.co/go/simple/cmd/gosimple 2017-01-06 18:18:07 +01:00
template.go accounts/abi/bind, mobile: review fixes and android tests 2016-11-14 18:00:14 +02:00
util_test.go core/types: remove redundant SignECDSA wrappers, rename to SignTx 2017-01-05 12:59:17 +01:00
util.go accounts/abi/bind: add utilities for waiting on transactions 2016-08-22 23:20:13 +02:00