mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-23 05:59:48 +01:00
[refactor] Don't call AcceptToMemoryPool() from outside validation.cpp
This commit is contained in:
@@ -273,7 +273,7 @@ BOOST_AUTO_TEST_CASE(mempool_locks_reorg)
|
||||
{
|
||||
LOCK(cs_main);
|
||||
for (const auto& tx : txs) {
|
||||
const MempoolAcceptResult result = AcceptToMemoryPool(m_node.chainman->ActiveChainstate(), *m_node.mempool, tx, false /* bypass_limits */);
|
||||
const MempoolAcceptResult result = m_node.chainman->ProcessTransaction(tx);
|
||||
BOOST_REQUIRE(result.m_result_type == MempoolAcceptResult::ResultType::VALID);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user