Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

abci: add ResponseInitChain.app_hash #140

Merged
merged 1 commit into from
Aug 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions spec/abci/abci.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ via light client.
- `ConsensusParams (ConsensusParams)`: Initial
consensus-critical parameters (optional).
- `Validators ([]ValidatorUpdate)`: Initial validator set (optional).
- `AppHash ([]byte)`: Initial application hash.
- **Usage**:
- Called once upon genesis.
- If ResponseInitChain.Validators is empty, the initial validator set will be the RequestInitChain.Validators
Expand All @@ -252,6 +253,8 @@ via light client.
set proposed by tendermint (ie. in the genesis file), or if it wants to use
a different one (perhaps computed based on some application specific
information in the genesis file).
- The returned `AppHash` must match the hash specified in the genesis file, and will be
recorded in the initial genesis block.

### Query

Expand Down
2 changes: 1 addition & 1 deletion spec/core/data_structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ block.AppHash == state.AppHash

Arbitrary byte array returned by the application after executing and commiting the previous block. It serves as the basis for validating any merkle proofs that comes from the ABCI application and represents the state of the actual application rather than the state of the blockchain itself.

The first block has `block.Header.AppHash == []byte{}`.
The first block's `block.Header.AppHash` is given by `ResponseInitChain.app_hash`, which must match the app hash specified in the genesis file.

### LastResultsHash

Expand Down