-
Notifications
You must be signed in to change notification settings - Fork 72
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
IF: Add new snapshot version to hold consensus hotstuff state #2297
Conversation
Note:start |
Snapshot conversion to json was crashing because forkdb `head` was empty.
It is nicer to have them printed before `index` in `gdb`
.activated_protocol_features = std::move(sbs.activated_protocol_features), | ||
.core = std::move(sbs.core), | ||
.proposal_mtree = std::move(sbs.proposal_mtree), | ||
.finality_mtree = std::move(sbs.finality_mtree), |
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.
// 4. edit `unittests/snapshots/CMakeLists.txt` and add the `configure_file` commands for the 3 new files. | ||
// now the test should pass. | ||
// 5. add the 3 new snapshot files in git. | ||
// ------------------------------------------------------------------------------------------------------------- |
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.
Great to have this instruction!
@@ -150,8 +150,9 @@ set_property(TEST ship_if_test PROPERTY LABELS nonparallelizable_tests) | |||
|
|||
add_test(NAME ship_streamer_test COMMAND tests/ship_streamer_test.py -v --num-clients 10 ${UNSHARE} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | |||
set_property(TEST ship_streamer_test PROPERTY LABELS long_running_tests) | |||
add_test(NAME ship_streamer_if_test COMMAND tests/ship_streamer_test.py -v --num-clients 10 --activate-if ${UNSHARE} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | |||
set_property(TEST ship_streamer_if_test PROPERTY LABELS long_running_tests) | |||
# uncomment after https://github.com/AntelopeIO/leap/issues/2285 implemented |
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.
Add a note in 2285 to uncomment this so we won't forget.
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.
already done :-)!
Resolves #1558.
Add new snapshot version (V7) to support storing the new
chain_head
, which can be either ablock_state_legacy
(pre IF transition) or ablock_state
(post IF transition).