Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[peer] Refactor peer code into its own package #439
The current peer code is a bit more tightly integrated than it should be. Ideally, it should be a separate sub-package named
The vast majority of this work will be a simple refactoring the current code into a separate package, however some new code will need to be added to deal with the ability to register listeners and for the message handlers themselves to invoke the registered listeners.
Once the peer package provides a fully functional peer with the fundamental functionality, btcd should be refactored to make use of the package by registering listeners for all of the appropriate messages and handling them as it currently does.
Here are a few guidelines for the new package:
@tuxcanfly will be working on this.