Simulate the consensus process without any network traffic.
void simulate( NetClock::time_point const& now, boost::optional< std::chrono::milliseconds > consensusDelay);
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.
Simulate will call onForceAccept since clients are manually driving consensus to the accept phase.
Name |
Description |
---|---|
|
The current network adjusted time. |
|
Duration to delay between closing and accepting the ledger. Uses 100ms if unspecified. |