-
Notifications
You must be signed in to change notification settings - Fork 13
[1.0.4] Finality violation tests 1.0.0 #610
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
Open
systemzax
wants to merge
83
commits into
release/1.0
Choose a base branch
from
finality_violation_tests_1.0.0
base: release/1.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
686986e
Added placeholder svnn_finality_violation.cpp and updated cmake files
systemzax b345e76
Added placeholder finality_violation smart contract
systemzax 920d7aa
Converted proof_test_cluster to use fixed size nodes, added vote_prop…
systemzax 0f83dea
Added vote propagation tests
systemzax 2eff199
Initial set up for finality violation tests
systemzax 38ccb3b
Progress on initial tests
systemzax cbcbc27
Comments related to rule #1 violation
systemzax a686f00
Updated ibc_block_data_t structure to expose all level 2 and level 3 …
systemzax a82435a
Updated savanna contract common code to support level 3 commitments
systemzax e295f9d
Added rule #1 finality violation action to smart contract, tests
systemzax bca8c83
Remove commented out code
systemzax 84f6c08
Removed unused parameter in svnn_ibc_tests
systemzax 3fc7806
Changed pending_finalizer_policy to last_pending_finalizer_policy in …
systemzax 5a26775
Updated finality violation tests to reflect new name
systemzax 90f5f45
Renamed last_pending_finalizer_policy_generation to pending_finalizer…
systemzax e7d3263
Removed temporary checkpoints from svnn_ibc_tests
systemzax 9e90bbf
Small refactor of finality violation tests
systemzax 484c229
Prepared test for rule #2
systemzax 4da02e7
Implemented rule #2 verification in savanna contracts, improved proof
systemzax 5acaae2
Added savanna contract interface for weak QCs
systemzax 7ea485e
Completed savanna contract support for weak QCs
systemzax 1be2257
Reordered proof generation to ensure only the most recent information…
systemzax 891207d
WIP
systemzax 19d1b5d
Replaced policy digests and generations returned by process_result fu…
systemzax 2f5a557
Modified tests to use light client data cache only
systemzax 67440e4
Removed leftover comments
systemzax 3559929
Minor code reorganization plus added comments for clarity
systemzax ec68dd5
Fixed incorrect assignement in savanna contract, recompiled contract
systemzax 0ff0c8d
Corrected order and names of sub rules
systemzax a99e673
Desambiguated rule2 (now rule2a and rule2b) to differentiate between …
systemzax 772eeb2
misc
systemzax 792462d
Refactored light client data cache to properly evaluate finality rule…
systemzax 00820b2
Rule 2 WIP
systemzax ead0837
Completed rule 2
systemzax f408f9f
Clean up
systemzax 81bf80b
Renamed minimal_block_data to finality_block_data
systemzax 18deabb
Adjusted order of events to more closely reflect the light client beh…
systemzax 9c47427
Obtain reference to fake chain blocks via the list of reversible bloc…
systemzax 26e809b
Added rule #3 to smart contract
systemzax b1761b2
Added proof of rule #3 finality violation test
systemzax e1c8e41
Added comments to smart contract, recompiled
systemzax 19e5591
Fixed a few bugs, added additional rule #3 test where fake chain is a…
systemzax 411adc2
Updated finality violation contract actions to return guilty vs innoc…
systemzax a62ab3f
Added bitset tests to ibc tests to cover the exact blame and exonerat…
systemzax fa81154
Removed unused return statements, added comments about bitset verific…
systemzax 264a2b9
Resolved merge conflict
systemzax b10e275
Converted some static functions to inline functions in finality_proof
systemzax 17355c8
Re-enabled action traces size check in finality_proof
systemzax 14f8873
Pass result to process_result by const reference
systemzax b223247
Removed unnecessary check to process_finalizer_votes, removed comment…
systemzax e92e125
Updated functions svnn_finality_violation_tests to use const referenc…
systemzax 52436cf
Simplified shouldPass function, removed unnecessary try catch
systemzax 891296e
Updated savanna contracts to pass function parameters by const refere…
systemzax f07308f
Replaced find_if with lower_bound to perform binary search in svnn_fi…
systemzax 1e1f0e4
bumped chainbase submodule
systemzax d1a4ee9
Merge branch 'release/1.0' into finality_violation_tests_1.0.0
systemzax d48f25c
Merge branch 'release/1.0' into finality_violation_tests_1.0.0
systemzax 5e0953e
Merge branch 'release/1.0' into finality_violation_tests_1.0.0
systemzax 9bdddce
Merge branch 'release/1.0' into finality_violation_tests_1.0.0
systemzax 513c350
Merge branch 'release/1.0' of https://github.com/AntelopeIO/spring in…
systemzax d715a31
Replaced static functions with inline functions in finality_proof
systemzax e85e5f8
Removed default empty initializers in ibc_block_data_t
systemzax 243c11d
Simplified the pruning function in data cache struct
systemzax 8d8d4ba
Removed commented out code
systemzax 4946954
Merge branch 'finality_violation_tests_1.0.0' of https://github.com/A…
systemzax 68c2c1d
Moved finality digests comparison to the check_qcs function in finali…
systemzax bae1c27
Fixed lock violation check
systemzax 6c253f5
Added bool flag to check_qc to control whether or not we verify the q…
systemzax 1b7fb4f
Renamed finalizers to strong_votes in savanna quorum_certificate_input
systemzax eca9352
Modified _check_qc function to accomodate optional weak QC verification
systemzax b4b47f8
Added support for combined weak/strong bitset comparison
systemzax 1b743a3
Clean up
systemzax 18d1882
Reversed endianness of bytes and flipped byte representation in savan…
systemzax 2ba9e04
Removed comment which no longer applies
systemzax cc20819
Updated finality_violation tests to reflect new bitset string format
systemzax ad56709
Adjustments to the finality violation contract to support conditional…
systemzax 2d9202f
Fixed savanna finality_violation contract evaluation of rule 2 and ru…
systemzax fce30e8
Reworked rule 2 and rule 3 tests to correctly identify finality viola…
systemzax 20090c6
Use shouldPass() semantics for first proof
systemzax c7ade59
Added tests for proofs being rejected due to low proof block being an…
systemzax c8fd55f
Added comments
systemzax 955aa87
Adjusted comments
systemzax 241af18
Merge branch 'release/1.0' into finality_violation_tests_1.0.0
systemzax 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.