voterMeshFromNodes

fun voterMeshFromNodes(voterNodes: Map<NodeId, RaftNode>, scope: CoroutineScope): VoterMesh

Construct a VoterMesh from pre-built voter nodes.

Intended for tests that wire nodes via us.tractat.kuilt.raft.test.MultiNodeRaftSim (virtual time) and want to verify VoterMesh behaviour without real transports.

Parameters

voterNodes

Pre-wired voter nodes keyed by NodeId.

scope

Scope for VoterMesh.close.