-
Notifications
You must be signed in to change notification settings - Fork 33
Create block_state for block_state_legacy for snapshot correctly during transition #45
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
Conversation
…d make it return status and transactionId
| numTrxGenerators=2 | ||
| Print("Stand up cluster") | ||
| # For now do not load system contract as it does not support setfinalizer | ||
| specificExtraNodeosArgs = { irreversibleNodeId: "--read-mode irreversible"} |
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.
Please add a snapshot from the irreversibleNode and make sure it can be used to start a node as well.
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.
Done.
…entations (Legacy and Savanna) of block state and using correct Genesis block
…estart node with it
libraries/chain/controller.cpp
Outdated
| assert(!legacy_branch.empty()); // should have started with a block_state chain_head or we transition during replay | ||
| // transition to savanna | ||
| block_state_ptr prev; | ||
| block_state_ptr prev = chain_head_trans_svnn_block; // If chain_head_trans_svnn_block should not null, it indicates replay from snapshot. |
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.
Instead of these two comments, why not have a boolean:
bool replay_from_snapshot = !chain_head_trans_svnn_block;
If you keep the comment, please fix small typo, and put comment on separate line to avoid excessively long lines.
| block_state_ptr prev = chain_head_trans_svnn_block; // If chain_head_trans_svnn_block should not null, it indicates replay from snapshot. | |
| block_state_ptr prev = chain_head_trans_svnn_block; // If chain_head_trans_svnn_block is not null, it indicates replay from snapshot. |
|
Note:start |
work around ASAN intercepting `mlock()` as a noop
Resolved #15