Open int88 opened 2 months ago
sgtm!
if you want, you can add these as standalone crates first
devp2p command TODO list:
p2p::Subcommand
s with new variant Dns
, and impl each of these as sub-subcommands
p2p::Subcommand
s with these
p2p::Subcommand
s with new variant Rlpx
, and impl each of these as sub-subcommands
for sure! really nice idea
I'd tackle each todo as a separate new issue, adding to task list here. that way it's easier for us to review, more overseeable to give you specific hints for impl in that issue, and less merge conflicts with main for you since each topic branch would be short-lived.
a hint for discv5 already, is to use this method
https://github.com/paradigmxyz/reth/blob/ef3f67743d517b2b15692949efae4671168bccbd/crates/net/discv5/src/lib.rs#L381-L387
and then read the sigp Discv5
public api thoroughly, should be possible to impl all commands with those existing methods
https://github.com/sigp/discv5/blob/master/src/discv5.rs
make sure to try this tool out first https://github.com/AgeManning/discv5-cli, no need to impl same thing again in reth imo @int88
make sure to try this tool out first https://github.com/AgeManning/discv5-cli, no need to impl same thing again in reth imo
agree, as well as enr-cli: https://github.com/agemanning/enr-cli
cargo install
makes using these really easy
agree, as well as enr-cli: https://github.com/agemanning/enr-cli
true this tool exists too
I updated your list @int88 based on review https://github.com/paradigmxyz/reth/pull/8403#pullrequestreview-2102458098 and https://github.com/paradigmxyz/reth/pull/8403#pullrequestreview-2102435753
Thanks for all of your kind reviews @mattsse @Rjected @emhane .
So I would implement the commands filtered by @emhane .
One last concern, should these commands should be integrated into reth p2p
or as a separate binary?
IMO, I agree with @Rjected , integrated into reth p2p
maybe better :)
One last concern, should these commands should be integrated into
reth p2p
or as a separate binary?yes, see the text I added to the list in bold @int88. check out how it is done for the
db
subcommandclear
with subsubcommandsmdbx
andstatic-file
so for example, p2p
would be the command, rlpx
is a subcommand (like clear
), and ping
is a sub subcommand (like mdbx
)
Describe the feature
There are some p2p related tools geth, like:
https://geth.ethereum.org/docs/tools/devp2p
https://github.com/ethereum/go-ethereum/tree/master/p2p/simulations
If it's meaningful to implement related tools in reth, I'd like to do it!
@mattsse @emhane WDTY?
Additional context
No response