Commit 82a42317 authored by Daniel Connolly's avatar Daniel Connolly

add test for regtest pow

parent c7411021
package org.bitcoinj.pow;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.pow.factory.RuleCheckerFactory;
import org.junit.Test;
public class POWRulesTest {
private final NetworkParameters regTestParams = NetworkParameters.fromID(NetworkParameters.ID_REGTEST);
// regtest network does not have pow rule
@Test public void testRegtestPOW() throws Exception {
AbstractRuleCheckerFactory ruleCheckerFactory = RuleCheckerFactory.create(regTestParams);
AbstractPowRulesChecker rulesChecker = ruleCheckerFactory.getRuleChecker(null, null);
rulesChecker.checkRules(null, null, null, null);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment