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.
Name |
Description |
---|---|
|
The current network adjusted time. |
|
(Optional) duration to delay between closing and accepting the ledger. Uses 100ms if unspecified. |