/** * Checks if we are at a difficulty transition point. * @param height The height of the previous stored block * @return If this is a difficulty transition point */ public final boolean isDifficultyTransitionPoint(final int height) { return ((height + 1) % this.getInterval()) == 0; }
/** * Checks if we are at a difficulty transition point. * @param height The height of the previous stored block * @return If this is a difficulty transition point */ public final boolean isDifficultyTransitionPoint(final int height) { return ((height + 1) % this.getInterval()) == 0; }
/** * Checks if we are at a difficulty transition point. * @param storedPrev The previous stored block * @return If this is a difficulty transition point */ protected boolean isDifficultyTransitionPoint(StoredBlock storedPrev) { return ((storedPrev.getHeight() + 1) % this.getInterval()) == 0; }
/** * Checks if we are at a difficulty transition point. * @param storedPrev The previous stored block * @return If this is a difficulty transition point */ protected boolean isDifficultyTransitionPoint(StoredBlock storedPrev) { return ((storedPrev.getHeight() + 1) % this.getInterval()) == 0; }
for (int i = 0; i < this.getInterval() - 1; i++) { if (cursor == null) {
Sha256Hash hash = prev.getHash(); StoredBlock cursor = null; final int interval = this.getInterval(); for (int i = 0; i < interval; i++) { cursor = blockStore.get(hash);
Sha256Hash hash = prev.getHash(); StoredBlock cursor = null; final int interval = this.getInterval(); for (int i = 0; i < interval; i++) { cursor = blockStore.get(hash);
for (int i = 0; i < this.getInterval() - 1; i++) { if (cursor == null) {