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

Add startup flag to set miner strategy #2975

Merged
merged 38 commits into from
Sep 2, 2024
Merged

Conversation

Bushstar
Copy link
Member

@Bushstar Bushstar commented Jul 16, 2024

Summary

  • Adds -minerstrategy which can be used to set a miner strategy, this can either be none which is the same as current behaviour or a numeric value, the node will only stake the that number of subnodes selecting from the highest target multiplier downwards. If a target multiplier set is more than the amount left to select then the remaining few are selected randomly from that set.

Implications

  • Storage

    • Database reindex required
    • Database reindex optional
    • Database reindex not required
    • None
  • Consensus

    • Network upgrade required
    • Includes backward compatible changes
    • Includes consensus workarounds
    • Includes consensus refactors
    • None

@Bushstar Bushstar changed the title Add startup flag to set minimum target multiplier to stake Add startup flag to set staker strategy Jul 17, 2024
@Bushstar Bushstar changed the title Add startup flag to set staker strategy Add startup flag to set miner strategy Jul 17, 2024
@prasannavl prasannavl added the e4 High effort // takes lot of time or high expertise label Jul 18, 2024
@prasannavl prasannavl merged commit dad975d into master Sep 2, 2024
20 of 26 checks passed
@prasannavl prasannavl deleted the bush/optimise-staking branch September 2, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e4 High effort // takes lot of time or high expertise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants