lambdaclass / lambdaclass/lambda_ethereum_consensus

PubSub peer count visualization lists wrong amount

Open
#601 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Elixir
Stars
109
Forks
41
PR merge metrics
No merged PRs in 30d

Description

It seems to go lower and lower over time until it reaches negative numbers. We should check what causes this. Probably some peers are being removed more than one time without being added back between removals.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the PubSub peer-count visualization and the code paths that add and remove peers. Reproduce repeated removals of the same peer and identify why the count becomes negative. Done means the visualization reports the actual peer count, never decrements below zero, and has a regression test for duplicate removals.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.