mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix a bug that can destroy metadata. If we find destroyed
metadata, fix it.
This commit is contained in:
@@ -80,7 +80,7 @@ SerializedTransaction::pointer TransactionMaster::fetch (SHAMapItem::ref item, S
|
||||
return txn;
|
||||
}
|
||||
|
||||
bool TransactionMaster::canonicalize (Transaction::pointer& txn, bool may_be_new)
|
||||
bool TransactionMaster::canonicalize (Transaction::pointer& txn)
|
||||
{
|
||||
uint256 tid = txn->getID ();
|
||||
|
||||
@@ -90,9 +90,6 @@ bool TransactionMaster::canonicalize (Transaction::pointer& txn, bool may_be_new
|
||||
if (mCache.canonicalize (tid, txn))
|
||||
return true;
|
||||
|
||||
if (may_be_new)
|
||||
txn->save ();
|
||||
|
||||
return false;
|
||||
}
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user