SparqNet implementation
How the functional elements of SparqNet interact
The SparqNet blockchain structure involves interactions between the following components:
- Transaction - implemented as
Tx
inutils/transaction
- Block - implemented as
Block
incore/block
- Validator - implemented as
Validator
incore/blockmanager
- BlockManager - implemented as
BlockManager
incore/blockmanager
- Mempool - implemented as
Mempool
incore/chainTip
- Chain - implemented as
Chain
incore/chainHead
The Validator class is an abstraction of a validator node. A Validator node validates batches of transactions on the network and records them as blocks.
The BlockManager class manages block creation, congestion and validation. The process is handled by an internal list of Validators, of which one is selected to create the block and the others validate it using signatures.
Last modified 3mo ago