go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

cmd/devp2p: add eth cmd to send new block announcements

Open lightclient opened this issue 3 years ago • 1 comments

This PR adds a new subcommand to devp2p: eth. This subcommand has a single command of it's own currently, new-block which sends the specified hex as a devp2p block announcement message. We can expand eth to support more arbitrary message sending in the future.

$ devp2p eth new-block <enode> <msg>

lightclient avatar Jun 30 '22 15:06 lightclient

@fjl PTAL when you have a chance!

lightclient avatar Aug 09 '22 03:08 lightclient

Another note: the original purpose of this command is kind of lost since the merge, because block announcements are not accepted via eth anymore. We could probably realize the bad block test with the engine API now.

fjl avatar Mar 14 '23 20:03 fjl

Yeah that is a good point, I'll see if I can update that hive PR to use the engine API instead.

lightclient avatar Mar 14 '23 21:03 lightclient