eth: Added GPO to suggest default gas prices

This PR fixes a regression of the RPC where the default gas price that
was being used for transaction wasn't properly using the GPO. This PR
adds the GPO back to suggest gas prices rather than the hardcoded
default of 10000000000000.

Closes #2194
This commit is contained in:
Jeffrey Wilcke
2016-02-10 13:20:03 +01:00
parent 856b9e9c50
commit 725f2a4cf7
2 changed files with 14 additions and 15 deletions

View File

@ -269,7 +269,7 @@ func (s *Ethereum) APIs() []rpc.API {
}, {
Namespace: "eth",
Version: "1.0",
Service: NewPublicTransactionPoolAPI(s.TxPool(), s.Miner(), s.ChainDb(), s.EventMux(), s.BlockChain(), s.AccountManager()),
Service: NewPublicTransactionPoolAPI(s),
Public: true,
}, {
Namespace: "eth",