Skip to content

Commit

Permalink
Adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlopezrsk committed Mar 13, 2018
1 parent 13f6564 commit 9a49a6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rskj-core/src/main/java/co/rsk/net/NodeBlockProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ public Blockchain getBlockchain() {
return this.blockchain;
}

/**
* Detect a block number that is too advanced
* based on sync chunk size and maximum number of chuncks
*
* @param blockNumber the block number to check
* @return true if the block number is too advanced
*/
@Override
public boolean isAdvancedBlock(long blockNumber) {
int syncMaxDistance = syncConfiguration.getChunkSize() * syncConfiguration.getMaxSkeletonChunks();
Expand Down

0 comments on commit 9a49a6c

Please sign in to comment.