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
353 B

  1. package types
  2. type BlockMeta struct {
  3. Hash []byte // The block hash
  4. Header *Header // The block's Header
  5. Parts PartSetHeader // 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. Parts: blockParts.Header(),
  12. }
  13. }