stacks-network / stacks-network/stacks-core

Add Nakamoto Block fields to `/new_block` event

Open
#4,012 1 comment 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.