Skip to content

Commit

Permalink
Add go ethereum ref
Browse files Browse the repository at this point in the history
  • Loading branch information
fkrause98 committed Oct 31, 2024
1 parent 079d419 commit c2fa0d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/networking/p2p/rlpx/eth/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ impl BlockHeaders {
impl RLPxMessage for BlockHeaders {
fn encode(&self, buf: &mut dyn BufMut) -> Result<(), RLPEncodeError> {
let mut encoded_data = vec![];
// FIXME: Document properly this
// Each message is encoded with its own
// message identifier (code).
// Go ethereum reference: https://github.com/ethereum/go-ethereum/blob/20bf543a64d7c2a590b18a1e1d907cae65707013/p2p/transport.go#L94
0x14_u8.encode(buf);
Encoder::new(&mut encoded_data)
.encode_field(&self.id)
Expand Down

0 comments on commit c2fa0d3

Please sign in to comment.