aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2016-12-31 18:16:08 +0100
committerMatt Corallo <[email protected]>2017-01-05 10:32:07 -0500
commit9eb67f50008970d09a8253475d591cdad872692e (patch)
tree4aee68b3f671390337438bddefd4f64e73be3927 /src/validation.cpp
parentCache most-recently-connected compact block (diff)
downloaddiscoin-9eb67f50008970d09a8253475d591cdad872692e.tar.xz
discoin-9eb67f50008970d09a8253475d591cdad872692e.zip
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/validation.cpp')
0 files changed, 0 insertions, 0 deletions