Skip to content

Allow configuring winner count in dry-run#539

Merged
niklasad1 merged 8 commits intomainfrom
jsdw-simulate-winner-count
May 3, 2023
Merged

Allow configuring winner count in dry-run#539
niklasad1 merged 8 commits intomainfrom
jsdw-simulate-winner-count

Conversation

@jsdw
Copy link
Copy Markdown
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
}

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

@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

@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