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;
|
return tefPAST_SEQ;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
if (mTxn.isFieldPresent(sfPreviousTxnID) &&
|
||||||
mTxnAccount->setFieldU32(sfSequence, t_seq + 1);
|
(mTxnAccount->getFieldH256(sfPreviousTxnID) != mTxn.getFieldH256(sfPreviousTxnID)))
|
||||||
}
|
return tefWRONG_PRIOR;
|
||||||
|
|
||||||
|
mTxnAccount->setFieldU32(sfSequence, t_seq + 1);
|
||||||
|
|
||||||
return tesSUCCESS;
|
return tesSUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user