hiero-ledger / hiero-ledger/hiero-consensus-node

Voting calculation change

Open
#5,356 3 comments 0 reactions 1 assignee Claimed by @lpetrovic05 View on GitHub
Platform
Dominant language
Java
Stars
406
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

Right now, 4 of the equations are passed a witness `y` that we are voting on, but should instead be passed a creator ID `m`, whose witness is being voted on. For example, `vote(x,y)` returns a boolean for whether `x` is voting yes for witness `y`. That will be changed to `vote(x,m)` which returns the witness `y` created by `m` for which `X` is voting yes.  (Or `null` if it isn't voting yes for any witness created by `m`).  The switch will affect `vote`, `firstVote`, `copyVote`, and `decide`. In all those cases, we will have a parameter `m` (creator ID) instead of `y` (a witness). 

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.