3#include <csf/PeerGroup.h>
4#include <csf/SimTime.h>
18 p.targetLedgers = p.completedLedgers + ledgers;
46 Peer const* ref = g[0];
64 for (
auto const& peer : g)
65 ledgers.
insert(peer->fullyValidatedLedger);
67 return oracle.branches(ledgers);
A group of simulation Peers.
std::deque< Peer > peers_
void run(int ledgers)
Run consensus protocol to generate the provided number of ledgers.
bool synchronized() const
Check whether all peers in the network are synchronized.
std::size_t branches() const
Calculate the number of branches in the network.
SimClock::duration SimDuration
A single peer in the simulation.
Ledger lastClosedLedger
The last ledger closed by this node.
Ledger fullyValidatedLedger
The most recent ledger that has been fully validated by the network from the perspective of this Peer...