Skip to content
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

Merged
merged 6 commits into from
Jul 28, 2022
Merged

Stop benchmark when running contracts #891

merged 6 commits into from
Jul 28, 2022

Conversation

kvinwang
Copy link
Collaborator

No description provided.

crates/phactory/src/benchmark.rs Outdated Show resolved Hide resolved
crates/phactory/src/system/gk.rs Outdated Show resolved Hide resolved
crates/phactory/src/system/gk.rs Outdated Show resolved Hide resolved
@kvinwang kvinwang marked this pull request as ready for review July 21, 2022 03:36
@@ -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() {
Copy link
Collaborator Author

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.

Copy link
Contributor

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

Copy link
Contributor

@h4x3rotab h4x3rotab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kvinwang kvinwang enabled auto-merge July 28, 2022 07:20
@kvinwang kvinwang merged commit cb8a64a into master Jul 28, 2022
@kvinwang kvinwang deleted the stopbench branch July 28, 2022 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants