aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-03-18 23:47:26 +0100
committerPieter Wuille <[email protected]>2012-03-21 05:09:02 +0100
commit0aa89c08ff271f34271e6fd2eb1ef04afdbcab3a (patch)
tree17b2e6f8bbee2e4adebda41107c4d554eb020266 /src/bitcoinrpc.cpp
parentMerge pull request #960 from gavinandresen/issue913 (diff)
downloaddiscoin-0aa89c08ff271f34271e6fd2eb1ef04afdbcab3a.tar.xz
discoin-0aa89c08ff271f34271e6fd2eb1ef04afdbcab3a.zip
Prevent stuck block download in large reorganisations
In cases of very large reorganisations (hundreds of blocks), a situation may appear where an 'inv' is sent as response to a 'getblocks', but the last block mentioned in the inv is already known to the receiver node. However, the supplying node uses a request for this last block as a trigger to send the rest of the inv blocks. If it never comes, the block chain download is stuck. This commit makes the receiver node always request the last inv'ed block, even if it is already known, to prevent this problem.
Diffstat (limited to 'src/bitcoinrpc.cpp')
0 files changed, 0 insertions, 0 deletions