mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Merge #9291: Remove mapOrphanTransactionsByPrev from DoS_tests
819ca3f
Remove mapOrphanTransactionsByPrev from DoS_tests (Pieter Wuille)
This commit is contained in:
commit
86017842d6
1 changed files with 0 additions and 2 deletions
|
@ -32,7 +32,6 @@ struct COrphanTx {
|
||||||
int64_t nTimeExpire;
|
int64_t nTimeExpire;
|
||||||
};
|
};
|
||||||
extern std::map<uint256, COrphanTx> mapOrphanTransactions;
|
extern std::map<uint256, COrphanTx> mapOrphanTransactions;
|
||||||
extern std::map<uint256, std::set<uint256> > mapOrphanTransactionsByPrev;
|
|
||||||
|
|
||||||
CService ip(uint32_t i)
|
CService ip(uint32_t i)
|
||||||
{
|
{
|
||||||
|
@ -203,7 +202,6 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
|
||||||
BOOST_CHECK(mapOrphanTransactions.size() <= 10);
|
BOOST_CHECK(mapOrphanTransactions.size() <= 10);
|
||||||
LimitOrphanTxSize(0);
|
LimitOrphanTxSize(0);
|
||||||
BOOST_CHECK(mapOrphanTransactions.empty());
|
BOOST_CHECK(mapOrphanTransactions.empty());
|
||||||
BOOST_CHECK(mapOrphanTransactionsByPrev.empty());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE_END()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
|
Loading…
Add table
Reference in a new issue