mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-30 17:22:13 +00:00
16 lines
353 B
Go
16 lines
353 B
Go
|
package types
|
||
|
|
||
|
type BlockMeta struct {
|
||
|
Hash []byte // The block hash
|
||
|
Header *Header // The block's Header
|
||
|
Parts PartSetHeader // The PartSetHeader, for transfer
|
||
|
}
|
||
|
|
||
|
func NewBlockMeta(block *Block, blockParts *PartSet) *BlockMeta {
|
||
|
return &BlockMeta{
|
||
|
Hash: block.Hash(),
|
||
|
Header: block.Header,
|
||
|
Parts: blockParts.Header(),
|
||
|
}
|
||
|
}
|