mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
a148fa797a
This gives KnownAddress a sync.RWMutex so the exported methods may safely access the na (*wire.NetAddress) and lastattempt fields. The AddrManager is updated to lock the new KnownAddress mutex before assigning to na or lastattempt. The other KnownAddress fields are only accessed by AddrManager, using its own Mutex for synchronization. |
||
---|---|---|
.. | ||
addrmanager_internal_test.go | ||
addrmanager_test.go | ||
addrmanager.go | ||
cov_report.sh | ||
doc.go | ||
internal_test.go | ||
knownaddress_test.go | ||
knownaddress.go | ||
log.go | ||
network_test.go | ||
network.go | ||
test_coverage.txt |