-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Feature/shard validation #3297
Feature/shard validation #3297
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3297 +/- ##
========================================
Coverage 70.44% 70.44%
========================================
Files 682 682
Lines 54392 54466 +74
========================================
+ Hits 38315 38369 +54
- Misses 16077 16097 +20
Continue to review full report at Codecov.
|
3dcf720
to
1793624
Compare
Nice job with the two commit messages, but I'd like to request a couple small changes.
So the commit message for your top-most commit might look like this:
Here's a useful guide to good commit messages: https://chris.beams.io/posts/git-commit/. He says to limit the heading to 50 characters. I can seldom achieve that, so I allow myself to go up to 60 characters for the heading. But the rest of the guidance I try to follow. I hope that helps. |
@undertome the lastLedgerHash members in ShardInfo may be better encapsulated in a new class. I wrote an alternate version of your code in this branch: https://github.com/miguelportilla/rippled/commits/shard-validation-alternate Disclaimer: I haven't tested this code. |
1793624
to
63d2d7f
Compare
bbea5c6
to
b662824
Compare
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 good to me. I left some comments for you to consider, however none of them are worth blocking the pull request over.
de7abfd
to
0750a07
Compare
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.
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.
👍
9e6be91
552b2d8
to
318d77d
Compare
* Improve documentation * Make the ShardArchiveHandler rather than the DatabaseShardImp perform LastLedgerHash verification for downloaded shards * Remove ShardArchiveHandler's singleton implementation and make it an Application member * Have the Application invoke ShardArchiveHandler initialization instead of clients * Add RecoveryHandler as a ShardArchiveHandler derived class * Improve commenting
318d77d
to
8e8da17
Compare
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.
Still looks good to me.
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.
👍
This was rebased on pull requests 3152 and 3252, which have yet to me merged to develop. To see only new changes you can compare against base pull/3252/head. Verfication testing pending new shard archives.