Skip to content
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

peer: Don't log write errs due to disconnect. #524

Merged
merged 1 commit into from
Oct 23, 2015

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Oct 21, 2015

Requires #445

This pull request modifies the peer logging so that it will not log an error when it's due to the remote peer disconnecting or the peer being forcibly disconnected or shutdown.

Review on Reviewable

@davecgh davecgh force-pushed the no_peer_write_err_on_dc branch 4 times, most recently from f205136 to 6b0c6ed Compare October 23, 2015 19:41
@jcvernaleo
Copy link
Member

I think we discussed this one on irc. As stated there, I'm in favor of relatively clean logs at the 'normal' level so I like this change.
Code looks good. Assuming travis ever finishes, OK on this one too.

@davecgh davecgh force-pushed the no_peer_write_err_on_dc branch from 6b0c6ed to 4a397d5 Compare October 23, 2015 19:55
This commit modifies the peer logging so that it will not log an error
when it's due to the remote peer disconnecting or the peer being
forcibly disconnected or shutdown.
@conformal-deploy conformal-deploy merged commit 4a397d5 into btcsuite:master Oct 23, 2015
@davecgh davecgh deleted the no_peer_write_err_on_dc branch October 23, 2015 22:28
davecgh pushed a commit to davecgh/btcd that referenced this pull request Dec 23, 2016
* Bump block header version to 3.
* Enforce new rules once block version gets to 3.
* Use Voter Versions to control bumping of Stake Version.
* Calculate appropriate stake version based on history and prior
  intervals in the mining code.
* Add bunch of UT to validate code.

This is the minimally correct working implementation.  This code
desperately needs to memoize the questions that are asked repeatedly.

Fixes btcsuite#523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants