Expand description

Block related definitions and storage implementations

Structs§

  • This struct represents a tuple of the form (header, txs, signature). The header and transactions are stored as hashes, serving as pointers to the actual data in the sled database. NOTE: This struct fields are considered final, as it represents a blockchain block.
  • Auxiliary structure used to keep track of block PoW difficulty information. Note: we only need height cummulative difficulty, but we also keep its actual difficulty, so we can verify the sequence and/or know specific block height difficulty, if ever needed.
  • Structure representing full block data, acting as a wrapper struct over Block, enabling us to include more information that might be used in different block version, without affecting the original struct.
  • Auxiliary structure used to keep track of blocks order.
  • Auxiliary structure used to keep track of block ranking information. Note: we only need height cummulative ranks, but we also keep its actual ranks, so we can verify the sequence and/or know specific block height ranks, if ever needed.
  • The BlockStore is a structure representing all sled trees related to storing the blockchain’s blocks information.
  • Overlay structure over a BlockStore instance.

Constants§

Functions§