If we don't have a ledger we should have, make sure we mark it missing so the

fetch engine will work on it.
This commit is contained in:
JoelKatz
2013-02-27 14:18:07 -08:00
parent bd3d28c2fa
commit bc21139198
4 changed files with 34 additions and 13 deletions

View File

@@ -1453,7 +1453,7 @@ Json::Value RPCHandler::doTx(Json::Value jvRequest)
if (txn->getLedger() != 0)
{
Ledger::pointer lgr = theApp->getLedgerMaster().getLedgerBySeq(txn->getLedger());
Ledger::pointer lgr = theApp->getOPs().getLedgerBySeq(txn->getLedger());
if (lgr)
{
bool okay = false;
@@ -1538,7 +1538,7 @@ Json::Value RPCHandler::doLedger(Json::Value jvRequest)
else if (strLedger.size() > 12)
ledger = theApp->getLedgerMaster().getLedgerByHash(uint256(strLedger));
else
ledger = theApp->getLedgerMaster().getLedgerBySeq(jvRequest["ledger"].asUInt());
ledger = theApp->getOPs().getLedgerBySeq(jvRequest["ledger"].asUInt());
if (!ledger)
return rpcError(rpcLGR_NOT_FOUND);