Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: 62f21d3600299c2b9550c33b33a71874e0c1feb0
https://github.com/conformal/btcd/commit/62f21d3600299c2b9550c33b33a71874e0c1feb0
Author: Dave Collins <[email protected]>
Date: 2014-07-06 (Sun, 06 Jul 2014)
Changed paths:
R addrmanager.go
R addrmanager_test.go
A addrmgr/addrmanager.go
A addrmgr/addrmanager_test.go
M log.go
M peer.go
M server.go
Log Message:
-----------
Move address manager to its own package.
This commit does just enough to move the address manager into its own
package. Since it was not originally written as a package, it will
require a bit of refactoring and cleanup to turn it into a robust
package with a friendly API.
Commit: 6f5a43d6c8f8c853d3e067fb4d9d1738c469c6b5
https://github.com/conformal/btcd/commit/6f5a43d6c8f8c853d3e067fb4d9d1738c469c6b5
Author: David Hill <[email protected]>
Date: 2014-07-07 (Mon, 07 Jul 2014)
Changed paths:
M addrmgr/addrmanager.go
M addrmgr/addrmanager_test.go
A addrmgr/cov_report.sh
A addrmgr/doc.go
A addrmgr/log.go
A addrmgr/network.go
A addrmgr/network_test.go
A addrmgr/test_coverage.txt
M peer.go
M server.go
Log Message:
-----------
First round of address manager package refactor
These changes are a joint effort between myself and @dajohi.
- Separate IP address range/network code into its own file
- Group all of the RFC range declarations together
- Introduces a new unexported function to simplify the range declarations
- Add comments for all exported functions
- Use consistent variable casing in refactored code
- Add initial doc.go package overview
- Bump serialize interval to 10 minutes
- Correct GroupKey to perform as intended
- Make AddLocalAddress return error instead of just a debug message
- Add tests for AddLocalAddress
- Add tests for GroupKey
- Add tests for GetBestLocalAddress
- Use time.Time to improve readability
- Make address manager code golint clean
- Misc cleanup
- Add test coverage reporting
Compare: https://github.com/conformal/btcd/compare/ebc5db271031...6f5a43d6c8f8