Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Blockchain] Simplify block verification (#544)
* Add the initial block verification separation * Separate out consensus and other module verification methods * Add better naming to block verification methods * Standardize block result errors * Add receipts extraction * Add additional documentation for the usage of the receipts cache * Add delegators for testing the blockchain module * Add mock support for the blockchain and storage modules * Add coverage tests * Simplify the gas verification * Rearrange code blocks * Rename some helper methods to be more clear * Make the mock testing structure public, refactor a simple test * Remove redundant comment * Simplify the error variable in initCaches * Eliminate magic numbers * Rearrange the checks in VerifySealedBlock * Remove reference block type when verifying * Add explainer for WriteBlock * Verify the header seals before inserting the block * Rename interface methods to be more implementation agnostic
- Loading branch information