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

Allow configuring winner count in dry-run #539

Merged
merged 8 commits into from
May 3, 2023

Conversation

jsdw
Copy link
Contributor

@jsdw jsdw commented Apr 27, 2023

Allow passing winner-count into the dry-run command, and make providing the account ID optional.

Does anything else need adding/doing to make this useful (eg other config to allow overriding)? (I think in that case I might be tempted to have a separate simulate command like the original issue suggests)

Closes #461

@jsdw jsdw changed the title first pass: allow configuring winner count in dry-run Allow configuring winner count in dry-run Apr 27, 2023
@jsdw jsdw marked this pull request as ready for review April 27, 2023 09:48
artifacts/metadata.scale Outdated Show resolved Hide resolved
Ok(Err(err)) => Err(Error::Other(format!("{:?}", err))),
Err(err) => Err(err.into()),
}
}

/// The result of calling [`fetch_snapshot_and_mine_solution`].
pub struct MinedSolution<T: MinerConfig> {
Copy link
Member

@niklasad1 niklasad1 Apr 29, 2023

Choose a reason for hiding this comment

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

nice 👍

much cleaner than what I did earlier

src/commands/dry_run.rs Outdated Show resolved Hide resolved
@niklasad1 niklasad1 merged commit 32edb42 into main May 3, 2023
@niklasad1 niklasad1 deleted the jsdw-simulate-winner-count branch May 3, 2023 15:01
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.

add simulate command
3 participants