-
Notifications
You must be signed in to change notification settings - Fork 24
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
State comparison - SSV runner/consensus #253
State comparison - SSV runner/consensus #253
Conversation
5138c0f
to
75343f7
Compare
@GalRogozinski we should add generated json tests to this PR |
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!
I just had some unimportant question
json looks fine |
}, | ||
{ | ||
Name: "sync committee", | ||
Runner: testingutils.SyncCommitteeRunner(ks), | ||
Duty: &testingutils.TestingSyncCommitteeDuty, | ||
Messages: append( | ||
testingutils.SSVDecidingMsgsV(testingutils.TestSyncCommitteeConsensusData, ks, types.BNRoleSyncCommittee), | ||
// post consensus |
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.
why is this needed?
OutputMessages: []*types.SignedPartialSignatureMessage{ | ||
testingutils.PreConsensusSelectionProofMsg(ks.Shares[1], ks.Shares[1], 1, 1), | ||
testingutils.PostConsensusAggregatorMsg(ks.Shares[1], 1), | ||
}, | ||
BeaconBroadcastedRoots: []string{ | ||
testingutils.GetSSZRootNoError(testingutils.TestingSignedAggregateAndProof(ks)), |
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.
it prev did not broadcast it?
}, | ||
{ | ||
Name: "attester", | ||
Runner: testingutils.AttesterRunner(ks), | ||
Duty: &testingutils.TestingAttesterDuty, | ||
Messages: append( | ||
testingutils.SSVDecidingMsgsV(testingutils.TestAttesterConsensusData, ks, types.BNRoleAttester), | ||
// post consensus | ||
testingutils.SSVMsgAttester(nil, testingutils.PostConsensusAttestationMsg(ks.Shares[1], 1, qbft.FirstHeight)), |
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.
why needeD?
Description
Introduce state comparison for sanity SSV runner/consensus tests
closes #250
reference to sanity tests #162