Skip to content

Commit 5b7aac3

Browse files
amitiuttarwarmzumsande
authored andcommitted
test: delete unused GetBucketAndEntry function
1 parent 2ba1e74 commit 5b7aac3

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/test/addrman_tests.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,6 @@ class AddrManTest : public AddrMan
4747
m_impl->Delete(nId);
4848
}
4949

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-
6550
// Simulates connection failure so that we can test eviction of offline nodes
6651
void SimConnFail(const CService& addr)
6752
{

0 commit comments

Comments
 (0)