Skip to content

Nakamoto: Add timestamp to block headers #4541

@kantai

Description

@kantai

In Stacks 2.x, Stacks blocks do not have a timestamp. This is okay because they correspond directly with bitcoin blocks, so they can be thought of as occurring at the associated bitcoin block's timestamp. In Nakamoto, this is no longer the case, so we should add a timestamp field to the Stacks block. This timestamp's relative accuracy can even be checked by signers.

My proposal is to understand timestamps as:

  1. A positive value greater than the block's associated burn block (i.e., the timestamp must be greater than the timestamp of the burn block whose consensus_hash = block.consensus_hash).
  2. Increasing between a tenure's blocks: a given miner should never build a block B off of block A with a smaller timestamp.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Status: ✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions