Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
try_advance_commit_index
Method · 0.80
handle_request_vote_response
Method · 0.80
Calls
1
cluster_size
Method · 0.80
Tested by
no test coverage detected