Changeset View
Changeset View
Standalone View
Standalone View
src/test/validation_block_tests.cpp
Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | for (int test_runs = 3; test_runs > 0; --test_runs) { | ||||
reorg.push_back(last_mined); | reorg.push_back(last_mined); | ||||
} | } | ||||
// Add the txs to the tx pool | // Add the txs to the tx pool | ||||
{ | { | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
for (const auto &tx : txs) { | for (const auto &tx : txs) { | ||||
const MempoolAcceptResult result = | const MempoolAcceptResult result = | ||||
AcceptToMemoryPool(m_node.chainman->ActiveChainstate(), | m_node.chainman->ProcessTransaction(tx); | ||||
config, *m_node.mempool, tx, | |||||
/* bypass_limits */ false); | |||||
BOOST_REQUIRE_MESSAGE( | BOOST_REQUIRE_MESSAGE( | ||||
result.m_result_type == | result.m_result_type == | ||||
MempoolAcceptResult::ResultType::VALID, | MempoolAcceptResult::ResultType::VALID, | ||||
result.m_state.GetRejectReason()); | result.m_state.GetRejectReason()); | ||||
} | } | ||||
} | } | ||||
// Check that all txs are in the pool | // Check that all txs are in the pool | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |