MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / quorum

Method quorum

nodedb-raft/src/node/config.rs:75–77  ·  view source on GitHub ↗

Quorum size: `floor(n/2) + 1` over the voter set.

(&self)

Source from the content-addressed store, hash-verified

73
74 /// Quorum size: `floor(n/2) + 1` over the voter set.
75 pub fn quorum(&self) -> usize {
76 self.cluster_size() / 2 + 1
77 }
78}
79
80#[cfg(test)]

Callers 2

Calls 1

cluster_sizeMethod · 0.80

Tested by

no test coverage detected