mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
Peer: fix and clarify comment about putting genesis hash into BlockLocator
This commit is contained in:
parent
148a40b2ed
commit
9bbb6b39e3
1 changed files with 1 additions and 1 deletions
|
@ -1447,7 +1447,7 @@ public class Peer extends PeerSocketHandler {
|
|||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
// Only add the locator if we didn't already do so. If the chain is < 50 blocks we already reached it.
|
||||
// Only add the genesis hash to the locator if we didn't already do so. If the chain is < 100 blocks we already reached it.
|
||||
if (cursor != null)
|
||||
blockLocator = blockLocator.add(params.getGenesisBlock().getHash());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue