Vedroid36
8/11/2017 - 6:34 PM

TEST_NET_PARAMS.java

public TestNet3Params() {
    super();
    id = ID_TESTNET;
    // Genesis hash is 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943
    packetMagic = 0x0b110907;
    interval = INTERVAL;
    targetTimespan = TARGET_TIMESPAN;
    maxTarget = Utils.decodeCompactBits(0x1d00ffffL);
    port = 18333;
    addressHeader = 111;
    p2shHeader = 196;
    acceptableAddressCodes = new int[] { addressHeader, p2shHeader };
    dumpedPrivateKeyHeader = 239;
    genesisBlock.setTime(1296688602L);
    genesisBlock.setDifficultyTarget(0x1d00ffffL);
    genesisBlock.setNonce(414098458);
    spendableCoinbaseDepth = 100;
    subsidyDecreaseBlockCount = 210000;
    String genesisHash = genesisBlock.getHashAsString();
    checkState(genesisHash.equals("000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943"));
    alertSigningKey = Utils.HEX.decode("04302390343f91cc401d56d68b123028bf52e5fca1939df127f63c6467cdf9c8e2c14b61104cf817d0b780da337893ecc4aaff1309e536162dabbdb45200ca2b0a");

    dnsSeeds = new String[] {
            "testnet-seed.bitcoin.jonasschnelli.ch", // Jonas Schnelli
            "testnet-seed.bluematt.me",              // Matt Corallo
            "testnet-seed.bitcoin.petertodd.org",    // Peter Todd
            "testnet-seed.bitcoin.schildbach.de",    // Andreas Schildbach
    };
    addrSeeds = null;
    bip32HeaderPub = 0x043587CF;
    bip32HeaderPriv = 0x04358394;

    majorityEnforceBlockUpgrade = TestNet2Params.TESTNET_MAJORITY_ENFORCE_BLOCK_UPGRADE;
    majorityRejectBlockOutdated = TestNet2Params.TESTNET_MAJORITY_REJECT_BLOCK_OUTDATED;
    majorityWindow = TestNet2Params.TESTNET_MAJORITY_WINDOW;
}