mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 09:17:57 +00:00
Bugfixes.
This commit is contained in:
@@ -23,7 +23,7 @@ InboundLedger::pointer InboundLedgers::findCreate (uint256 const& hash, uint32 s
|
|||||||
ptr->addPeers ();
|
ptr->addPeers ();
|
||||||
ptr->setTimer (); // Cannot call in constructor
|
ptr->setTimer (); // Cannot call in constructor
|
||||||
}
|
}
|
||||||
else
|
else if (isComplete ())
|
||||||
{
|
{
|
||||||
Ledger::pointer ledger = ptr->getLedger ();
|
Ledger::pointer ledger = ptr->getLedger ();
|
||||||
ledger->setClosed ();
|
ledger->setClosed ();
|
||||||
|
|||||||
@@ -1258,15 +1258,6 @@ NetworkOPs::getAccountTxs (const RippleAddress& account, int32 minLedger, int32
|
|||||||
ledger->pendSave(false);
|
ledger->pendSave(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rawMeta.getLength() == 0)
|
|
||||||
{ // Work around a bug that could leave the metadata missing
|
|
||||||
uint32 seq = static_cast<uint32>(db->getBigInt("AccountTransactions.LedgerSeq"));
|
|
||||||
WriteLog(lsWARNING, NetworkOPs) << "Recovering ledger " << seq << ", txn " << txn->getID();
|
|
||||||
Ledger::pointer ledger = getLedgerBySeq(seq);
|
|
||||||
if (ledger)
|
|
||||||
ledger->pendSave(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
TransactionMetaSet::pointer meta = boost::make_shared<TransactionMetaSet> (txn->getID (), txn->getLedger (), rawMeta.getData ());
|
TransactionMetaSet::pointer meta = boost::make_shared<TransactionMetaSet> (txn->getID (), txn->getLedger (), rawMeta.getData ());
|
||||||
ret.push_back (std::pair<Transaction::pointer, TransactionMetaSet::pointer> (txn, meta));
|
ret.push_back (std::pair<Transaction::pointer, TransactionMetaSet::pointer> (txn, meta));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user