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.

15 lines
449 B

  1. package types
  2. type BlockMeta struct {
  3. Hash []byte `json:"hash"` // The block hash
  4. Header *Header `json:"header"` // The block's Header
  5. PartsHeader PartSetHeader `json:"parts_header"` // The PartSetHeader, for transfer
  6. }
  7. func NewBlockMeta(block *Block, blockParts *PartSet) *BlockMeta {
  8. return &BlockMeta{
  9. Hash: block.Hash(),
  10. Header: block.Header,
  11. PartsHeader: blockParts.Header(),
  12. }
  13. }