-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isDateRecent(), isDisconnected(), isInitializing() #7
Conversation
let messages = Messages { | ||
leader: LastApprovedResponse { | ||
last_approved: Some(LastApproved { | ||
new_state: Some(new_state), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the same test from the Market?
https://github.com/AdExNetwork/adex-market/blob/master/test/validatorTestMessages.js#L165
If so, they are a bit different, maybe you can elaborate on that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the initializing state is when there are no messages at all for at least one validator
. This is the case where both validators have messages therefore it's false. The difference is that here there is also a newState and an approveState. I will add another with only heartbeats (both should be false)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.