Skip to content

Comments

PoC dedicated process X errors#27

Draft
dapplion wants to merge 1 commit intounstablefrom
rpc-error-enum
Draft

PoC dedicated process X errors#27
dapplion wants to merge 1 commit intounstablefrom
rpc-error-enum

Conversation

@dapplion
Copy link
Owner

Currently block process and blob process both return the same BlockError. While convenient there are many variants of BlockError that don't make sense for blob process.

This PR explores having dedicated error types for:

  • ProcessBlockError: returned by process_block (verifies block and calls import_block)
  • ProcessBlobError: returned by process_blob (verifies blob and calls import_block)
  • BlockImportError: returned by import_block

If we want to have a common routine in sync for block component at some level we have to coerce block and blob errors into the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant