[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

@ -53,6 +53,11 @@ func TestConsensusParamsHash(t *testing.T) {
makeParams(4, 2, 3),
makeParams(1, 4, 3),
makeParams(1, 2, 4),
makeParams(2, 5, 7),
makeParams(1, 7, 6),
makeParams(9, 5, 4),
makeParams(7, 8, 9),
makeParams(4, 6, 5),
}
hashes := make([][]byte, len(params))