mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
BlockMeta uses BlockID
This commit is contained in:
@ -1,15 +1,13 @@
|
||||
package types
|
||||
|
||||
type BlockMeta struct {
|
||||
Hash []byte `json:"hash"` // The block hash
|
||||
Header *Header `json:"header"` // The block's Header
|
||||
PartsHeader PartSetHeader `json:"parts_header"` // The PartSetHeader, for transfer
|
||||
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{
|
||||
Hash: block.Hash(),
|
||||
Header: block.Header,
|
||||
PartsHeader: blockParts.Header(),
|
||||
BlockID: BlockID{block.Hash(), blockParts.Header()},
|
||||
Header: block.Header,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user