Verify the correct prior transaction, if required.

This commit is contained in:
JoelKatz
2013-05-26 16:50:45 -07:00
parent 49c97f53b4
commit e42fd3eee8

View File

@@ -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;
} }