PrevUpHomeNext

Consensus::simulate

Simulate the consensus process without any network traffic.

Synopsis
void
simulate(
    NetClock::time_point const& now,
    boost::optional< std::chrono::milliseconds > consensusDelay);
Description

The end result, is that consensus begins and completes as if everyone had agreed with whatever we propose.

This function is only called from the rpc "ledger_accept" path with the server in standalone mode and SHOULD NOT be used during the normal consensus process.

Parameters

Name

Description

now

The current network adjusted time.

consensusDelay

(Optional) duration to delay between closing and accepting the ledger. Uses 100ms if unspecified.


PrevUpHomeNext