Skip to content

Implements emergency solution command#557

Merged
niklasad1 merged 9 commits intomainfrom
emergency_solution
May 23, 2023
Merged

Implements emergency solution command#557
niklasad1 merged 9 commits intomainfrom
emergency_solution

Conversation

@gpestana
Copy link
Copy Markdown
Contributor

@gpestana gpestana commented May 7, 2023

Implements the emergency_solution_cmd, similar to the staking-miner-v1 implementation. In addition, it saves the encoded set_emergency_solution EPM call into a file for easy handling.

@gpestana gpestana requested review from jsdw and niklasad1 May 7, 2023 19:54
@gpestana gpestana self-assigned this May 7, 2023
@gpestana gpestana marked this pull request as draft May 7, 2023 19:54
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

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

looks good,

just one thing regarding metadata on MaxWinners

@gpestana gpestana requested review from Ank4n and niklasad1 May 20, 2023 06:51
@gpestana gpestana marked this pull request as ready for review May 20, 2023 06:51
const MAX_LENGTH: EpmConstant = EpmConstant::new("MinerMaxLength");
const MAX_VOTES_PER_VOTER: EpmConstant = EpmConstant::new("MinerMaxVotesPerVoter");
const MAX_WINNERS: EpmConstant = EpmConstant::new("MinerMaxWinners");
const MAX_WINNERS: EpmConstant = EpmConstant::new("MaxWinners");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok, this was set to work with older metadata right?

Smart move as this is just duplicated in the MinerConfig :P

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe add a comment for that :)

@niklasad1 niklasad1 merged commit 643f6a5 into main May 23, 2023
@niklasad1 niklasad1 deleted the emergency_solution branch May 23, 2023 08:50
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.

4 participants