[R4R] Unmerklize ConsensusParams.Hash() (#2609)

* Hash() uses tmhash instead of merkle.SimpleHashFromMap

* marshal whole struct

* update comments

* update docs
This commit is contained in:
Joon
2018-10-16 05:31:27 +09:00
committed by Ethan Buchman
parent 26462025bc
commit 4ab7dcf3ac
3 changed files with 19 additions and 9 deletions

View File

@ -320,10 +320,10 @@ next validator sets Merkle root.
### ConsensusParamsHash
```go
block.ConsensusParamsHash == SimpleMerkleRoot(state.ConsensusParams)
block.ConsensusParamsHash == tmhash(amino(state.ConsensusParams))
```
Simple Merkle root of the consensus parameters.
Hash of the amino-encoded consensus parameters.
### AppHash