relab / hotstuff

MIT License
166 stars 52 forks source link

QuorumSize is not correctly implemented for 3f+3 case. #126

Open hanish520 opened 1 month ago

hanish520 commented 1 month ago

Currently, QuorumSize is implemented as

func NumFaulty(n int) int {
    return (n - 1) / 3
}

func QuorumSize(n int) int {
    return n - NumFaulty(n)
}

QuorumSize from this implementation may return a number higher than the required.