-
Notifications
You must be signed in to change notification settings - Fork 785
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
Batch state blocks signatures verification #956
Merged
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
f2a09de
Batch signatures validation
SergiySW 43a1eb3
Batch state blocks verification
SergiySW 3cf25a0
Add valid_signature option to ledger_processor
SergiySW 1e3ee88
Add valid_signature to process_receive_one
SergiySW 8816f91
Simplify validate_blocks
SergiySW 798a9cc
Test for batch block check
SergiySW d551bc5
Batch block_processor for state blocks
SergiySW ee9e144
Extra vector to prevent possible junk validation DDoS on node
SergiySW fbf8194
Typo
SergiySW 9448c3d
Clang formatting
SergiySW d50d535
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW db7b505
Test debug_verify_profile_batch
SergiySW 2da990c
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW b37da3c
Exception for epoch blocks
SergiySW 9764412
Fix mutex.try_lock () issue
SergiySW 952e6f5
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 187a61f
Simplify batch signature verification processor
SergiySW 7278510
Validate epoch blocks
SergiySW fa56cae
Fix
SergiySW 002665a
MSVC workaround
SergiySW cb345e1
block_processor_signatures test
SergiySW 9116d53
Fix block_processor
SergiySW ce95b50
Formatting
SergiySW 227b544
Fix MSVC
SergiySW 2a83923
LMDB fix
SergiySW 4dbf4ac
Formatting
SergiySW 998371d
Completely disable batch signatures for MSVC
SergiySW f2058fb
Fix test
SergiySW 29a3c65
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 8bc7d30
Batch verification for epoch blocks
SergiySW 5430fb7
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 38174cc
More details to block_processor_signatures test
SergiySW 60482af
Batch state blocks signatures verification
clemahieu 0fd2285
Use C++ standard containers for processing bulk signature verification.
clemahieu 78d094d
Formatting.
clemahieu a9d403a
Rebase --debug_verify_profile_batch
SergiySW 387593a
Add validate_message_batch to rai_lib
SergiySW 5aa2428
Formatting
SergiySW 56174ab
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 0d961cc
Don't check signatures for unchecked state blocks
SergiySW b18596d
Remove _MSC_VER check
SergiySW 0acc71b
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 6ef07bd
Updates
SergiySW 6663bdc
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 82b52d0
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW b5fad43
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW b1b6ade
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 13a73c9
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 6118b53
Remove epoch blocks from batch verification
SergiySW 62a7fde
Typo
SergiySW 1fd2e35
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 4785938
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 7a7b194
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 2e83193
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 4bad6d3
Merge remote-tracking branch 'upstream/master' into batch_signatures_2
SergiySW 0550cc5
Remove unchecked from block_processor::add
SergiySW c025a5e
Extent block_processor_signatures test with forced blocks & unchecked…
SergiySW 797d560
Move force check
SergiySW 7468154
Extra info
SergiySW d86047c
More clear validated_state_block value
SergiySW File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should we
assert(false)
here (or just not implement this virtual function for non-state blocks) ? The receive block probably has the equivalent of a linkThere 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.
That's similar to source (), previous () & some other functions returning 0 for some block types. We can just not implement such functions when they return 0 I guess to save some lines in code
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 a case of using release_assert since we shouldn’t be looking for the link of non-state blocks?
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.
Either release_assert() or not declaring the virtual methods for these block types which should generate a fatal exception