bitcoin-dev-project / bitcoin-dev-project/warnet-web

Leaderboard tip is incorrect

Open Beginner friendly
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
7
PR merge metrics
No merged PRs in 30d

Description

See node tank-0012-aqua. According to fork-observer it is actually in sync with the miner's chain tip (`1457`). The `node-data` also supports this, showing the correct tip as the "active" chain.

However, the first chaintip in the array is an inactive fork at a much lower height (`806`), which is interesting, but it is not accurate to report that node as being "stuck" at that height.

I suspect the issue is this line:

https://github.com/bitcoin-dev-project/warnet-web/blob/2933a9e0f1bb8aa3a1273805a56cabff845e419f/src/components/node-group-cards.tsx#L40

Once this is patched, we'll need to apply to the `plugin` branch and deploy a new image for warnet

Image

----
Image

----
Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at src/components/node-group-cards.tsx line 40 and compare the leaderboard tip selection with the fork-observer and node-data described for node tank-0012-aqua. The leaderboard should report the active chain tip at height 1457 rather than the inactive fork at height 806. After the fix, apply it to the plugin branch and deploy a new Warnet image.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.