Revert "Apply transaction batches in periodic intervals (#4504)"

This reverts commit b580049ec0.
This commit is contained in:
Elliot Lee
2023-08-30 15:46:12 -07:00
parent 7ca1c644d1
commit d943c58b3d
24 changed files with 167 additions and 402 deletions

View File

@@ -19,7 +19,6 @@
#include <ripple/app/misc/LoadFeeTrack.h>
#include <ripple/app/misc/TxQ.h>
#include <ripple/basics/SubmitSync.h>
#include <ripple/basics/contract.h>
#include <ripple/beast/unit_test.h>
#include <ripple/core/ConfigSections.h>
@@ -2385,7 +2384,7 @@ public:
fakeProcessTransaction(
std::shared_ptr<Transaction>&,
bool,
SubmitSync,
bool,
NetworkOPs::FailHard)
{
;
@@ -2433,8 +2432,7 @@ public:
Role role,
std::chrono::seconds validatedLedgerAge,
Application & app,
ProcessTransactionFn const& processTransaction,
RPC::SubmitSync sync);
ProcessTransactionFn const& processTransaction);
using TestStuff =
std::tuple<signFunc, submitFunc, char const*, unsigned int>;
@@ -2487,8 +2485,7 @@ public:
testRole,
1s,
env.app(),
processTxn,
RPC::SubmitSync::sync);
processTxn);
}
std::string errStr;

View File

@@ -17,7 +17,6 @@
*/
//==============================================================================
#include <ripple/app/misc/NetworkOPs.h>
#include <ripple/beast/unit_test.h>
#include <ripple/core/JobQueue.h>
#include <ripple/protocol/jss.h>
@@ -89,8 +88,7 @@ public:
}
BEAST_EXPECT(jv[jss::result][jss::engine_result] == "tefPAST_SEQ");
// Submit future sequence transaction -- this transaction should be
// held until the sequence gap is closed.
// Submit future sequence transaction
payment[jss::tx_json][sfSequence.fieldName] = env.seq("alice") + 1;
jv = wsc->invoke("submit", payment);
if (wsc->version() == 2)
@@ -116,8 +114,6 @@ public:
}
BEAST_EXPECT(jv[jss::result][jss::engine_result] == "tesSUCCESS");
// Apply held transactions.
env.app().getOPs().transactionBatch(true);
// Wait for the jobqueue to process everything
env.app().getJobQueue().rendezvous();