Changeset View
Changeset View
Standalone View
Standalone View
src/test/mempool_tests.cpp
// Copyright (c) 2011-2019 The Bitcoin Core developers | // Copyright (c) 2011-2019 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <policy/policy.h> | #include <policy/policy.h> | ||||
#include <reverse_iterator.h> | #include <reverse_iterator.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/time.h> | |||||
#include <test/setup_common.h> | #include <test/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <algorithm> | #include <algorithm> | ||||
#include <list> | |||||
#include <vector> | #include <vector> | ||||
BOOST_FIXTURE_TEST_SUITE(mempool_tests, TestingSetup) | BOOST_FIXTURE_TEST_SUITE(mempool_tests, TestingSetup) | ||||
BOOST_AUTO_TEST_CASE(TestPackageAccounting) { | BOOST_AUTO_TEST_CASE(TestPackageAccounting) { | ||||
CTxMemPool testPool; | CTxMemPool testPool; | ||||
LOCK2(cs_main, testPool.cs); | LOCK2(cs_main, testPool.cs); | ||||
TestMemPoolEntryHelper entry; | TestMemPoolEntryHelper entry; | ||||
▲ Show 20 Lines • Show All 1,117 Lines • Show Last 20 Lines |