Skip to content

types: header.Hash() should use ordered list instead of SimpleHashFromMap #1841

@ebuchman

Description

@ebuchman

The hash of the header is a merkle root of all its fields.

The fields are loaded into a map, using the field names as their key.

Though actually the key names don't 100% match. We should fix this so its a perfect match.

See https://github.com/tendermint/tendermint/blob/master/types/block.go#L207

Eg. key Validators for field ValidatorsHash

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:consensusComponent: ConsensusC:cryptoComponent: CryptoT:breakingType: Breaking Change

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions