mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 04:41:22 +00:00
Merge remote-tracking branch 'origin/consensus_refactor' into consensus_refactor_jae
This commit is contained in:
@ -62,8 +62,12 @@ func (b *Block) ValidateBasic(chainID string, lastBlockHeight int, lastBlockHash
|
||||
}
|
||||
|
||||
func (b *Block) FillHeader() {
|
||||
b.LastValidationHash = b.LastValidation.Hash()
|
||||
b.DataHash = b.Data.Hash()
|
||||
if b.LastValidationHash == nil {
|
||||
b.LastValidationHash = b.LastValidation.Hash()
|
||||
}
|
||||
if b.DataHash == nil {
|
||||
b.DataHash = b.Data.Hash()
|
||||
}
|
||||
}
|
||||
|
||||
// Computes and returns the block hash.
|
||||
|
Reference in New Issue
Block a user