3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

Peer.blockChainDownloadLocked() - fix getblocks message documentation

This commit is contained in:
Oscar Guindzberg 2014-06-25 11:24:57 -03:00 committed by Mike Hearn
parent 659a728790
commit 1d5058626a

View File

@ -1227,7 +1227,7 @@ public class Peer extends PeerSocketHandler {
// https://en.bitcoin.it/wiki/Protocol_specification#getblocks
//
// This is because it requires scanning all the block chain headers, which is very slow. Instead we add the top
// 50 block headers. If there is a re-org deeper than that, we'll end up downloading the entire chain. We
// 100 block headers. If there is a re-org deeper than that, we'll end up downloading the entire chain. We
// must always put the genesis block as the first entry.
BlockStore store = checkNotNull(blockChain).getBlockStore();
StoredBlock chainHead = blockChain.getChainHead();