Skip to main content

accept_block

Function accept_block 

Source
pub async fn accept_block(
    blockchain: &SharedBlockchain,
    node_state: &SharedNodeState,
    new_block: Block,
) -> Result<(), BlockchainError>
Expand description

Accept a new block to the local blockchain, and forward it to all peers