public abstract class AbstractBitcoinNetParams extends NetworkParameters
NetworkParameters.ProtocolVersion| Modifier and Type | Field and Description |
|---|---|
static String |
BITCOIN_SCHEME
Scheme part for Bitcoin URIs.
|
acceptableAddressCodes, addressHeader, addrSeeds, alertSigningKey, BIP16_ENFORCE_TIME, bip32HeaderPriv, bip32HeaderPub, checkpoints, defaultSerializer, dnsSeeds, dumpedPrivateKeyHeader, genesisBlock, 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, SATOSHI_KEY, spendableCoinbaseDepth, subsidyDecreaseBlockCount, TARGET_SPACING, TARGET_TIMESPAN, targetTimespan| Constructor and Description |
|---|
AbstractBitcoinNetParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDifficultyTransitions(StoredBlock storedPrev,
Block nextBlock,
BlockStore blockStore)
Throws an exception if the block's difficulty is not correct.
|
Coin |
getMaxMoney()
Returns the number of coins that will be produced in total, on this
network.
|
Coin |
getMinNonDustOutput()
Any standard (ie pay-to-address) output smaller than this value will
most likely be rejected by the network.
|
MonetaryFormat |
getMonetaryFormat()
The monetary object for this currency.
|
int |
getProtocolVersionNum(NetworkParameters.ProtocolVersion version) |
BitcoinSerializer |
getSerializer(boolean parseRetain)
Construct and return a custom serializer.
|
String |
getUriScheme()
Scheme part for URIs, for example "bitcoin".
|
boolean |
hasMaxMoney()
Returns whether this network has a maximum number of coins (finite supply) or
not.
|
protected boolean |
isDifficultyTransitionPoint(StoredBlock storedPrev)
Checks if we are at a difficulty transition point.
|
allowEmptyPeerChain, equals, fromID, fromPmtProtocolID, getAcceptableAddressCodes, getAddressHeader, getAddrSeeds, getAlertSigningKey, getBip32HeaderPriv, getBip32HeaderPub, getBlockVerificationFlags, getDefaultSerializer, getDnsSeeds, getDumpedPrivateKeyHeader, getGenesisBlock, getHttpSeeds, getId, getInterval, getMajorityEnforceBlockUpgrade, getMajorityRejectBlockOutdated, getMajorityWindow, getMaxTarget, getP2SHHeader, getPacketMagic, getPaymentProtocolId, getPort, getSpendableCoinbaseDepth, getSubsidyDecreaseBlockCount, getTargetTimespan, getTransactionVerificationFlags, hashCode, isCheckpoint, passesCheckpoint, prodNet, regTests, testNet, testNet2, testNet3, unitTestspublic static final String BITCOIN_SCHEME
protected boolean isDifficultyTransitionPoint(StoredBlock storedPrev)
storedPrev - The previous stored blockpublic void checkDifficultyTransitions(StoredBlock storedPrev, Block nextBlock, BlockStore blockStore) throws VerificationException, BlockStoreException
NetworkParameterscheckDifficultyTransitions in class NetworkParametersVerificationException - if the block's difficulty is not correct.BlockStoreExceptionpublic Coin getMaxMoney()
NetworkParametersgetMaxMoney in class NetworkParameterspublic Coin getMinNonDustOutput()
NetworkParametersgetMinNonDustOutput in class NetworkParameterspublic MonetaryFormat getMonetaryFormat()
NetworkParametersgetMonetaryFormat in class NetworkParameterspublic int getProtocolVersionNum(NetworkParameters.ProtocolVersion version)
getProtocolVersionNum in class NetworkParameterspublic BitcoinSerializer getSerializer(boolean parseRetain)
NetworkParametersgetSerializer in class NetworkParameterspublic String getUriScheme()
NetworkParametersgetUriScheme in class NetworkParameterspublic boolean hasMaxMoney()
NetworkParametershasMaxMoney in class NetworkParametersCopyright © 2018. All rights reserved.