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

server: Always reply to getheaders with headers #1295

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

jrick
Copy link
Member

@jrick jrick commented Jun 13, 2018

This reverts a change made in 4f6ed9a
which resulted in a headers response to not be created for a
getheaders request if there were no more discovered headers. This was
a deviation from the previous behavior of queueing a headers message
with an empty vector of headers.

This was a protocol change without a protocol bump, so the behavior
must be reverted.

I also cross referenced the Bitcoin Core source code and, just like
the now-restored behavior, headers messages were always sent even when
no new headers were discovered. I don't see any reason why Decred
should deviate from this behavior.

This reverts a change made in 4f6ed9a
which resulted in a headers response to not be created for a
getheaders request if there were no more discovered headers.  This was
a deviation from the previous behavior of queueing a headers message
with an empty vector of headers.

This was a protocol change without a protocol bump, so the behavior
must be reverted.

I also cross referenced the Bitcoin Core source code and, just like
the now-restored behavior, headers messages were always sent even when
no new headers were discovered.  I don't see any reason why Decred
should deviate from this behavior.
@davecgh davecgh added this to the 1.3.0 milestone Jun 13, 2018
@davecgh davecgh merged commit 37fcf95 into decred:master Jun 13, 2018
@jrick jrick deleted the zeroheaders branch June 15, 2018 00:23
cfromknecht added a commit to cfromknecht/btcd that referenced this pull request Aug 1, 2018
anchaj pushed a commit to phoreproject/btcd that referenced this pull request Sep 24, 2018
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.

2 participants