Module agora.consensus.data.Block
Defines the data structure of a block
The design is influenced by Bitcoin, but will be ammended later.
Functions
Name | Description |
---|---|
makeNewBlock(prev_block, txs, preimages, enrollments)
|
Create a new block, referencing the provided previous block. |
Structs
Name | Description |
---|---|
Block
|
The block which contains the block header and its body (the transactions). |
BlockHeader
|
The block header which contains a link to the previous block header, unless it's the genesis header. |