mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
Mark some FIXMEs
This commit is contained in:
@@ -1227,6 +1227,10 @@ NetworkOPs::getAccountTxs (const RippleAddress& account, int32 minLedger, int32
|
|||||||
}
|
}
|
||||||
else rawMeta.resize (metaSize);
|
else rawMeta.resize (metaSize);
|
||||||
|
|
||||||
|
if (rawMeta.getLength() == 0)
|
||||||
|
{ // FIXME metadata isn't in the table, update metadata and sequence in Transactions DB from ledger
|
||||||
|
}
|
||||||
|
|
||||||
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));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,6 +156,8 @@ void Transaction::save ()
|
|||||||
|
|
||||||
Database* db = getApp().getTxnDB ()->getDB ();
|
Database* db = getApp().getTxnDB ()->getDB ();
|
||||||
ScopedLock dbLock (getApp().getTxnDB ()->getDBLock ());
|
ScopedLock dbLock (getApp().getTxnDB ()->getDBLock ());
|
||||||
|
|
||||||
|
// FIXME: This can destroy metadata
|
||||||
db->executeSQL (mTransaction->getSQLInsertReplaceHeader () + mTransaction->getSQL (getLedger (), status) + ";");
|
db->executeSQL (mTransaction->getSQLInsertReplaceHeader () + mTransaction->getSQL (getLedger (), status) + ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user