Skip to main content

Module blockchain

Module blockchain 

Source
Expand description

Blockchain

Contains the blockchain manager, syncer and an interface to mutate the blockchain.

Re-exports§

pub use interface::BlockchainManagerHandle;

Modules§

interface
The blockchain manager interface.

Structs§

BlockchainInterface
The interface to the blockchain.
BlockchainSyncerHandle
Handle for the BlockchainSyncer.

Functions§

check_add_genesis
Checks if the genesis block is in the blockchain and adds it if not.
get_fast_sync_hashes
Returns the fast-sync hashes for the given configuration.
init_consensus
Initializes the consensus services.

Type Aliases§

ConsensusBlockchainReadHandle
The BlockchainReadHandle with the [tower::Service::Error] mapped to conform to what the consensus crate requires.