public class RegTestParams extends TestNet2Params
BITCOIN_SCHEMEacceptableAddressCodes, addressHeader, addrSeeds, alertSigningKey, BIP16_ENFORCE_TIME, bip32HeaderPriv, bip32HeaderPub, checkpoints, dnsSeeds, dumpedPrivateKeyHeader, genesisBlock, httpSeeds, id, ID_MAINNET, ID_REGTEST, ID_TESTNET, ID_UNITTESTNET, interval, INTERVAL, MAX_COINS, MAX_MONEY, maxTarget, p2shHeader, packetMagic, PAYMENT_PROTOCOL_ID_MAINNET, PAYMENT_PROTOCOL_ID_REGTEST, PAYMENT_PROTOCOL_ID_TESTNET, PAYMENT_PROTOCOL_ID_UNIT_TESTS, port, PROTOCOL_VERSION, SATOSHI_KEY, spendableCoinbaseDepth, subsidyDecreaseBlockCount, TARGET_SPACING, TARGET_TIMESPAN, targetTimespan| Constructor and Description |
|---|
RegTestParams() |
| Modifier and Type | Method and Description |
|---|---|
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() |
checkDifficultyTransitions, getMaxMoney, getMinNonDustOutput, getMonetaryFormat, getUriScheme, hasMaxMoney, isDifficultyTransitionPointequals, fromID, fromPmtProtocolID, getAcceptableAddressCodes, getAddressHeader, getAddrSeeds, getAlertSigningKey, getBip32HeaderPriv, getBip32HeaderPub, getDnsSeeds, getDumpedPrivateKeyHeader, getHttpSeeds, getId, getInterval, getMaxTarget, getP2SHHeader, getPacketMagic, getPort, getSpendableCoinbaseDepth, getSubsidyDecreaseBlockCount, getTargetTimespan, hashCode, isCheckpoint, passesCheckpoint, prodNet, regTests, testNet, testNet2, testNet3, unitTestspublic boolean allowEmptyPeerChain()
NetworkParametersallowEmptyPeerChain 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 main 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 TestNet2ParamsCopyright © 2015. All rights reserved.