com.google.bitcoin.params
Class UnitTestParams

java.lang.Object
  extended by com.google.bitcoin.core.NetworkParameters
      extended by com.google.bitcoin.params.UnitTestParams
All Implemented Interfaces:
Serializable

public class UnitTestParams
extends NetworkParameters

Network parameters used by the bitcoinj unit tests (and potentially your own). This lets you solve a block using Block.solve() by setting difficulty to the easiest possible.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.google.bitcoin.core.NetworkParameters
acceptableAddressCodes, addressHeader, alertSigningKey, BIP16_ENFORCE_TIME, checkpoints, dnsSeeds, dumpedPrivateKeyHeader, genesisBlock, id, ID_MAINNET, ID_TESTNET, ID_UNITTESTNET, interval, INTERVAL, MAX_MONEY, p2shHeader, packetMagic, PAYMENT_PROTOCOL_ID_MAINNET, PAYMENT_PROTOCOL_ID_TESTNET, port, proofOfWorkLimit, PROTOCOL_VERSION, SATOSHI_KEY, spendableCoinbaseDepth, subsidyDecreaseBlockCount, TARGET_SPACING, TARGET_TIMESPAN, targetTimespan
 
Constructor Summary
UnitTestParams()
           
 
Method Summary
static UnitTestParams get()
           
 String getPaymentProtocolId()
           
 
Methods inherited from class com.google.bitcoin.core.NetworkParameters
allowEmptyPeerChain, equals, fromID, fromPmtProtocolID, getAcceptableAddressCodes, getAddressHeader, getAlertSigningKey, getDnsSeeds, getDumpedPrivateKeyHeader, getGenesisBlock, getId, getInterval, getP2SHHeader, getPacketMagic, getPort, getProofOfWorkLimit, getSpendableCoinbaseDepth, getSubsidyDecreaseBlockCount, getTargetTimespan, hashCode, isCheckpoint, passesCheckpoint, prodNet, regTests, testNet, testNet2, testNet3, unitTests
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitTestParams

public UnitTestParams()
Method Detail

get

public static UnitTestParams get()

getPaymentProtocolId

public String getPaymentProtocolId()
Specified by:
getPaymentProtocolId in class NetworkParameters


Copyright © 2014. All rights reserved.