Always check the sequence when adding to the transaction queue:

* If multiple transactions are queued for the account, change the
  account's sequence number in a temporary view before processing the
  transaction.
* Adds a new "at()" interface to STObject which is identical to the
  operator[], but easier to write and read when dealing with ptrs.
* Split the TxQ tests into two suites to speed up parallel run times.
This commit is contained in:
Edward Hennis
2020-10-08 19:15:16 -04:00
committed by manojsdoshi
parent a3f2196d4e
commit 77ec62e9c8
7 changed files with 146 additions and 169 deletions

View File

@@ -247,7 +247,7 @@ Transactor::checkSeqProxy(
{
JLOG(j.trace())
<< "applyTransaction: delay: source account does not exist "
<< toBase58(tx.getAccountID(sfAccount));
<< toBase58(id);
return terNO_ACCOUNT;
}
@@ -305,7 +305,7 @@ Transactor::checkPriorTxAndLastLedger(PreclaimContext const& ctx)
{
JLOG(ctx.j.trace())
<< "applyTransaction: delay: source account does not exist "
<< toBase58(ctx.tx.getAccountID(sfAccount));
<< toBase58(id);
return terNO_ACCOUNT;
}