diff options
author | dergoegge <n.goeggi@gmail.com> | 2022-02-20 15:20:15 +0100 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2022-04-20 13:33:07 +0200 |
commit | a292df283a596efe7e1d40c33a6d614d70ed564d (patch) | |
tree | b271d4c3d422fc17a0904723b8fcd6c9079c7e69 /src/test/denialofservice_tests.cpp | |
parent | 37ecaf3e7a028486a0a1c9b717e8eb4214215805 (diff) |
[net processing] Move mapNodeState into PeerManagerImpl
Diffstat (limited to 'src/test/denialofservice_tests.cpp')
-rw-r--r-- | src/test/denialofservice_tests.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/denialofservice_tests.cpp b/src/test/denialofservice_tests.cpp index f03ff5ba3a..39f4c031d3 100644 --- a/src/test/denialofservice_tests.cpp +++ b/src/test/denialofservice_tests.cpp @@ -34,8 +34,6 @@ static CService ip(uint32_t i) return CService(CNetAddr(s), Params().GetDefaultPort()); } -void UpdateLastBlockAnnounceTime(NodeId node, int64_t time_in_seconds); - BOOST_FIXTURE_TEST_SUITE(denialofservice_tests, TestingSetup) // Test eviction of an outbound peer whose chain never advances @@ -197,7 +195,7 @@ BOOST_AUTO_TEST_CASE(stale_tip_peer_management) // Update the last announced block time for the last // peer, and check that the next newest node gets evicted. - UpdateLastBlockAnnounceTime(vNodes.back()->GetId(), GetTime()); + peerLogic->UpdateLastBlockAnnounceTime(vNodes.back()->GetId(), GetTime()); peerLogic->CheckForStaleTipAndEvictPeers(); for (int i = 0; i < max_outbound_full_relay - 1; ++i) { |