Prevent stuck block download in large reorganisations
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.

Infernoman/crowncoin,wiggi/fairbrix-0.6.3,Infernoman/crowncoin,wiggi/fairbrix-0.6.3,syscoin/syscoin,Crowndev/crowncoin,wiggi/fairbrix-0.6.3,Infernoman/crowncoin,syscoin/syscoin,domob1812/crowncoin,Crowndev/crowncoin,syscoin/syscoin,dobbscoin/dobbscoin-source,wiggi/fairbrix-0.6.3,Infernoman/crowncoin,Earlz/dobbscoin-source,Earlz/dobbscoin-source,Infernoman/crowncoin,Infernoman/crowncoin,dobbscoin/dobbscoin-source,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source,Crowndev/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,syscoin/syscoin,syscoin/syscoin,Earlz/dobbscoin-source,Crowndev/crowncoin,syscoin/syscoin,syscoin/syscoin,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source,Earlz/dobbscoin-source,dobbscoin/dobbscoin-source,domob1812/crowncoin,dobbscoin/dobbscoin-source,syscoin/syscoin,domob1812/crowncoin,domob1812/crowncoin,wiggi/fairbrix-0.6.3,Crowndev/crowncoin,domob1812/crowncoin