plugeth/cmd
gary rong 61270e5e1c
eth/gasprice: lighter gas price oracle for light client (#20409)
This PR reduces the bandwidth used by the light client to compute the
recommended gas price. The current mechanism for suggesting the price is:

- retrieve recent 20 blocks
- get the lowest gas price of these blocks
- sort the price array and return the middle(60%) one

This works for full nodes, which have all blocks available locally.
However, this is very expensive for the light client because the light
client needs to retrieve block bodies from the network.

The PR changes the default options for light client. With the new config,
the light client only retrieves the two latest blocks, but in order to
collect more sample transactions, the 3 lowest prices are collected from
each block.

This PR also changes the behavior for empty blocks. If the block is empty,
the lastest price is reused for sampling.
2020-07-03 14:50:35 +02:00
..
abidump cmd: implement abidump (#19958) 2020-01-21 15:51:36 +01:00
abigen cmd/abigen: Sanitize vyper's combined json names (#20419) 2019-12-16 13:37:15 +01:00
bootnode cmd/bootnode: fix exit behavior with -genkey (#20110) 2019-10-02 11:32:02 +02:00
checkpoint-admin cmd/checkpoint-admin: add some documentation (#20697) 2020-03-18 10:18:14 +01:00
clef cmd: abstract getPassPhrase functions into one (#21219) 2020-06-30 09:56:40 +02:00
devp2p cmd/devp2p: add commands for node key management (#21202) 2020-06-24 10:41:53 +02:00
ethkey cmd: abstract getPassPhrase functions into one (#21219) 2020-06-30 09:56:40 +02:00
evm cmd/evm: add state transition tool for testing (#20958) 2020-06-30 10:12:51 +02:00
faucet accounts/keystore, cmd/faucet: return old account to allow unlock 2020-06-04 10:57:21 +03:00
geth cmd/geth: LES priority client test (#20719) 2020-07-01 10:31:11 +02:00
p2psim all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
puppeth cmd, core, params: inital support for yolo-v1 testnet (#21154) 2020-06-03 12:05:15 +03:00
rlpdump cmd/rlpdump: allow hex input to have leading '0x' 2017-10-27 09:40:52 +01:00
utils eth/gasprice: lighter gas price oracle for light client (#20409) 2020-07-03 14:50:35 +02:00
wnode cmd/clef, signer/core: password input fixes (#20960) 2020-05-19 10:44:46 +02:00