-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'peerconnect' event from Pool #38
Conversation
f1117b7
to
762beaf
Compare
The connect event should likely have a separate test, as the "new addrs" test is only testing for handling of "addr" messages. |
762beaf
to
e92cc5e
Compare
@braydonf yup, was already working on a better test, that will test |
8b4a57f
to
3ed6931
Compare
@@ -100,4 +100,40 @@ describe('Pool', function() { | |||
|
|||
}); | |||
|
|||
it('should propagate connect, ready, and disconnect peer evenst', function(done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a typo and and extra space.
Interesting, I thought there may have been a test for disconnect, but it doesn't look like it. It should test to make sure that the peer has been removed from |
3ed6931
to
269487e
Compare
Good catch, updated. |
269487e
to
e0b58e2
Compare
LGTM |
great contribution, thanks @throughnothing ! |
Add 'peerconnect' event from Pool
This could be useful to some consumers. I'm using it to detect nodes that are connected, but slow to respond with their
verack
commands, to disconnect these slow nodes and get different nodes in my pool.