From bfd9d81b214c5be4eea96236ca1fd8b3ca9020c4 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 1 Apr 2013 18:08:14 +0100 Subject: [PATCH] Undo a couple of changes to NetworkParameters to fix the bitcoind comparison tool --- .../java/com/google/bitcoin/core/NetworkParameters.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/core/NetworkParameters.java b/core/src/main/java/com/google/bitcoin/core/NetworkParameters.java index f355a099a..9c1d47695 100644 --- a/core/src/main/java/com/google/bitcoin/core/NetworkParameters.java +++ b/core/src/main/java/com/google/bitcoin/core/NetworkParameters.java @@ -113,12 +113,12 @@ public class NetworkParameters implements Serializable { /** * Returns the number of blocks between subsidy decreases */ - private final int subsidyDecreaseBlockCount; + private /*final*/ int subsidyDecreaseBlockCount; /** * If we are running in testnet-in-a-box mode, we allow connections to nodes with 0 non-genesis blocks */ - final boolean allowEmptyPeerChains; + boolean allowEmptyPeerChains; /** * The version codes that prefix addresses which are acceptable on this network. Although Satoshi intended these to @@ -382,6 +382,10 @@ public class NetworkParameters implements Serializable { return subsidyDecreaseBlockCount; } + public void setSubsidyDecreaseBlockCount(int value) { + subsidyDecreaseBlockCount = value; + } + /** Returns DNS names that when resolved, give IP addresses of active peers. */ public String[] getDnsSeeds() { return dnsSeeds;