rippled
|
Public Member Functions | |
checkMetrics (__LINE__, env, 0, 6, 0, 3, 256) | |
checkMetrics (__LINE__, env, 0, 6, 4, 3, 256) | |
checkMetrics (__LINE__, env, 4, 6, 4, 3, 256) | |
checkMetrics (__LINE__, env, 0, 8, 4, 4, 256) | |
checkMetrics (__LINE__, env, 1, 8, 5, 4, 256) | |
checkMetrics (__LINE__, env, 1, 8, 5, 4, 256) | |
checkMetrics (__LINE__, env, 0, 10, 2, 5, 256) | |
checkMetrics (__LINE__, env, 0, 10, 0, 5, 256) | |
fillQueue (env, alice) | |
void | testQueueSeq () |
void | testQueueTicket () |
void | testTecResult () |
void | testLocalTxRetry () |
void | testLastLedgerSeq () |
void | testZeroFeeTxn () |
void | testFailInPreclaim () |
void | testQueuedTxFails () |
void | testMultiTxnPerAccount () |
void | testTieBreaking () |
void | testAcctTxnID () |
void | testMaximum () |
void | testUnexpectedBalanceChange () |
void | testBlockersSeq () |
void | testBlockersTicket () |
void | testInFlightBalance () |
void | testConsequences () |
void | testAcctInQueueButEmpty () |
void | testRPC () |
void | testExpirationReplacement () |
void | testFullQueueGapFill () |
void | testSignAndSubmitSequence () |
void | testAccountInfo () |
BEAST_EXPECT (env.current() ->info().seq > 3) | |
BEAST_EXPECT (info.isMember(jss::result) &&info[jss::result].isMember(jss::account_data)) | |
BEAST_EXPECT (!info[jss::result].isMember(jss::queue_data)) | |
BEAST_EXPECT (info.isMember(jss::result) &&info[jss::result].isMember(jss::account_data)) | |
BEAST_EXPECT (result.isMember(jss::queue_data)) | |
BEAST_EXPECT (queue_data.isObject()) | |
BEAST_EXPECT (queue_data.isMember(jss::txn_count)) | |
BEAST_EXPECT (queue_data[jss::txn_count]==0) | |
BEAST_EXPECT (!queue_data.isMember(jss::lowest_sequence)) | |
BEAST_EXPECT (!queue_data.isMember(jss::highest_sequence)) | |
BEAST_EXPECT (!queue_data.isMember(jss::auth_change_queued)) | |
BEAST_EXPECT (!queue_data.isMember(jss::max_spend_drops_total)) | |
BEAST_EXPECT (!queue_data.isMember(jss::transactions)) | |
BEAST_EXPECT (info.isMember(jss::result) &&info[jss::result].isMember(jss::account_data)) | |
BEAST_EXPECT (result.isMember(jss::queue_data)) | |
BEAST_EXPECT (queue_data.isObject()) | |
BEAST_EXPECT (queue_data.isMember(jss::txn_count)) | |
BEAST_EXPECT (queue_data[jss::txn_count]==0) | |
BEAST_EXPECT (!queue_data.isMember(jss::lowest_sequence)) | |
BEAST_EXPECT (!queue_data.isMember(jss::highest_sequence)) | |
BEAST_EXPECT (!queue_data.isMember(jss::auth_change_queued)) | |
BEAST_EXPECT (!queue_data.isMember(jss::max_spend_drops_total)) | |
BEAST_EXPECT (!queue_data.isMember(jss::transactions)) | |
BEAST_EXPECT (info.isMember(jss::result) &&info[jss::result].isMember(jss::account_data)) | |
BEAST_EXPECT (result.isMember(jss::queue_data)) | |
BEAST_EXPECT (queue_data.isObject()) | |
BEAST_EXPECT (queue_data.isMember(jss::txn_count)) | |
BEAST_EXPECT (queue_data[jss::txn_count]==4) | |
BEAST_EXPECT (queue_data.isMember(jss::lowest_sequence)) | |
BEAST_EXPECT (queue_data[jss::lowest_sequence]==data[jss::Sequence]) | |
BEAST_EXPECT (queue_data.isMember(jss::highest_sequence)) | |
BEAST_EXPECT (queue_data[jss::highest_sequence]==data[jss::Sequence].asUInt()+queue_data[jss::txn_count].asUInt() - 1) | |
BEAST_EXPECT (queue_data.isMember(jss::auth_change_queued)) | |
BEAST_EXPECT (queue_data[jss::auth_change_queued]==false) | |
BEAST_EXPECT (queue_data.isMember(jss::max_spend_drops_total)) | |
BEAST_EXPECT (queue_data[jss::max_spend_drops_total]=="400") | |
BEAST_EXPECT (queue_data.isMember(jss::transactions)) | |
BEAST_EXPECT (queued.size()==queue_data[jss::txn_count]) | |
BEAST_EXPECT (info.isMember(jss::result) &&info[jss::result].isMember(jss::account_data)) | |
BEAST_EXPECT (result.isMember(jss::queue_data)) | |
BEAST_EXPECT (queue_data.isObject()) | |
BEAST_EXPECT (queue_data.isMember(jss::txn_count)) | |
BEAST_EXPECT (queue_data[jss::txn_count]==1) | |
BEAST_EXPECT (queue_data.isMember(jss::lowest_sequence)) | |
BEAST_EXPECT (queue_data[jss::lowest_sequence]==data[jss::Sequence]) | |
BEAST_EXPECT (queue_data.isMember(jss::highest_sequence)) | |
BEAST_EXPECT (queue_data[jss::highest_sequence]==data[jss::Sequence].asUInt()+queue_data[jss::txn_count].asUInt() - 1) | |
BEAST_EXPECT (queue_data.isMember(jss::auth_change_queued)) | |
BEAST_EXPECT (queue_data[jss::auth_change_queued]==true) | |
BEAST_EXPECT (queue_data.isMember(jss::max_spend_drops_total)) | |
BEAST_EXPECT (queue_data[jss::max_spend_drops_total]=="100") | |
BEAST_EXPECT (queue_data.isMember(jss::transactions)) | |
BEAST_EXPECT (queued.size()==queue_data[jss::txn_count]) | |
BEAST_EXPECT (info.isMember(jss::result) &&info[jss::result].isMember(jss::account_data)) | |
BEAST_EXPECT (result.isMember(jss::queue_data)) | |
BEAST_EXPECT (queue_data.isObject()) | |
BEAST_EXPECT (queue_data.isMember(jss::txn_count)) | |
BEAST_EXPECT (queue_data[jss::txn_count]==1) | |
BEAST_EXPECT (queue_data.isMember(jss::lowest_sequence)) | |
BEAST_EXPECT (queue_data[jss::lowest_sequence]==data[jss::Sequence]) | |
BEAST_EXPECT (queue_data.isMember(jss::highest_sequence)) | |
BEAST_EXPECT (queue_data[jss::highest_sequence]==data[jss::Sequence].asUInt()+queue_data[jss::txn_count].asUInt() - 1) | |
BEAST_EXPECT (queue_data.isMember(jss::auth_change_queued)) | |
BEAST_EXPECT (queue_data[jss::auth_change_queued].asBool()) | |
BEAST_EXPECT (queue_data.isMember(jss::max_spend_drops_total)) | |
BEAST_EXPECT (queue_data[jss::max_spend_drops_total]=="100") | |
BEAST_EXPECT (queue_data.isMember(jss::transactions)) | |
BEAST_EXPECT (queued.size()==queue_data[jss::txn_count]) | |
BEAST_EXPECT (info.isMember(jss::result) &&RPC::contains_error(info[jss::result])) | |
BEAST_EXPECT (info.isMember(jss::result) &&info[jss::result].isMember(jss::account_data)) | |
BEAST_EXPECT (result.isMember(jss::queue_data)) | |
BEAST_EXPECT (queue_data.isObject()) | |
BEAST_EXPECT (queue_data.isMember(jss::txn_count)) | |
BEAST_EXPECT (queue_data[jss::txn_count]==0) | |
BEAST_EXPECT (!queue_data.isMember(jss::lowest_sequence)) | |
BEAST_EXPECT (!queue_data.isMember(jss::highest_sequence)) | |
BEAST_EXPECT (!queue_data.isMember(jss::auth_change_queued)) | |
BEAST_EXPECT (!queue_data.isMember(jss::max_spend_drops_total)) | |
BEAST_EXPECT (!queue_data.isMember(jss::transactions)) | |
envs (noop(alice), fee(100), seq(none), ter(terQUEUED))(submitParams) | |
envs (noop(alice), fee(100), seq(none), ter(terQUEUED))(submitParams) | |
envs (noop(alice), fee(100), seq(none), ter(terQUEUED))(submitParams) | |
envs (noop(alice), fee(100), seq(none), ter(terQUEUED))(submitParams) | |
envs (noop(alice), seq(none))(submitParams) | |
envs (fset(alice, asfAccountTxnID), fee(100), seq(none), json(jss::LastLedgerSequence, 10), ter(terQUEUED))(submitParams) | |
envs (noop(alice), fee(100), seq(none), ter(telCAN_NOT_QUEUE_BLOCKED))(submitParams) | |
for (unsigned i=0;i< queued.size();++i) | |
for (unsigned i=0;i< queued.size();++i) | |
for (unsigned i=0;i< queued.size();++i) | |
env | close () |
env | close () |
env | close () |
void | testServerInfo () |
void | testServerSubscribe () |
void | testClearQueuedAccountTxs () |
void | testScaling () |
void | testInLedgerSeq () |
void | testInLedgerTicket () |
void | testReexecutePreflight () |
void | testQueueFullDropPenalty () |
void | testCancelQueuedOffers () |
void | testZeroReferenceFee () |
void | run2 () |
Public Attributes | |
const auto | withoutQueue = R"({ "account": ")" + alice.human() + R"("})" |
const auto | prevLedgerWithQueue |
auto const & | result = info[jss::result] |
auto const & | queue_data = result[jss::queue_data] |
auto | submitParams = Json::Value(Json::objectValue) |
auto const & | data = result[jss::account_data] |
auto const & | queued = queue_data[jss::transactions] |
Private Member Functions | |
void | run () override |
void | checkMetrics (int line, jtx::Env &env, std::size_t expectedCount, std::optional< std::size_t > expectedMaxCount, std::size_t expectedInLedger, std::size_t expectedPerLedger, std::uint64_t expectedMinFeeLevel, std::uint64_t expectedMedFeeLevel=256 *500) |
void | fillQueue (jtx::Env &env, jtx::Account const &account) |
auto | openLedgerFee (jtx::Env &env) |
std::size_t | initFee (jtx::Env &env, std::size_t expectedPerLedger, std::size_t ledgersInQueue, std::uint32_t base, std::uint32_t reserve, std::uint32_t increment) |
Static Private Member Functions | |
static std::unique_ptr< Config > | makeConfig (std::map< std::string, std::string > extraTxQ={}, std::map< std::string, std::string > extraVoting={}) |
Definition at line 4974 of file TxQ_test.cpp.
|
overrideprivate |
Definition at line 4977 of file TxQ_test.cpp.
|
privateinherited |
Definition at line 42 of file TxQ_test.cpp.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
privateinherited |
Definition at line 133 of file TxQ_test.cpp.
|
inherited |
|
privateinherited |
Definition at line 141 of file TxQ_test.cpp.
|
staticprivateinherited |
Definition at line 159 of file TxQ_test.cpp.
|
privateinherited |
Definition at line 193 of file TxQ_test.cpp.
|
inherited |
Definition at line 235 of file TxQ_test.cpp.
|
inherited |
Definition at line 447 of file TxQ_test.cpp.
|
inherited |
Definition at line 704 of file TxQ_test.cpp.
|
inherited |
Definition at line 740 of file TxQ_test.cpp.
|
inherited |
Definition at line 797 of file TxQ_test.cpp.
|
inherited |
Definition at line 907 of file TxQ_test.cpp.
|
inherited |
Definition at line 1004 of file TxQ_test.cpp.
|
inherited |
Definition at line 1028 of file TxQ_test.cpp.
|
inherited |
Definition at line 1079 of file TxQ_test.cpp.
|
inherited |
Definition at line 1349 of file TxQ_test.cpp.
|
inherited |
Definition at line 1595 of file TxQ_test.cpp.
|
inherited |
Definition at line 1634 of file TxQ_test.cpp.
|
inherited |
Definition at line 1732 of file TxQ_test.cpp.
|
inherited |
Definition at line 1829 of file TxQ_test.cpp.
|
inherited |
Definition at line 1959 of file TxQ_test.cpp.
|
inherited |
Definition at line 2121 of file TxQ_test.cpp.
|
inherited |
Definition at line 2475 of file TxQ_test.cpp.
|
inherited |
Definition at line 2533 of file TxQ_test.cpp.
|
inherited |
Definition at line 2638 of file TxQ_test.cpp.
|
inherited |
Definition at line 2702 of file TxQ_test.cpp.
|
inherited |
Definition at line 2803 of file TxQ_test.cpp.
|
inherited |
Definition at line 2962 of file TxQ_test.cpp.
|
inherited |
Definition at line 3092 of file TxQ_test.cpp.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 3194 of file TxQ_test.cpp.
|
inherited |
Definition at line 3252 of file TxQ_test.cpp.
|
inherited |
Definition at line 3308 of file TxQ_test.cpp.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 3371 of file TxQ_test.cpp.
|
inherited |
Definition at line 3632 of file TxQ_test.cpp.
|
inherited |
Definition at line 3777 of file TxQ_test.cpp.
|
inherited |
Definition at line 3983 of file TxQ_test.cpp.
|
inherited |
Definition at line 4123 of file TxQ_test.cpp.
|
inherited |
Definition at line 4192 of file TxQ_test.cpp.
|
inherited |
Definition at line 4287 of file TxQ_test.cpp.
|
inherited |
Definition at line 4443 of file TxQ_test.cpp.
|
inherited |
Definition at line 4680 of file TxQ_test.cpp.
|
inherited |
Definition at line 4793 of file TxQ_test.cpp.
|
inherited |
Definition at line 4953 of file TxQ_test.cpp.
|
inherited |
Definition at line 3106 of file TxQ_test.cpp.
|
inherited |
Definition at line 3107 of file TxQ_test.cpp.
|
inherited |
Definition at line 3125 of file TxQ_test.cpp.
|
inherited |
Definition at line 3127 of file TxQ_test.cpp.
|
inherited |
Definition at line 3160 of file TxQ_test.cpp.
|
inherited |
Definition at line 3173 of file TxQ_test.cpp.
|
inherited |
Definition at line 3192 of file TxQ_test.cpp.