Interface IBlockStorage

Define the storage for blocks

interface IBlockStorage ;

Methods

NameDescription
load (genesis) Load and initialize the block storage
readBlock (hash) Read a block with a specified hash from the storage
readBlock (height) Read a block at a specified height from the storage
readLastBlock () Read the last block from the storage.
saveBlock (block) Save block to the storage.
updateBlockSig (height, hash, sig, validators) Update block in the storage with updated signature and BitMask for validator signers.