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 /les | |
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 'les')
-rw-r--r-- | les/api_backend.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/les/api_backend.go b/les/api_backend.go index 8b03979a2..4fe352136 100644 --- a/les/api_backend.go +++ b/les/api_backend.go @@ -192,6 +192,10 @@ func (b *LesApiBackend) ExtRPCEnabled() bool { return b.extRPCEnabled } +func (b *LesApiBackend) RPCGasCap() *big.Int { + return b.eth.config.RPCGasCap +} + func (b *LesApiBackend) BloomStatus() (uint64, uint64) { if b.eth.bloomIndexer == nil { return 0, 0 |