cbc-casper icon indicating copy to clipboard operation
cbc-casper copied to clipboard

Checking block validity

Open naterush opened this issue 6 years ago • 1 comments

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 avatar Nov 27 '17 20:11 naterush

Upon arrival (aka, no longer pending!)

naterush avatar Nov 27 '17 20:11 naterush