Integration test to validate the WS ledger results.

* Also replace a couple of magic values with the relevant Tuning param.
This commit is contained in:
Edward Hennis
2015-05-13 19:35:13 -04:00
committed by Vinnie Falco
parent dddcc09378
commit e838b30def
3 changed files with 185 additions and 2 deletions

View File

@@ -486,7 +486,8 @@ checkTxJsonFields (
// Check for current ledger.
if (verify && !getConfig ().RUN_STANDALONE &&
(apiFacade.getValidatedLedgerAge() > 120))
(apiFacade.getValidatedLedgerAge() >
Tuning::maxValidatedLedgerAge))
{
ret.first = rpcError (rpcNO_CURRENT);
return ret;