diff options
author | Felföldi Zsolt <zsfelfoldi@gmail.com> | 2017-04-06 22:20:42 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-04-06 22:20:42 +0800 |
commit | 9aca9e6deb243b87cc75325be593a3b0c2f0a113 (patch) | |
tree | 605baeff7692446519b40118314a44a2fcb8e923 /eth/api_backend.go | |
parent | 0ec1104ba92c226c279389bbeb88ca515208f030 (diff) | |
download | dexon-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar dexon-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.gz dexon-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.bz2 dexon-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.lz dexon-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.xz dexon-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.zst dexon-9aca9e6deb243b87cc75325be593a3b0c2f0a113.zip |
cmd, les, eth, eth/gasprice: using new gas price oracle (#13853)
* cmd, les, eth, eth/gasprice: using new gas price oracle
* eth/gasprice: renamed source file
* eth/gasprice: added security checks for gpo params
* eth/gasprice: fixed naming issues
* eth/gasprice: max limit, maxEmpty
Diffstat (limited to 'eth/api_backend.go')
-rw-r--r-- | eth/api_backend.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/api_backend.go b/eth/api_backend.go index 418a34435..61e184401 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -39,7 +39,7 @@ import ( // EthApiBackend implements ethapi.Backend for full nodes type EthApiBackend struct { eth *Ethereum - gpo *gasprice.GasPriceOracle + gpo *gasprice.Oracle } func (b *EthApiBackend) ChainConfig() *params.ChainConfig { @@ -186,7 +186,7 @@ func (b *EthApiBackend) ProtocolVersion() int { } func (b *EthApiBackend) SuggestPrice(ctx context.Context) (*big.Int, error) { - return b.gpo.SuggestPrice(), nil + return b.gpo.SuggestPrice(ctx) } func (b *EthApiBackend) ChainDb() ethdb.Database { |