mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Support "standalone" mode (-a or --standalone) in which we do not connect
to the network and do not close ledgers. This mode makes it much easier to test transactions as they are only applied once to the open ledger.
This commit is contained in:
@@ -333,7 +333,7 @@ public:
|
||||
|
||||
void NetworkOPs::checkState(const boost::system::error_code& result)
|
||||
{ // Network state machine
|
||||
if (result == boost::asio::error::operation_aborted)
|
||||
if ((result == boost::asio::error::operation_aborted) || theConfig.RUN_STANDALONE)
|
||||
return;
|
||||
setStateTimer();
|
||||
|
||||
@@ -680,7 +680,7 @@ void NetworkOPs::setMode(OperatingMode om)
|
||||
mConnectTime = boost::posix_time::second_clock::universal_time();
|
||||
Log l((om < mMode) ? lsWARNING : lsINFO);
|
||||
if (om == omDISCONNECTED)
|
||||
l << "STATE->Disonnected";
|
||||
l << "STATE->Disconnected";
|
||||
else if (om == omCONNECTED)
|
||||
l << "STATE->Connected";
|
||||
else if (om == omTRACKING)
|
||||
|
||||
Reference in New Issue
Block a user