Merge #9291: Remove mapOrphanTransactionsByPrev from DoS_tests

819ca3f Remove mapOrphanTransactionsByPrev from DoS_tests (Pieter Wuille)
This commit is contained in:
Wladimir J. van der Laan 2016-12-08 08:38:12 +01:00 committed by Alexander Block
parent 470b526d95
commit b0c0046ef0

View File

@ -32,7 +32,6 @@ struct COrphanTx {
int64_t nTimeExpire;
};
extern std::map<uint256, COrphanTx> mapOrphanTransactions;
extern std::map<uint256, std::set<uint256> > mapOrphanTransactionsByPrev;
CService ip(uint32_t i)
{
@ -213,7 +212,6 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
BOOST_CHECK(mapOrphanTransactions.size() <= 10);
LimitOrphanTxSize(0);
BOOST_CHECK(mapOrphanTransactions.empty());
BOOST_CHECK(mapOrphanTransactionsByPrev.empty());
}
BOOST_AUTO_TEST_SUITE_END()