Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockchain: Do not accept orphans/genesis block.
This modifies the code in maybeAcceptBlock to return an error if there is no previous entry in the block index for a given block indicating it is either an orphan or the genesis block. The function should never be called in either circumstance since the genesis block is valid by definition and orphans are handled prior to calling the function.
- Loading branch information