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
pub async fn accept_block(
blockchain: &SharedBlockchain,
node_state: &SharedNodeState,
new_block: Block,
) -> Result<(), BlockchainError>Accept a new block to the local blockchain, and forward it to all peers