isMajority

Calculates the majority votes

  1. bool isMajority(size_t voting, size_t node_size)
    @safe @nogc pure nothrow
    bool
    isMajority
    (
    const size_t voting
    ,
    const size_t node_size
    )
  2. bool isMajority(T voting, S node_size)
  3. bool isMajority(const(BitMask) mask, HashGraph hashgraph)

Parameters

voting size_t

Number of votes

node_size size_t

Total number of votes

Return Value

Type: bool

Returns true if the votes are more than 2/3

Meta