aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@chaincode.com>2016-10-26 14:53:18 -0400
committerRussell Yanofsky <russ@yanofsky.org>2016-11-07 14:35:11 -0500
commitdac53b58b555183ccc0d5e64c428528267cd98b3 (patch)
tree0b5679b91658ac1feb93dcedf6247fa61c04c0c6 /src/qt
parent55bfddcabbf9e8a3743f77167ba4a43aaba9f948 (diff)
downloadbitcoin-dac53b58b555183ccc0d5e64c428528267cd98b3.tar.xz
Modify getblocktxn handler not to drop requests for old blocks
The current getblocktxn implementation drops and ignores requests for old blocks, which causes occasional sync_block timeouts during the p2p-compactblocks.py test as reported in https://github.com/bitcoin/bitcoin/issues/8842. The p2p-compactblocks.py test setup creates many new blocks in a short period of time, which can lead to getblocktxn requests for blocks below the hardcoded depth limit of 10 blocks. This commit changes the getblocktxn handler not to ignore these requests, so the peer nodes in the test setup will reliably be able to sync. The protocol change is documented in BIP-152 update "Allow block responses to getblocktxn requests" at https://github.com/bitcoin/bips/pull/469. The protocol change is not expected to affect nodes running outside the test environment, because there shouldn't normally be lots of new blocks being rapidly added that need to be synced.
Diffstat (limited to 'src/qt')
0 files changed, 0 insertions, 0 deletions