Leaderboard tip is incorrect

Open Beginner friendly
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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
Dominant language
TypeScript
Stars
0
Forks
7
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from bitcoin-dev-project/warnet-web

All issues in bitcoin-dev-project/warnet-web

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.