Skip to content

Hash genesis file into first block #5183

@erikgrinaker

Description

@erikgrinaker

Currently, individual fields in the genesis file are propagated separately into the genesis block (e.g. the validator set and consensus params are hashed, and the chain ID is copied in). However, some fields are not fully handled (e.g. app hash, see #5177), and the file in its entirety is not checked.

This is problematic if we want to add additional fields that aren't hashed (see discussion in tendermint/spec#119 (review)), and can cause user confusion (see --genesis_hash which was added in #4113).

We should somehow make sure the genesis file is identical for all nodes in a network, e.g. by including a hash of the file in the genesis block, or via some other mechanism.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Metadata

Assignees

No one assigned

    Labels

    S:proposalStatus: ProposalT:breakingType: Breaking Changestalefor use by stalebot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions