View definition

(*BlockChain).ProcessBlock

Defined in github.com/btcsuite/btcd/blockchain/process.go

Description

ProcessBlock is the main workhorse for handling insertion of new blocks into the block chain. It includes functionality such as rejecting duplicate blocks, ensuring blocks follow all rules, orphan handling, and insertion into the block chain along with best chain selection and reorganization.

It returns a bool which indicates whether or not the block is an orphan and any errors that occurred during processing. The returned bool is only valid when the error is nil.

This function is safe for concurrent access.

ProcessBlock is referenced in 2 repositories

github.com/btcsuite/btcd

...