eth/gasprice: set default percentile to 60%, count blocks instead of transactions (#15828)

The first should address a long term issue where we recommend a gas
price that is greater than that required for 50% of transactions in
recent blocks, which can lead to gas price inflation as people take
this figure and add a margin to it, resulting in a positive feedback
loop.
This commit is contained in:
Nick Johnson
2018-01-10 12:57:36 +00:00
committed by Felix Lange
parent 3a5a5599dd
commit b06e20bc7c
2 changed files with 34 additions and 19 deletions

View File

@ -49,8 +49,8 @@ var DefaultConfig = Config{
TxPool: core.DefaultTxPoolConfig,
GPO: gasprice.Config{
Blocks: 10,
Percentile: 50,
Blocks: 20,
Percentile: 60,
},
}