Module interface

Source
Expand description

The blockchain manager interface.

This module contains all the functions to mutate the blockchain’s state in any way, through the blockchain manager.

Enums§

IncomingBlockError
An error that can be returned from handle_incoming_block.

Statics§

COMMAND_TX 🔒
The channel used to send BlockchainManagerCommands to the blockchain manager.

Functions§

block_exists 🔒
Check if we have a block with the given hash.
handle_incoming_block
Try to add a new block to the blockchain.