btcd/addrmgr
Calvin Kim f9da3387f1 addrmgr: fix intermittent addrmanager_internal_test bug
Sometimes the tests in the addrmanager_internal_test will fail with:
"addrmanager_internal_test.go: expected to find 5 addresses, found 4"

This is because the generated address with randAddr() may not always
generate an address that's routable. If the address is not routable,
that address will not be added to the manager when calling AddAddress().

This bug is fixed by creating a new function routableRandAddr() that
always creates a routable random address.
2024-03-05 16:33:08 +09:00
..
addrmanager.go multi: update addrmgr, server to use NetAddressV2 instead of legacy 2022-02-24 13:11:15 -05:00
addrmanager_internal_test.go addrmgr: fix intermittent addrmanager_internal_test bug 2024-03-05 16:33:08 +09:00
addrmanager_test.go multi: update addrmgr, server to use NetAddressV2 instead of legacy 2022-02-24 13:11:15 -05:00
cov_report.sh First round of address manager package refactor 2014-07-07 09:04:22 -05:00
doc.go multi: Run gofmt on the entire repository 2023-06-21 22:31:09 +09:00
internal_test.go multi: update addrmgr, server to use NetAddressV2 instead of legacy 2022-02-24 13:11:15 -05:00
knownaddress.go multi: update addrmgr, server to use NetAddressV2 instead of legacy 2022-02-24 13:11:15 -05:00
knownaddress_test.go multi: update addrmgr, server to use NetAddressV2 instead of legacy 2022-02-24 13:11:15 -05:00
log.go Relicense to the btcsuite developers. 2015-05-01 12:00:56 -05:00
network.go multi: remove repetitive the 2023-06-26 15:40:51 +08:00
network_test.go multi: update addrmgr, server to use NetAddressV2 instead of legacy 2022-02-24 13:11:15 -05:00
test_coverage.txt Add more reserved IP space to address manager. 2014-12-16 13:02:39 -05:00