lbcd/addrmgr
David de Kloet c5751b75a9 wire: Treat NetAddress more like immutable
Replace assignments to individual fields of wire.NetAddress with
creating the entire object at once, as one would do if the type was
immutable.

In some places this replaces the creation of a NetAddress with a
high-precision timestamp with a call to a 'constructor' that converts
the timestamp to single second precision. For consistency, the tests
have also been changed to use single-precision timestamps.

Lastly, the number of allocations in readNetAddress have been reduced by
reading the services directly into the NetAddress instead of first into
a temporary variable.
2016-12-06 20:48:02 +01:00
..
addrmanager.go wire: Treat NetAddress more like immutable 2016-12-06 20:48:02 +01:00
addrmanager_test.go wire: Treat NetAddress more like immutable 2016-12-06 20:48:02 +01:00
cov_report.sh First round of address manager package refactor 2014-07-07 09:04:22 -05:00
doc.go Relicense to the btcsuite developers. 2015-05-01 12:00:56 -05:00
internal_test.go Relicense to the btcsuite developers. 2015-05-01 12:00:56 -05:00
knownaddress.go Relicense to the btcsuite developers. 2015-05-01 12:00:56 -05:00
knownaddress_test.go wire: Treat NetAddress more like immutable 2016-12-06 20:48:02 +01:00
log.go Relicense to the btcsuite developers. 2015-05-01 12:00:56 -05:00
network.go multi: Remove unnecessary convs found by unconvert. 2016-11-03 11:59:38 -05:00
network_test.go wire: Treat NetAddress more like immutable 2016-12-06 20:48:02 +01:00
test_coverage.txt Add more reserved IP space to address manager. 2014-12-16 13:02:39 -05:00