demo
Well-known member
@UdjinM6 who coded the votes as enumeration? The votes as enumeration first appeared in 12.1 version and they remain as that in 12.2 too. This does not facilitate someone to code the numerical voting functionality for the (non stupid) Masternodes owners to be able to use. Au contraire, this code change raises a huge obstacle (especially for amateurs like me)
To solve this I may do this:
enum vote_outcome_enum_t {
VOTE_OUTCOME_NONE = 0,
VOTE_OUTCOME_YES = 1,
VOTE_OUTCOME_NO = 2,
VOTE_OUTCOME_ABSTAIN = 3,
VOTE_OUTCOME_NUMBER =4
};
Whenever a masternode vote outcome is casted (for example) as 15 , I will add 4 to the vote, make it 19, then when calculate the result I will substract 4 and make it 15 again. Or shall I use another code structure different than the enumeration? And how this structure can support the granularity I need? Numerical voting requires real numbers, not integers.
What do you suggest? Could you fix this, could you change this vote_outcome_enum_t to another class that may in the future support numerical voting? Have a look at the old structure (before 12.1). Straightforward isnt it? It was much more easy to get a numerical vote from a masternode that way. Why did you change this structure? Do you think that the spies entered into your mind (or into Evan's mind) and made you change this specific structure , in order to prevent numerical voting?
To solve this I may do this:
enum vote_outcome_enum_t {
VOTE_OUTCOME_NONE = 0,
VOTE_OUTCOME_YES = 1,
VOTE_OUTCOME_NO = 2,
VOTE_OUTCOME_ABSTAIN = 3,
VOTE_OUTCOME_NUMBER =4
};
Whenever a masternode vote outcome is casted (for example) as 15 , I will add 4 to the vote, make it 19, then when calculate the result I will substract 4 and make it 15 again. Or shall I use another code structure different than the enumeration? And how this structure can support the granularity I need? Numerical voting requires real numbers, not integers.
What do you suggest? Could you fix this, could you change this vote_outcome_enum_t to another class that may in the future support numerical voting? Have a look at the old structure (before 12.1). Straightforward isnt it? It was much more easy to get a numerical vote from a masternode that way. Why did you change this structure? Do you think that the spies entered into your mind (or into Evan's mind) and made you change this specific structure , in order to prevent numerical voting?
Last edited: