@Test public void isDifficultyTransitionPoint() { assertFalse(BITCOIN_PARAMS.isDifficultyTransitionPoint(2014)); assertTrue(BITCOIN_PARAMS.isDifficultyTransitionPoint(2015)); assertFalse(BITCOIN_PARAMS.isDifficultyTransitionPoint(2016)); }
public final boolean isDifficultyTransitionPoint(final int previousHeight) { return ((previousHeight + 1) % this.getInterval()) == 0; }
AbstractBitcoinNetParams extends NetworkParameters { public final boolean isDifficultyTransitionPoint(final int previousHeight) { return ((previousHeight + 1) % this.getInterval()) == 0; } }
AbstractBitcoinNetParams extends NetworkParameters { public final boolean isDifficultyTransitionPoint(final int previousHeight) { return ((previousHeight + 1) % this.getInterval()) == 0; } AbstractBitcoinNetParams(); }
AbstractBitcoinNetParams extends NetworkParameters { public final boolean isDifficultyTransitionPoint(final int previousHeight) { return ((previousHeight + 1) % this.getInterval()) == 0; } AbstractBitcoinNetParams(); final boolean isRewardHalvingPoint(final int previousHeight); Coin getBlockInflation(int height); final boolean isDifficultyTransitionPoint(final int previousHeight); @Override void checkDifficultyTransitions(final StoredBlock storedPrev, final Block nextBlock,
        final BlockStore blockStore); @Override Coin getMaxMoney(); @Override @Deprecated Coin getMinNonDustOutput(); @Override MonetaryFormat getMonetaryFormat(); @Override int getProtocolVersionNum(final ProtocolVersion version); @Override BitcoinSerializer getSerializer(boolean parseRetain); @Override String getUriScheme(); @Override boolean hasMaxMoney(); }
AbstractBitcoinNetParams extends NetworkParameters { public final boolean isDifficultyTransitionPoint(final int previousHeight) { return ((previousHeight + 1) % this.getInterval()) == 0; } AbstractBitcoinNetParams(); final boolean isRewardHalvingPoint(final int previousHeight); Coin getBlockInflation(int height); final boolean isDifficultyTransitionPoint(final int previousHeight); @Override void checkDifficultyTransitions(final StoredBlock storedPrev, final Block nextBlock,
        final BlockStore blockStore); @Override Coin getMaxMoney(); @Override @Deprecated Coin getMinNonDustOutput(); @Override MonetaryFormat getMonetaryFormat(); @Override int getProtocolVersionNum(final ProtocolVersion version); @Override BitcoinSerializer getSerializer(boolean parseRetain); @Override String getUriScheme(); @Override boolean hasMaxMoney(); static final String BITCOIN_SCHEME; static final int REWARD_HALVING_INTERVAL; }