plugeth/cmd
Felix Lange 191364c350 p2p/dnsdisc: add enode.Iterator API (#20437)
* p2p/dnsdisc: add support for enode.Iterator

This changes the dnsdisc.Client API to support the enode.Iterator
interface.

* p2p/dnsdisc: rate-limit DNS requests

* p2p/dnsdisc: preserve linked trees across root updates

This improves the way links are handled when the link root changes.
Previously, sync would simply remove all links from the current tree and
garbage-collect all unreachable trees before syncing the new list of
links.

This behavior isn't great in certain cases: Consider a structure where
trees A, B, and C reference each other and D links to A. If D's link
root changed, the sync code would first remove trees A, B and C, only to
re-sync them later when the link to A was found again.

The fix for this problem is to track the current set of links in each
clientTree and removing old links only AFTER all links are synced.

* p2p/dnsdisc: deflake iterator test

* cmd/devp2p: adapt dnsClient to new p2p/dnsdisc API

* p2p/dnsdisc: tiny comment fix
2019-12-12 11:15:36 +02:00
..
abigen cmd: fix command help messages in modules (#20203) 2019-11-26 11:46:39 +01:00
bootnode cmd/bootnode: fix exit behavior with -genkey (#20110) 2019-10-02 11:32:02 +02:00
checkpoint-admin cmd: fix command help messages in modules (#20203) 2019-11-26 11:46:39 +01:00
clef cmd: fix command help messages in modules (#20203) 2019-11-26 11:46:39 +01:00
devp2p p2p/dnsdisc: add enode.Iterator API (#20437) 2019-12-12 11:15:36 +02:00
ethkey cmd: fix command help messages in modules (#20203) 2019-11-26 11:46:39 +01:00
evm cmd: fix command help messages in modules (#20203) 2019-11-26 11:46:39 +01:00
faucet cmd/faucet, cmd/geth: fix staticcheck warnings (#20374) 2019-11-29 11:38:34 +01:00
geth consensus/ethash, params: eip-2384: bump difficulty bomb (#20347) 2019-12-06 11:36:40 +02:00
p2psim all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
puppeth Merge pull request #20350 from holiman/puppeth_ssh 2019-11-21 15:08:10 +02:00
rlpdump cmd/rlpdump: allow hex input to have leading '0x' 2017-10-27 09:40:52 +01:00
utils consensus/ethash, params: eip-2384: bump difficulty bomb (#20347) 2019-12-06 11:36:40 +02:00
wnode cmd/wnode: remove uses of common.ToHex (#20327) 2019-11-19 15:55:48 +02:00