dcrd/addrmgr
David de Kloet 64a414c64f 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.
2017-03-24 17:07:28 -04:00
..
addrmanager_test.go wire: Treat NetAddress more like immutable 2017-03-24 17:07:28 -04:00
addrmanager.go wire: Treat NetAddress more like immutable 2017-03-24 17:07:28 -04:00
cov_report.sh First round of address manager package refactor 2014-07-07 09:04:22 -05:00
doc.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
internal_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
knownaddress_test.go wire: Treat NetAddress more like immutable 2017-03-24 17:07:28 -04:00
knownaddress.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
log.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
network_test.go wire: Treat NetAddress more like immutable 2017-03-24 17:07:28 -04:00
network.go travis: enable gometalinter (#603) 2017-03-08 15:44:15 -05:00
test_coverage.txt Initial Decred Commit. 2016-02-07 14:00:12 -05:00