|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.bitcoin.core.NetworkParameters
com.google.bitcoin.params.TestNet2Params
com.google.bitcoin.params.RegTestParams
public class RegTestParams
Network parameters for the regression test mode of bitcoind in which all blocks are trivially solvable.
| 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 | |
|---|---|
RegTestParams()
|
|
| Method Summary | |
|---|---|
boolean |
allowEmptyPeerChain()
If we are running in testnet-in-a-box mode, we allow connections to nodes with 0 non-genesis blocks. |
static RegTestParams |
get()
|
Block |
getGenesisBlock()
Genesis block for this chain. |
String |
getPaymentProtocolId()
|
| Methods inherited from class com.google.bitcoin.core.NetworkParameters |
|---|
equals, fromID, fromPmtProtocolID, getAcceptableAddressCodes, getAddressHeader, getAlertSigningKey, getDnsSeeds, getDumpedPrivateKeyHeader, 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 |
|---|
public RegTestParams()
| Method Detail |
|---|
public boolean allowEmptyPeerChain()
NetworkParameters
allowEmptyPeerChain in class NetworkParameterspublic Block getGenesisBlock()
NetworkParametersGenesis block for this chain.
The first block in every chain is a well known constant shared between all Bitcoin implemenetations. For a block to be valid, it must be eventually possible to work backwards to the genesis block by following the prevBlockHash pointers in the block headers.
The genesis blocks for both test and prod networks contain the timestamp of when they were created, and a message in the coinbase transaction. It says, "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks".
getGenesisBlock in class NetworkParameterspublic static RegTestParams get()
public String getPaymentProtocolId()
getPaymentProtocolId in class TestNet2Params
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||