Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Checking block validity #129

Open
naterush opened this issue Nov 27, 2017 · 1 comment
Open

Checking block validity #129

naterush opened this issue Nov 27, 2017 · 1 comment

Comments

@naterush
Copy link
Contributor

naterush commented Nov 27, 2017

Issue

All messages are currently valid in the repo. Validator's might equivocate, non-validators might send messages, the bit might be 2 instead of 0/1, etc. We would like validators to check validity of messages upon arrival (and maybe perform actions if invalid message).

Proposed Implementation

  • define valid to check validity of specific types of messages
  • write tests to ensure invalid blocks do not affect validator's view/estimates
  • create function for validator to call for actions to be taken if invalid message (can just pass if nothing)
@naterush
Copy link
Contributor Author

Upon arrival (aka, no longer pending!)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant