HomePhabricator

Prevent stuck block download in large reorganisations
0aa89c08ff27Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Mar 18 2012, 22:47
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGef142365392f: Merge pull request #960 from gavinandresen/issue913
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rSTAGING0aa89c08ff27: Prevent stuck block download in large reorganisations (authored by Pieter Wuille <pieter.wuille@gmail.com>).Mar 21 2012, 04:09