mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user