mirror of
https://github.com/btcsuite/btcd.git
synced 2025-02-23 14:40:44 +01:00
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. |
||
---|---|---|
.. | ||
addrmanager.go | ||
addrmanager_internal_test.go | ||
addrmanager_test.go | ||
cov_report.sh | ||
doc.go | ||
internal_test.go | ||
knownaddress.go | ||
knownaddress_test.go | ||
log.go | ||
network.go | ||
network_test.go | ||
test_coverage.txt |