mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Verify the correct prior transaction, if required.
This commit is contained in:
@@ -149,10 +149,12 @@ TER Transactor::checkSeq()
|
||||
|
||||
return tefPAST_SEQ;
|
||||
}
|
||||
else
|
||||
{
|
||||
mTxnAccount->setFieldU32(sfSequence, t_seq + 1);
|
||||
}
|
||||
|
||||
if (mTxn.isFieldPresent(sfPreviousTxnID) &&
|
||||
(mTxnAccount->getFieldH256(sfPreviousTxnID) != mTxn.getFieldH256(sfPreviousTxnID)))
|
||||
return tefWRONG_PRIOR;
|
||||
|
||||
mTxnAccount->setFieldU32(sfSequence, t_seq + 1);
|
||||
|
||||
return tesSUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user