mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-16 08:54:19 +02:00
test: Use NodeClockContext in more tests
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <test/util/common.h>
|
||||
#include <test/util/random.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <test/util/time.h>
|
||||
#include <test/util/transaction_utils.h>
|
||||
|
||||
#include <array>
|
||||
@@ -431,9 +432,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
|
||||
FillableSigningProvider keystore;
|
||||
BOOST_CHECK(keystore.AddKey(key));
|
||||
|
||||
// Freeze time for length of test
|
||||
auto now{GetTime<std::chrono::seconds>()};
|
||||
SetMockTime(now);
|
||||
NodeClockContext clock_ctx{};
|
||||
|
||||
std::vector<CTransactionRef> orphans_added;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user