-
Notifications
You must be signed in to change notification settings - Fork 471
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
StateProofs: Use stateproof tracker #4733
StateProofs: Use stateproof tracker #4733
Conversation
0b2f2d2
to
e6479b8
Compare
Codecov Report
@@ Coverage Diff @@
## feature/stateproofs-recoverability #4733 +/- ##
======================================================================
- Coverage 54.69% 54.68% -0.01%
======================================================================
Files 415 415
Lines 53783 53805 +22
======================================================================
+ Hits 29415 29424 +9
- Misses 21916 21933 +17
+ Partials 2452 2448 -4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -382,7 +382,7 @@ func TestStateProofMessageCommitmentVerification(t *testing.T) { | |||
} | |||
|
|||
func getDefaultStateProofConsensusParams() config.ConsensusParams { | |||
consensusParams := config.Consensus[protocol.ConsensusCurrentVersion] | |||
consensusParams := config.Consensus[protocol.ConsensusFuture] |
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.
We should remember to change this after the consensus upgrade. Maybe add a ticket?
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.
Good work, not a lot we can or should change.
} | ||
|
||
var verificationData *ledgercore.StateProofVerificationData | ||
if config.Consensus[atRoundHdr.CurrentProtocol].StateProofUseTrackerVerification { |
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.
Do you think we should cover the verification method switch with a test?
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.
There are two tests -
1 TestCowStateProof check the old code - verification using blockheader
2 TestCowStateProofV34 - using the tracker.
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.
Looks reasonable, and it looks like a time to review the entire change
|
||
// 100% coverage |
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.
no more 100% coverage?
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.
just thought that the comments doesn't help much :)
If you think there is an edge case that we didn't cover, I will happily test it
Summary
Test Plan