mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-19 18:15:50 +00:00
Remove support for deprecated PreviousTxnID field (RIPD-710):
The PreviousTxnID field has been deprecated and should not be used for transactions that use the field will now be rejected. The AccountTxnID feature should be used instead by enabling transaction tracking and specifying a transaction ID at submission. More details are available at: https://ripple.com/build/transactions/#accounttxnid
This commit is contained in:
@@ -204,11 +204,6 @@ TER Transactor::checkSeq ()
|
|||||||
return tefPAST_SEQ;
|
return tefPAST_SEQ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Do not use
|
|
||||||
if (mTxn.isFieldPresent (sfPreviousTxnID) &&
|
|
||||||
(mTxnAccount->getFieldH256 (sfPreviousTxnID) != mTxn.getFieldH256 (sfPreviousTxnID)))
|
|
||||||
return tefWRONG_PRIOR;
|
|
||||||
|
|
||||||
if (mTxn.isFieldPresent (sfAccountTxnID) &&
|
if (mTxn.isFieldPresent (sfAccountTxnID) &&
|
||||||
(mTxnAccount->getFieldH256 (sfAccountTxnID) != mTxn.getFieldH256 (sfAccountTxnID)))
|
(mTxnAccount->getFieldH256 (sfAccountTxnID) != mTxn.getFieldH256 (sfAccountTxnID)))
|
||||||
return tefWRONG_PRIOR;
|
return tefWRONG_PRIOR;
|
||||||
@@ -228,7 +223,7 @@ TER Transactor::checkSeq ()
|
|||||||
// check stuff before you bother to lock the ledger
|
// check stuff before you bother to lock the ledger
|
||||||
TER Transactor::preCheck ()
|
TER Transactor::preCheck ()
|
||||||
{
|
{
|
||||||
mTxnAccountID = mTxn.getSourceAccount ().getAccountID ();
|
mTxnAccountID = mTxn.getSourceAccount ().getAccountID ();
|
||||||
|
|
||||||
if (!mTxnAccountID)
|
if (!mTxnAccountID)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ void TxFormats::addCommonFields (Item& item)
|
|||||||
<< SOElement(sfSourceTag, SOE_OPTIONAL)
|
<< SOElement(sfSourceTag, SOE_OPTIONAL)
|
||||||
<< SOElement(sfAccount, SOE_REQUIRED)
|
<< SOElement(sfAccount, SOE_REQUIRED)
|
||||||
<< SOElement(sfSequence, SOE_REQUIRED)
|
<< SOElement(sfSequence, SOE_REQUIRED)
|
||||||
<< SOElement(sfPreviousTxnID, SOE_OPTIONAL) // Deprecated: Do not use
|
|
||||||
<< SOElement(sfLastLedgerSequence, SOE_OPTIONAL)
|
<< SOElement(sfLastLedgerSequence, SOE_OPTIONAL)
|
||||||
<< SOElement(sfAccountTxnID, SOE_OPTIONAL)
|
<< SOElement(sfAccountTxnID, SOE_OPTIONAL)
|
||||||
<< SOElement(sfFee, SOE_REQUIRED)
|
<< SOElement(sfFee, SOE_REQUIRED)
|
||||||
|
|||||||
Reference in New Issue
Block a user