Package org.bitcoinj.params
Class RegTestParams
java.lang.Object
org.bitcoinj.core.NetworkParameters
org.bitcoinj.params.AbstractBitcoinNetParams
org.bitcoinj.params.RegTestParams
Network parameters for the regression test mode of bitcoind in which all blocks are trivially solvable.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bitcoinj.core.NetworkParameters
NetworkParameters.ProtocolVersion -
Field Summary
Fields inherited from class org.bitcoinj.params.AbstractBitcoinNetParams
BITCOIN_SCHEME, genesisBlock, REWARD_HALVING_INTERVALFields inherited from class org.bitcoinj.core.NetworkParameters
addressHeader, addrSeeds, BIP16_ENFORCE_TIME, bip32HeaderP2PKHpriv, bip32HeaderP2PKHpub, bip32HeaderP2WPKHpriv, bip32HeaderP2WPKHpub, checkpoints, defaultSerializer, dnsSeeds, dumpedPrivateKeyHeader, httpSeeds, id, ID_MAINNET, ID_REGTEST, ID_TESTNET, ID_UNITTESTNET, interval, INTERVAL, majorityEnforceBlockUpgrade, majorityRejectBlockOutdated, majorityWindow, 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, segwitAddressHrp, spendableCoinbaseDepth, subsidyDecreaseBlockCount, TARGET_SPACING, TARGET_TIMESPAN, targetTimespan -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf we are running in testnet-in-a-box mode, we allow connections to nodes with 0 non-genesis blocks.static RegTestParamsget()Genesis block for this chain.Methods inherited from class org.bitcoinj.params.AbstractBitcoinNetParams
checkDifficultyTransitions, getBlockInflation, getMaxMoney, getMinNonDustOutput, getMonetaryFormat, getProtocolVersionNum, getSerializer, getUriScheme, hasMaxMoney, isDifficultyTransitionPoint, isRewardHalvingPointMethods inherited from class org.bitcoinj.core.NetworkParameters
equals, fromID, fromPmtProtocolID, getAddressHeader, getAddrSeeds, getBip32HeaderP2PKHpriv, getBip32HeaderP2PKHpub, getBip32HeaderP2WPKHpriv, getBip32HeaderP2WPKHpub, getBlockVerificationFlags, getDefaultSerializer, getDnsSeeds, getDumpedPrivateKeyHeader, getHttpSeeds, getId, getInterval, getMajorityEnforceBlockUpgrade, getMajorityRejectBlockOutdated, getMajorityWindow, getMaxTarget, getP2SHHeader, getPacketMagic, getPort, getSegwitAddressHrp, getSpendableCoinbaseDepth, getSubsidyDecreaseBlockCount, getTargetTimespan, getTransactionVerificationFlags, hashCode, isCheckpoint, passesCheckpoint
-
Constructor Details
-
RegTestParams
public RegTestParams()
-
-
Method Details
-
allowEmptyPeerChain
public boolean allowEmptyPeerChain()Description copied from class:NetworkParametersIf we are running in testnet-in-a-box mode, we allow connections to nodes with 0 non-genesis blocks.- Overrides:
allowEmptyPeerChainin classNetworkParameters
-
get
-
getGenesisBlock
Description copied from class:NetworkParametersGenesis block for this chain.
The first block in every chain is a well known constant shared between all Bitcoin implementations. 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".
- Specified by:
getGenesisBlockin classNetworkParameters
-
getPaymentProtocolId
- Specified by:
getPaymentProtocolIdin classNetworkParameters
-