mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a bug that can destroy metadata. If we find destroyed
metadata, fix it.
This commit is contained in:
@@ -373,7 +373,7 @@ Transaction::pointer Ledger::getTransaction (uint256 const& transID) const
|
||||
if (txn->getStatus () == NEW)
|
||||
txn->setStatus (mClosed ? COMMITTED : INCLUDED, mLedgerSeq);
|
||||
|
||||
getApp().getMasterTransaction ().canonicalize (txn, false);
|
||||
getApp().getMasterTransaction ().canonicalize (txn);
|
||||
return txn;
|
||||
}
|
||||
|
||||
@@ -452,7 +452,7 @@ bool Ledger::getTransaction (uint256 const& txID, Transaction::pointer& txn, Tra
|
||||
if (txn->getStatus () == NEW)
|
||||
txn->setStatus (mClosed ? COMMITTED : INCLUDED, mLedgerSeq);
|
||||
|
||||
getApp().getMasterTransaction ().canonicalize (txn, false);
|
||||
getApp().getMasterTransaction ().canonicalize (txn);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user