Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Remove min curation percent for witnesses #1009 #1278

Conversation

maslenitsa93
Copy link

@maslenitsa93 maslenitsa93 added this to the 0.21.0 milestone Apr 7, 2019
@maslenitsa93 maslenitsa93 self-assigned this Apr 7, 2019
@maslenitsa93 maslenitsa93 requested review from zxcat and afalaleev April 7, 2019 10:57
Copy link
Member

@afalaleev afalaleev left a comment

Choose a reason for hiding this comment

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

The default value of curation_rewards_percent should be 25%.

GOLOS_CHECK_VALUE(STEEMIT_MIN_CURATION_PERCENT_PRE_HF21 <= percent && percent <= STEEMIT_MAX_CURATION_PERCENT,
"Curation rewards percent must be between ${min} and ${max}.",
("min", STEEMIT_MIN_CURATION_PERCENT)("max", STEEMIT_MAX_CURATION_PERCENT));
}
Copy link
Member

Choose a reason for hiding this comment

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

This checking shouldn't happen.
The checking of mprops should work.

Copy link
Author

Choose a reason for hiding this comment

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

@afalaleev Look at this checking:
https://github.com/GolosChain/golos/blob/1009-min-curation-percent-remove-witness-limit/libraries/protocol/steem_operations.cpp#L170

In pre-HF21 it was:
25% <= percent
And it was failing independent from mprops.
And it will continue failing on these nodes with old version.
In new nodes it should fail, too, if no HF21.

About default value you are right.

@maslenitsa93 maslenitsa93 removed the request for review from zxcat April 7, 2019 16:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants