mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
tree-wide: clang-format CTxMemPool references
[META] Do this so that we can more easily grep for all actual instances
of CTxMemPool construction.
This commit is contained in:
@@ -4628,7 +4628,7 @@ void PeerManagerImpl::MaybeSendFeefilter(CNode& pto, Peer& peer, std::chrono::mi
|
|||||||
namespace {
|
namespace {
|
||||||
class CompareInvMempoolOrder
|
class CompareInvMempoolOrder
|
||||||
{
|
{
|
||||||
CTxMemPool *mp;
|
CTxMemPool* mp;
|
||||||
bool m_wtxid_relay;
|
bool m_wtxid_relay;
|
||||||
public:
|
public:
|
||||||
explicit CompareInvMempoolOrder(CTxMemPool *_mempool, bool use_wtxid)
|
explicit CompareInvMempoolOrder(CTxMemPool *_mempool, bool use_wtxid)
|
||||||
|
|||||||
@@ -108,12 +108,12 @@ BOOST_AUTO_TEST_CASE(MempoolRemoveTest)
|
|||||||
BOOST_CHECK_EQUAL(testPool.size(), 0U);
|
BOOST_CHECK_EQUAL(testPool.size(), 0U);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename name>
|
template <typename name>
|
||||||
static void CheckSort(CTxMemPool &pool, std::vector<std::string> &sortedOrder) EXCLUSIVE_LOCKS_REQUIRED(pool.cs)
|
static void CheckSort(CTxMemPool& pool, std::vector<std::string>& sortedOrder) EXCLUSIVE_LOCKS_REQUIRED(pool.cs)
|
||||||
{
|
{
|
||||||
BOOST_CHECK_EQUAL(pool.size(), sortedOrder.size());
|
BOOST_CHECK_EQUAL(pool.size(), sortedOrder.size());
|
||||||
typename CTxMemPool::indexed_transaction_set::index<name>::type::iterator it = pool.mapTx.get<name>().begin();
|
typename CTxMemPool::indexed_transaction_set::index<name>::type::iterator it = pool.mapTx.get<name>().begin();
|
||||||
int count=0;
|
int count = 0;
|
||||||
for (; it != pool.mapTx.get<name>().end(); ++it, ++count) {
|
for (; it != pool.mapTx.get<name>().end(); ++it, ++count) {
|
||||||
BOOST_CHECK_EQUAL(it->GetTx().GetHash().ToString(), sortedOrder[count]);
|
BOOST_CHECK_EQUAL(it->GetTx().GetHash().ToString(), sortedOrder[count]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user