Don't use tapENABLE_TESTING for TxQ.

* Enable FeeEscalation feature in TxQ tests.
* Elapsed time for simulated consensus.
This commit is contained in:
Edward Hennis
2015-12-15 14:06:50 -05:00
committed by Vinnie Falco
parent a5583de6e6
commit 1bce85d7b6
10 changed files with 136 additions and 193 deletions

View File

@@ -304,9 +304,8 @@ TxQ::apply(Application& app, OpenView& view,
ApplyFlags flags, beast::Journal j)
{
auto const allowEscalation =
(flags & tapENABLE_TESTING) ||
(view.rules().enabled(featureFeeEscalation,
app.config().features));
(view.rules().enabled(featureFeeEscalation,
app.config().features));
if (!allowEscalation)
{
return ripple::apply(app, view, *tx, flags, j);
@@ -502,11 +501,9 @@ TxQ::apply(Application& app, OpenView& view,
void
TxQ::processValidatedLedger(Application& app,
OpenView const& view, bool timeLeap,
ApplyFlags flags)
OpenView const& view, bool timeLeap)
{
auto const allowEscalation =
(flags & tapENABLE_TESTING) ||
(view.rules().enabled(featureFeeEscalation,
app.config().features));
if (!allowEscalation)
@@ -560,10 +557,9 @@ TxQ::processValidatedLedger(Application& app,
bool
TxQ::accept(Application& app,
OpenView& view, ApplyFlags flags)
OpenView& view)
{
auto const allowEscalation =
(flags & tapENABLE_TESTING) ||
(view.rules().enabled(featureFeeEscalation,
app.config().features));
if (!allowEscalation)