diff --git a/src/ripple/app/ledger/LedgerMaster.cpp b/src/ripple/app/ledger/LedgerMaster.cpp index 79692ce43..04824d7fd 100644 --- a/src/ripple/app/ledger/LedgerMaster.cpp +++ b/src/ripple/app/ledger/LedgerMaster.cpp @@ -1311,6 +1311,7 @@ public: void setMinValidations (int v) { + WriteLog (lsINFO, LedgerMaster) << "Validation quorum: " << v; mMinValidations = v; } diff --git a/src/ripple/app/main/Main.cpp b/src/ripple/app/main/Main.cpp index bed439029..25a5105ac 100644 --- a/src/ripple/app/main/Main.cpp +++ b/src/ripple/app/main/Main.cpp @@ -192,6 +192,7 @@ int run (int argc, char** argv) ("unittest-format", po::value ()->implicit_value ("text"), "Format unit test output. Choices are 'text', 'junit'") ("parameters", po::value< vector > (), "Specify comma separated parameters.") ("quiet,q", "Reduce diagnotics.") + ("quorum", po::value (), "Set the validation quorum.") ("verbose,v", "Verbose logging.") ("load", "Load the current ledger from the local DB.") ("replay","Replay a ledger close.") @@ -352,6 +353,14 @@ int run (int argc, char** argv) // VFALCO TODO This should be a short. getConfig ().setRpcPort (vm ["rpc_port"].as ()); } + + if (vm.count ("quorum")) + { + getConfig ().VALIDATION_QUORUM = vm["quorum"].as (); + + if (getConfig ().VALIDATION_QUORUM < 0) + iResult = 1; + } } if (iResult == 0)