You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
339 B

  1. package types
  2. type BlockMeta struct {
  3. BlockID BlockID `json:"block_id"` // the block hash and partsethash
  4. Header *Header `json:"header"` // The block's Header
  5. }
  6. func NewBlockMeta(block *Block, blockParts *PartSet) *BlockMeta {
  7. return &BlockMeta{
  8. BlockID: BlockID{block.Hash(), blockParts.Header()},
  9. Header: block.Header,
  10. }
  11. }