diff options
author | Matt Corallo <git@bluematt.me> | 2016-12-31 18:16:08 +0100 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-01-05 10:32:07 -0500 |
commit | 9eb67f50008970d09a8253475d591cdad872692e (patch) | |
tree | 4aee68b3f671390337438bddefd4f64e73be3927 /src/timedata.h | |
parent | 5749a853b9f46cc58d51aae8b5d4dcbd110a20ca (diff) | |
download | bitcoin-9eb67f50008970d09a8253475d591cdad872692e.tar.xz |
Ensure we meet the BIP 152 old-relay-types response requirements
In order to do this, we must call ActivateBestChain prior to
responding getdata requests for blocks which we announced using
compact blocks.
For getheaders responses we dont need code changes, but do note
that we must reset the bestHeaderSent so that the SendMessages call
re-announces the header in question.
While we could do something smarter for getblocks, calling
ActivateBestChain is simple and more obviously correct, instead of
doing something more similar to getheaders.
See-also the BIP clarifications at
https://github.com/bitcoin/bips/pull/486
Diffstat (limited to 'src/timedata.h')
0 files changed, 0 insertions, 0 deletions