aboutsummaryrefslogtreecommitdiffstats
path: root/mobile
diff options
context:
space:
mode:
authorFelföldi Zsolt <zsfelfoldi@gmail.com>2017-04-06 22:20:42 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-04-06 22:20:42 +0800
commit9aca9e6deb243b87cc75325be593a3b0c2f0a113 (patch)
tree605baeff7692446519b40118314a44a2fcb8e923 /mobile
parent0ec1104ba92c226c279389bbeb88ca515208f030 (diff)
downloadgo-tangerine-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar
go-tangerine-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.gz
go-tangerine-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.bz2
go-tangerine-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.lz
go-tangerine-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.xz
go-tangerine-9aca9e6deb243b87cc75325be593a3b0c2f0a113.tar.zst
go-tangerine-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 'mobile')
-rw-r--r--mobile/geth.go24
1 files changed, 10 insertions, 14 deletions
diff --git a/mobile/geth.go b/mobile/geth.go
index e070cec56..402f0b680 100644
--- a/mobile/geth.go
+++ b/mobile/geth.go
@@ -168,20 +168,16 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) {
// Register the Ethereum protocol if requested
if config.EthereumEnabled {
ethConf := &eth.Config{
- Genesis: genesis,
- LightMode: true,
- DatabaseCache: config.EthereumDatabaseCache,
- NetworkId: config.EthereumNetworkID,
- GasPrice: new(big.Int).SetUint64(20 * params.Shannon),
- GpoMinGasPrice: new(big.Int).SetUint64(50 * params.Shannon),
- GpoMaxGasPrice: new(big.Int).SetUint64(500 * params.Shannon),
- GpoFullBlockRatio: 80,
- GpobaseStepDown: 10,
- GpobaseStepUp: 100,
- GpobaseCorrectionFactor: 110,
- EthashCacheDir: "ethash",
- EthashCachesInMem: 2,
- EthashCachesOnDisk: 3,
+ Genesis: genesis,
+ LightMode: true,
+ DatabaseCache: config.EthereumDatabaseCache,
+ NetworkId: config.EthereumNetworkID,
+ GasPrice: new(big.Int).SetUint64(20 * params.Shannon),
+ GpoBlocks: 5,
+ GpoPercentile: 50,
+ EthashCacheDir: "ethash",
+ EthashCachesInMem: 2,
+ EthashCachesOnDisk: 3,
}
if err := rawStack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
return les.New(ctx, ethConf)