mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Avoid construcing a RippleAddress just to throw it away.
This commit is contained in:
@@ -9,12 +9,11 @@ SETUP_LOG();
|
||||
bool TransactionEngine::checkInvariants(TER result, const SerializedTransaction& txn, TransactionEngineParams params)
|
||||
{
|
||||
#if 0
|
||||
const RippleAddress& srcAccount = txn.getFieldAccount(sfAccount);
|
||||
uint32 txnSeq = txn.getFieldU32(sfSequence);
|
||||
|
||||
LedgerEntryAction leaAction;
|
||||
|
||||
uint256 srcActId = Ledger::getAccountRootIndex(srcAccount.getAccountID());
|
||||
uint256 srcActId = Ledger::getAccountRootIndex(txn.getFieldAccount(sfAccount));
|
||||
SLE::pointer origSrcAct = mLedger->getSLE(srcActId);
|
||||
SLE::pointer newSrcAct = mNodes.getEntry(srcActId, leaAction);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user