-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dot/sync): simplify
processBlockData
and associated tests (#2811
) - `processBlockData`: - Split subblocks into functions: - `processBlockDataWithHeaderAndBody` function with test - `processBlockDataWithStateHeaderAndBody` function with test - takes block data `blockData` as value argument instead of pointer - Review error wrappings - Remove block data nil check - Rename receiver from `s` to `c` for `chainProcessor` - Remove unneeded unit test cases for `processBlockData` (now covered in subfunctions associated tests) - Push (possibly unneeded) justification length check up in caller of `handleJustification`. - Return error on block import error - Fix position of debug logs
- Loading branch information
Showing
8 changed files
with
465 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.