tendermint/types/block_meta.go

14 lines
339 B
Go
Raw Normal View History

package types
type BlockMeta struct {
2017-02-14 12:33:14 -08:00
BlockID BlockID `json:"block_id"` // the block hash and partsethash
Header *Header `json:"header"` // The block's Header
}
func NewBlockMeta(block *Block, blockParts *PartSet) *BlockMeta {
return &BlockMeta{
2017-02-14 12:33:14 -08:00
BlockID: BlockID{block.Hash(), blockParts.Header()},
Header: block.Header,
}
}