HomePhabricator

[tests] Update Unit Test for addrman.h/addrman.cpp

Description

[tests] Update Unit Test for addrman.h/addrman.cpp

Summary:
Add test for adding multiple addresses to address manager
Clean up unnecessary modulo operations
Add test for GetNewBucket's alternate method signature

This is a backport of Core PR10287

Test Plan:

make check

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox, teamcity

Differential Revision: https://reviews.bitcoinabc.org/D1861

Details

Provenance
Jimmy Song <jaejoon@gmail.com>Authored on Apr 27 2017, 01:15
deadalnixCommitted on Oct 4 2018, 21:03
deadalnixPushed on Oct 4 2018, 21:15
Reviewer
Restricted Project
Differential Revision
D1861: [tests] Update Unit Test for addrman.h/addrman.cpp
Parents
rSTAGING3516365bc73d: Net: Fixed a race condition when disabling the network.
Branches
Unknown
Tags
Unknown