-
Notifications
You must be signed in to change notification settings - Fork 198
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
chain simulator
force change of epoch
#6173
chain simulator
force change of epoch
#6173
Conversation
|
||
epoch := s.nodes[core.MetachainShardId].GetProcessComponents().EpochStartTrigger().Epoch() | ||
|
||
return s.GenerateBlocksUntilEpochIsReached(int32(epoch + 1)) |
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.
👍
require.Nil(t, err) | ||
|
||
err = chainSimulator.ForceChangeOfEpoch() | ||
require.Nil(t, err) |
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.
maybe add an assert here that the epoch is 5 4?
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.
added
@@ -278,6 +278,22 @@ func (s *simulator) incrementRoundOnAllValidators() { | |||
} | |||
} | |||
|
|||
// ForceChangeOfEpoch will force the change of current epoch | |||
// This method will call the epoch change trigger and generate block till a new epoch is reached |
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 method will call the epoch change trigger and generate block till a new epoch is reached | |
// This method will call the epoch change trigger and generate blocks till a new epoch is reached |
The base branch was changed.
Reasoning behind the pull request
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?