Joystream / Joystream/joystream

Bug: Getting block hash

Open
#1,465 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Calling api.query.system.blockHash using the API or the pionner web UI (https://testnet.joystream.org/#/chainstate)
seem to return invalid value for the BlockNumber 1
image

Code example:

let hash = await api.query.system.blockHash(1);
console.log(hash);

Output:
0x0000000000000000000000000000000000000000000000000000000000000000

┆Issue is synchronized with this Asana task by Unito

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.

Research direction

The report identifies api.query.system.blockHash(1) and the Pioneer web UI as entry points. Start by reproducing the zero-hash result for block 1 through both paths and trace the corresponding chain-state query; done means the query returns the valid block hash instead of the reported zero value.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.