Skip to content

Commit c8f2407

Browse files
Update MainNetParams.java
1 parent 25454bd commit c8f2407

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

core/src/main/java/org/bitcoinj/params/MainNetParams.java

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public class MainNetParams extends AbstractBitcoinNetParams {
3535
public static final int MAINNET_MAJORITY_WINDOW = 1000;
3636
public static final int MAINNET_MAJORITY_REJECT_BLOCK_OUTDATED = 950;
3737
public static final int MAINNET_MAJORITY_ENFORCE_BLOCK_UPGRADE = 750;
38-
private static final long GENESIS_TIME = 1231006505;
39-
private static final long GENESIS_NONCE = 2083236893;
40-
private static final Sha256Hash GENESIS_HASH = Sha256Hash.wrap("000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f");
38+
private static final long GENESIS_TIME = 1570073000;
39+
private static final long GENESIS_NONCE = 53681;
40+
private static final Sha256Hash GENESIS_HASH = Sha256Hash.wrap("37540c3c757bb77e42c168d8197447b6aba38c2d1ec0ddf59d2e774c41953093");
4141

4242
public MainNetParams() {
4343
super();
@@ -46,11 +46,11 @@ public MainNetParams() {
4646
targetTimespan = TARGET_TIMESPAN;
4747
maxTarget = Utils.decodeCompactBits(Block.STANDARD_MAX_DIFFICULTY_TARGET);
4848

49-
port = 8333;
50-
packetMagic = 0xf9beb4d9L;
51-
dumpedPrivateKeyHeader = 128;
52-
addressHeader = 0;
53-
p2shHeader = 5;
49+
port = 65000;
50+
packetMagic = 0xeeaeeacc;
51+
dumpedPrivateKeyHeader = 00e4;
52+
addressHeader = 64;
53+
p2shHeader = 28;
5454
segwitAddressHrp = "bc";
5555
spendableCoinbaseDepth = 100;
5656
bip32HeaderP2PKHpub = 0x0488b21e; // The 4 byte header that serializes in base58 to "xpub".
@@ -66,21 +66,16 @@ public MainNetParams() {
6666
// transactions are handled. Duplicated transactions could occur in the case where a coinbase had the same
6767
// extraNonce and the same outputs but appeared at different heights, and greatly complicated re-org handling.
6868
// Having these here simplifies block connection logic considerably.
69-
checkpoints.put(91722, Sha256Hash.wrap("00000000000271a2dc26e7667f8419f2e15416dc6955e5a6c6cdf3f2574dd08e"));
70-
checkpoints.put(91812, Sha256Hash.wrap("00000000000af0aed4792b1acee3d966af36cf5def14935db8de83d6f9306f2f"));
71-
checkpoints.put(91842, Sha256Hash.wrap("00000000000a4d0a398161ffc163c503763b1f4360639393e0e4c8e300e0caec"));
72-
checkpoints.put(91880, Sha256Hash.wrap("00000000000743f190a18c5577a3c2d2a1f610ae9601ac046a38084ccb7cd721"));
73-
checkpoints.put(200000, Sha256Hash.wrap("000000000000034a7dedef4a161fa058a2d67a173a90155f3a2fe6fc132e0ebf"));
74-
69+
checkpoints.put(1129972 , Sha256Hash.wrap("000000010119c3911db2a832ffe983f883591669767b09ffde3756ad5e2940e6"));
70+
7571
dnsSeeds = new String[] {
76-
"seed.bitcoin.sipa.be", // Pieter Wuille
77-
"dnsseed.bluematt.me", // Matt Corallo
78-
"dnsseed.bitcoin.dashjr.org", // Luke Dashjr
79-
"seed.bitcoinstats.com", // Chris Decker
80-
"seed.bitcoin.jonasschnelli.ch",// Jonas Schnelli
81-
"seed.btc.petertodd.org", // Peter Todd
82-
"seed.bitcoin.sprovoost.nl", // Sjors Provoost
83-
"dnsseed.emzy.de", // Stephan Oeste
72+
"161.35.101.221:65000", // Pieter Wuille
73+
"161.35.101.221:65000", // Matt Corallo
74+
"95.217.95.251:65000", // Luke Dashjr
75+
"207.180.231.183:65000", // Chris Decker
76+
"95.216.234.131:65000",// Jonas Schnelli
77+
"138.201.4.28:65000", // Peter Todd
78+
8479
};
8580
httpSeeds = new HttpDiscovery.Details[] {
8681
// Andreas Schildbach

0 commit comments

Comments
 (0)