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 20:15:13 +0800 |
commit | e872ba7a9e8123a4010198ee8dfaada9f71fa24a (patch) | |
tree | 11a3ae72a1ee1854fc77795c76c232fcde0cd186 /les/api_backend.go | |
parent | 9d9c6b5847bfd1267c2fee60f5a5b05bdaaf4216 (diff) | |
download | go-tangerine-e872ba7a9e8123a4010198ee8dfaada9f71fa24a.tar go-tangerine-e872ba7a9e8123a4010198ee8dfaada9f71fa24a.tar.gz go-tangerine-e872ba7a9e8123a4010198ee8dfaada9f71fa24a.tar.bz2 go-tangerine-e872ba7a9e8123a4010198ee8dfaada9f71fa24a.tar.lz go-tangerine-e872ba7a9e8123a4010198ee8dfaada9f71fa24a.tar.xz go-tangerine-e872ba7a9e8123a4010198ee8dfaada9f71fa24a.tar.zst go-tangerine-e872ba7a9e8123a4010198ee8dfaada9f71fa24a.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/api_backend.go')
-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 753139623..f03d32fed 100644 --- a/les/api_backend.go +++ b/les/api_backend.go @@ -187,6 +187,10 @@ func (b *LesApiBackend) AccountManager() *accounts.Manager { return b.eth.accountManager } +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 |