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§
- Blockchain
Interface - The interface to the blockchain.
- Blockchain
Syncer Handle - 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§
- Consensus
Blockchain Read Handle - The
BlockchainReadHandlewith the [tower::Service::Error] mapped to conform to what the consensus crate requires.