Crate cuprate_consensus

Source
Expand description

Cuprate Consensus

This crate contains Monero block and transactions verification functionality.

This crate is generic over the database which is implemented as a tower::Service. To implement a database you need to have a service which accepts BlockchainReadRequest and responds with BlockchainResponse.

Modules§

__private
batch_verifier
block
Block Verification.
transactions
Transaction Verifier Service.

Structs§

BlockchainContext
Raw blockchain context, gotten from BlockchainContext. This data may turn invalid so is not ok to keep around. You should keep around BlockchainContext instead.
BlockchainContextService
The blockchain context service.
ContextConfig
Config for the context service.

Enums§

BlockChainContextRequest
A request to the blockchain context cache.
BlockChainContextResponse
BlockchainReadRequest
A read request to the blockchain database.
BlockchainResponse
A response from the database.
ExtendedConsensusError
An Error returned from one of the consensus services.
HardFork
An identifier for every hard-fork Monero has had.

Functions§

generate_genesis_block
Generates the Monero genesis block.
initialize_blockchain_context
Initialize the blockchain context service.