diff options
author | Martin Holst Swende <martin@swende.se> | 2019-04-08 19:49:52 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-04-08 19:49:52 +0800 |
commit | e2f3465e83a4c03b48977ed367e68b0d63ca2ed1 (patch) | |
tree | b8cb683600672789aa7b56ed349fbceaaa2ae4ae /internal/ethapi/backend.go | |
parent | ed97517ff4db1982251d8bf7dbeca565159e3604 (diff) | |
download | go-tangerine-e2f3465e83a4c03b48977ed367e68b0d63ca2ed1.tar go-tangerine-e2f3465e83a4c03b48977ed367e68b0d63ca2ed1.tar.gz go-tangerine-e2f3465e83a4c03b48977ed367e68b0d63ca2ed1.tar.bz2 go-tangerine-e2f3465e83a4c03b48977ed367e68b0d63ca2ed1.tar.lz go-tangerine-e2f3465e83a4c03b48977ed367e68b0d63ca2ed1.tar.xz go-tangerine-e2f3465e83a4c03b48977ed367e68b0d63ca2ed1.tar.zst go-tangerine-e2f3465e83a4c03b48977ed367e68b0d63ca2ed1.zip |
eth, les, geth: implement cli-configurable global gas cap for RPC calls (#19401)
* eth, les, geth: implement cli-configurable global gas cap for RPC calls
* graphql, ethapi: place gas cap in DoCall
* ethapi: reformat log message
Diffstat (limited to 'internal/ethapi/backend.go')
-rw-r--r-- | internal/ethapi/backend.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go index e88207f87..0c6c7eace 100644 --- a/internal/ethapi/backend.go +++ b/internal/ethapi/backend.go @@ -45,6 +45,7 @@ type Backend interface { EventMux() *event.TypeMux AccountManager() *accounts.Manager ExtRPCEnabled() bool + RPCGasCap() *big.Int // global gas cap for eth_call over rpc: DoS protection // BlockChain API SetHead(number uint64) |