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

feat(job): boost block weight when too low #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jansegre
Copy link
Member

@jansegre jansegre commented Dec 8, 2021

Note: I still have to fix the tests for this PR.

Acceptance criteria: when the network weight is bellow a certain threshold, the mined blocks should have their weights increased (current proposal is to increase by a fixed amount up until the threshold).

@jansegre jansegre self-assigned this Dec 8, 2021
# can do, and about what 2 GPUs on AWS can do. The boosting mechanism is to basically add WEIGHT_EXTRA_ADD capping
# it to MIN_WEIGHT_EXTRA (examples: weight=21.0 -> weight=25.0, weight=30.0 -> weight=34.0, weight=31.0 ->
# weight=34.0, weight=34.0 -> weight=34.0, weight=35.0 -> weight=35.0)
MIN_WEIGHT_EXTRA = 34.0
Copy link
Member

Choose a reason for hiding this comment

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

I was a bit confused with this param name at first, to be honest. I was thinking about something like MAX_WEIGHT_TO_ADD_EXTRA. I'm okay to move with the current name as well

Copy link
Member Author

@jansegre jansegre Dec 9, 2021

Choose a reason for hiding this comment

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

I agree the name was chosen poorly. But your suggestion seems a bit convoluted, what about WEIGHT_BOOST_CAP, and WEIGHT_BOOST_BONUS.

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.

None yet

2 participants