func (params *ConsensusParams) Hash() []byte {
	hasher := tmhash.New()
	bz := cdcEncode(HashedParams{
		params.Block.MaxBytes,
		params.Block.MaxGas,
	})
	if bz == nil {
		panic("cannot fail to encode ConsensusParams")
	}
	hasher.Write(bz)
	return hasher.Sum(nil)
}
// Hash returns a hash of a subset of the parameters to store in the block header.
// Only the Block.MaxBytes and Block.MaxGas are included in the hash.
// This allows the ConsensusParams to evolve more without breaking the block
// protocol. No need for a Merkle tree here, just a small struct to hash.
Hash returns a hash of a subset of the parameters to store in the block header.
Only the Block.MaxBytes and Block.MaxGas are included in the hash.
This allows the ConsensusParams to evolve more without breaking the block
protocol. No need for a Merkle tree here, just a small struct to hash.
// Hash returns a hash of a subset of the parameters to store in the block header . // Only the Block . MaxBytes and Block . MaxGas are included in the hash . // This allows the ConsensusParams to evolve more without breaking the block // protocol . No need for a Merkle tree here just a small struct to hash .
func (params *ConsensusParams) Hash() []byte {
	hasher := tmhash.New()
	bz := cdcEncode(HashedParams{
		params.Block.MaxBytes,
		params.Block.MaxGas,
	})
	if bz == nil {
		panic("cannot fail to encode ConsensusParams")
	}
	hasher.Write(bz)
	return hasher.Sum(nil)
}
func ( params * ConsensusParams ) Hash ( ) [ ] byte { hasher := tmhash . New ( ) bz := cdcEncode ( HashedParams { params . Block . MaxBytes , params . Block . MaxGas , } ) if bz == nil { panic ( " " ) } hasher . Write ( bz ) return hasher . Sum ( nil ) }
Hash returns a hash of a subset of the parameters to store in the block header.
Hash returns a hash of a subset of the parameters to store in the block header .