probe-lab / hermes

A Gossipsub listener and tracer.
Other
10 stars 5 forks source link

feat: Add blob topic handler #18

Closed 0x00101010 closed 1 month ago

0x00101010 commented 1 month ago

Description

Add blob topic handler to decode blob p2p message and produce TraceEvent.

info  | 17:51:25.943235 | Handling blob gossip message              
PeerID=16Uiu2HAmTA28PLzU7oYBQujqRWN8oG8wBmgF6zhUe99HzWuU7GyV 
RemotePeerID=16Uiu2HAmAcLyYnyjgrznMaCXwRUfWJGChVyr2Qdz3cr6sKwT2Hvn 
MsgID=0e0002377b3edbb39a1c486e02fb421962f7466b 
MsgSize=9598 
Topic=/eth2/d31f6191/blob_sidecar_2/ssz_snappy 
Seq=[] 
Slot=5005157 
ValIdx=260 
TimeInSlot=1.943217312 
StateRoot=0xab69b4b0e8904205840bafaeca266a86c78eeb16a9eee13aa5cf2a9db18747bd 
BodyRoot=0x718cb2446668e05c3fe63c326902a7d656b72635e277b2f6266d134a53ce6a6c 
ParentRoot=0xf27c0e927ac5670184eec5ebdf05740997d0cfd56d643b26e368c84b7e547b4f
codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 44 lines in your changes are missing coverage. Please review.

Project coverage is 3.15%. Comparing base (b94d32c) to head (82a7227). Report is 85 commits behind head on main.

Files Patch % Lines
eth/pubsub.go 0.00% 41 Missing :warning:
eth/node_config.go 0.00% 2 Missing :warning:
host/host.go 0.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #18 +/- ## ======================================== - Coverage 7.75% 3.15% -4.60% ======================================== Files 7 26 +19 Lines 400 3519 +3119 ======================================== + Hits 31 111 +80 - Misses 361 3397 +3036 - Partials 8 11 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.