aboutsummaryrefslogtreecommitdiff
path: root/src/test/denialofservice_tests.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-12-13 12:02:10 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-12-13 12:32:09 +0100
commitfad7ead146a152f46b25ce6623e05cbb1dbc8cca (patch)
tree3eb7c696b2d23d76dda3b6b95e819efc9e826d80 /src/test/denialofservice_tests.cpp
parenteb63b8fab91c3aec46ef4ae66e6241ed5de49bbd (diff)
refactor: Use type-safe std::chrono in net
Diffstat (limited to 'src/test/denialofservice_tests.cpp')
-rw-r--r--src/test/denialofservice_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/denialofservice_tests.cpp b/src/test/denialofservice_tests.cpp
index f1abd5183a..a62c799305 100644
--- a/src/test/denialofservice_tests.cpp
+++ b/src/test/denialofservice_tests.cpp
@@ -237,7 +237,7 @@ BOOST_AUTO_TEST_CASE(block_relay_only_eviction)
// Update the last block time for the extra peer,
// and check that the next youngest peer gets evicted.
vNodes.back()->fDisconnect = false;
- vNodes.back()->nLastBlockTime = GetTime();
+ vNodes.back()->nLastBlockTime = GetTime<std::chrono::seconds>();
peerLogic->CheckForStaleTipAndEvictPeers();
for (int i = 0; i < max_outbound_block_relay - 1; ++i) {