We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba1e74 commit 5b7aac3Copy full SHA for 5b7aac3
src/test/addrman_tests.cpp
@@ -47,21 +47,6 @@ class AddrManTest : public AddrMan
47
m_impl->Delete(nId);
48
}
49
50
- // Used to test deserialization
51
- std::pair<int, int> GetBucketAndEntry(const CAddress& addr)
52
- {
53
- LOCK(m_impl->cs);
54
- int nId = m_impl->mapAddr[addr];
55
- for (int bucket = 0; bucket < ADDRMAN_NEW_BUCKET_COUNT; ++bucket) {
56
- for (int entry = 0; entry < ADDRMAN_BUCKET_SIZE; ++entry) {
57
- if (nId == m_impl->vvNew[bucket][entry]) {
58
- return std::pair<int, int>(bucket, entry);
59
- }
60
61
62
- return std::pair<int, int>(-1, -1);
63
64
-
65
// Simulates connection failure so that we can test eviction of offline nodes
66
void SimConnFail(const CService& addr)
67
{
0 commit comments