stacks-network / stacks-network/stacks-core
Add Nakamoto Block fields to `/new_block` event
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.1k
- Forks
- 762
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 76
Description
We may need to expose new block fields through the event-observer interface. In particular anything new related to Nakamoto blocks (defined at https://github.com/stacksgov/sips/blob/feat/sip-021-nakamoto/sips/sip-021/sip-021-nakamoto.md#block-structure)
The following fields seem useful to add:
- Miner address
- Version number
- The total BTC spent producing this tip
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the SIP-021 Nakamoto block structure and then inspect the event-observer handling for the /new_block event. Determine which new fields are required, including miner address, version number, and total BTC spent producing the tip; done means the agreed fields are exposed through that event interface.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100