3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 11:45:51 +00:00

Undo a couple of changes to NetworkParameters to fix the bitcoind comparison tool

This commit is contained in:
Mike Hearn 2013-04-01 18:08:14 +01:00
parent 2a33065e31
commit bfd9d81b21

View File

@ -113,12 +113,12 @@ public class NetworkParameters implements Serializable {
/** /**
* Returns the number of blocks between subsidy decreases * 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 * 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 * 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; return subsidyDecreaseBlockCount;
} }
public void setSubsidyDecreaseBlockCount(int value) {
subsidyDecreaseBlockCount = value;
}
/** Returns DNS names that when resolved, give IP addresses of active peers. */ /** Returns DNS names that when resolved, give IP addresses of active peers. */
public String[] getDnsSeeds() { public String[] getDnsSeeds() {
return dnsSeeds; return dnsSeeds;