-
Notifications
You must be signed in to change notification settings - Fork 148
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
Stop benchmark when running contracts #891
Conversation
@@ -625,6 +630,7 @@ pub mod pallet { | |||
Some(miner) => miner, | |||
None => continue, // Skip non-existing miners | |||
}; | |||
// The MiningActive is removed, is this logic need to be changed? | |||
// Skip non-mining miners | |||
if !miner_info.state.is_mining() { |
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.
In the previous, is_mining()
meant MiningIdle or MiningUnresponsive (MiningActive was excluded). Now it means MiningIdle (including previous MiningActive), MiningUnresponsive.
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.
No problem. We never have Active
state in the past
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.
LGTM
No description provided.