plugeth/cmd
Felix Lange b8040a430e
cmd/utils: use eth DNS tree for snap discovery (#22808)
This removes auto-configuration of the snap.*.ethdisco.net DNS discovery tree.
Since measurements have shown that > 75% of nodes in all.*.ethdisco.net support
snap, we have decided to retire the dedicated index for snap and just use the eth
tree instead.

The dial iterators of eth and snap now use the same DNS tree in the default configuration,
so both iterators should use the same DNS discovery client instance. This ensures that
the record cache and rate limit are shared. Records will not be requested multiple times.

While testing the change, I noticed that duplicate DNS requests do happen even
when the client instance is shared. This is because the two iterators request the tree
root, link tree root, and first levels of the tree in lockstep. To avoid this problem, the
change also adds a singleflight.Group instance in the client. When one iterator
attempts to resolve an entry which is already being resolved, the singleflight object
waits for the existing resolve call to finish and returns the entry to both places.
2021-05-04 11:29:32 +02:00
..
abidump cmd: implement abidump (#19958) 2020-01-21 15:51:36 +01:00
abigen cmd/abigen: clarify abigen alias flag usage (#21875) 2020-12-12 17:36:32 +01:00
bootnode les: switch to new discv5 (#21940) 2021-01-26 21:41:35 +01:00
checkpoint-admin cmd/clef: change --rpcport to --http.port and update flags in docs (#21318) 2020-07-14 10:35:32 +02:00
clef cmd/clef (docs): fix image background (#22399) 2021-03-16 09:55:03 +01:00
devp2p cmd/devp2p: fix flakey tests in CI (#22757) 2021-04-30 22:47:36 +02:00
ethkey accounts/keystore: use github.com/google/uuid (#22217) 2021-02-26 15:28:34 +01:00
evm all: make logs a bit easier on the eye to digest (#22665) 2021-04-15 20:35:00 +03:00
faucet cmd/faucet: support testnet flags in the faucet (#22545) 2021-04-13 23:51:46 +02:00
geth eth/catalyst: add catalyst API prototype (#22641) 2021-04-16 21:29:22 +02:00
p2psim node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
puppeth cmd/puppeth: add support for authentication via ssh agent (#22634) 2021-04-27 11:36:57 +02:00
rlpdump cmd/rlpdump: allow hex input to have leading '0x' 2017-10-27 09:40:52 +01:00
utils cmd/utils: use eth DNS tree for snap discovery (#22808) 2021-05-04 11:29:32 +02:00