Module: protocol/networks

Members

(static, constant) activationThreshold :Number

For versionbits.

Type:
  • Number
Default Value:
  • 1916
Source:

(static, constant) addressPrefix :String

Address prefix.

Type:
  • String
Source:

(static) block :Number

Block constants.

Type:
  • Number
Properties:
Name Type Description
pruneAfterHeight Number

Safe height to start pruning.

keepBlocks Number

Safe number of blocks to keep.

maxTipAge Number

Age used for the time delta to determine whether the chain is synced.

slowHeight Number

Height at which block processing is slow enough that we can output logs without spamming.

Default Value:
  • {"pruneAfterHeight":1000,"keepBlocks":288,"maxTipAge":"","slowHeight":0}
Source:

(static, constant) brontidePort :Number

Default brontide port.

Type:
  • Number
Default Value:
  • 44806
Source:

(static, constant) checkpointMap :Object

Checkpoint block list.

Type:
  • Object
Source:

(static, constant) claimPrefix :String

DNSSEC ownership prefix.

Type:
  • String
Source:

(static, constant) coinbaseMaturity :Number

Number of blocks before a coinbase spend can occur (consensus).

Type:
  • Number
Default Value:
  • 100
Source:

(static, constant) deflationHeight :Number

Activation height for inflation bug fix.

Type:
  • Number
Source:

(static, constant) deployments :Object

Deployments for versionbits.

Type:
  • Object
Default Value:
  • {"hardening":"","icannlockup":"","testdummy":""}
Source:

(static, constant) deploys :Array

Deployments for versionbits (array form, sorted).

Type:
  • Array
Default Value:
  • ["main.deployments.hardening","main.deployments.icannlockup","main.deployments.testdummy"]
Source:

(static, constant) feeRate :Rate

Default normal relay rate.

Type:
Default Value:
  • 100000
Source:

(static, constant) genesis :Object

Genesis block header.

Type:
  • Object
Source:

(static, constant) genesisBlock :String

The network's genesis block in a hex string.

Type:
  • String
Source:

(static) goosigStop

Block height at which GooSig claims are disabled. This limits risk associated with newly discovered cryptography attacks or social engineering attacks.

Estimated to be disabled at 1 year + 1 month from the start of the network on mainnet.

Source:

(static, constant) halvingInterval :Number

Reward halving interval. Roughly every 3.25 years.

Type:
  • Number
Default Value:
  • 170000
Source:

(static, constant) identityKey :Buffer|null

Default identity key (testing only).

Type:
  • Buffer | null
Source:

(static) keyPrefix :Number

Key prefixes.

Type:
  • Number
Properties:
Name Type Description
privkey Number
xpubkey Number
xprivkey Number
xpubkey58 Number
xprivkey58 Number
coinType Number
Default Value:
  • {"privkey":128,"xpubkey":76067358,"xprivkey":76066276,"xpubkey58":"xpub","xprivkey58":"xprv","coinType":5353}
Source:

(static, constant) lastCheckpoint :Number

Last checkpoint height.

Type:
  • Number
Default Value:
  • 160000
Source:

(static, constant) magic :Number

Packet magic number.

Type:
  • Number
Source:

(static, constant) maxFeeRate :Rate

Maximum normal relay rate.

Type:
Default Value:
  • 400000
Source:

(static, constant) minerWindow :Number

Confirmation window for versionbits.

Type:
  • Number
Default Value:
  • 2016
Source:

(static, constant) minRelay :Rate

Default min relay rate.

Type:
Default Value:
  • 1000
Source:

(static) names :Number

Name-related constants.

Type:
  • Number
Properties:
Name Type Description
auctionStart Number

Height at which the auction system activates. Must be greater or equal to txStart.

rolloutInterval Number

Interval at which names are rolled out.

lockupPeriod Number

Amount of time a name is locked for after being claimed.

renewalWindow Number

Time period after which names expire.

renewalPeriod Number

Committed renewal block hashes must be no older than this.

renewalMaturity Number

Committed renewal block hashes must be at least this old.

claimPeriod Number

The time window in which the nameholders can claim reserved names.

alexaLockupPeriod Number

The time window which the names will be locked before release or hard fork.

claimFrequency Number

Amount of time required in between replacement claims.

biddingPeriod Number

Bidding time period.

revealPeriod Number

Reveal time period.

treeInterval Number

Interval at which the name tree is updated.

transferLockup Number

Amount of time transfers are locked up for.

revocationDelay Number

Amount of time before a transfer or revocation is possible.

auctionMaturity Number

Sum of total period and revocation delay.

noRollout Boolean

Whether there is no weekly rollout.

noReserved Boolean

Whether there are no names reserved.

Default Value:
  • {"auctionStart":"","rolloutInterval":"","lockupPeriod":"","renewalWindow":"","renewalPeriod":"","renewalMaturity":"","claimPeriod":"","alexaLockupPeriod":"","claimFrequency":"","biddingPeriod":"","revealPeriod":"","treeInterval":"","transferLockup":"","revocationDelay":"","auctionMaturity":"","noRollout":false,"noReserved":false}
Source:

(static, constant) network.types :Array.<String>

Network type list.

Type:
  • Array.<String>
Default Value:
  • ["main","testnet","regtest","simnet"]
Source:

(static, constant) nsPort :Number

Default DNS port.

Type:
  • Number
Default Value:
  • 5349
Source:

(static, constant) port :Number

Default network port.

Type:
  • Number
Default Value:
  • 12038
Source:

(static) pow :Number

POW-related constants.

Type:
  • Number
Default Value:
  • {}
Source:

(static, constant) pow.bits :Number

Compact pow limit.

Type:
  • Number
Default Value:
  • 469827583
Source:

(static, constant) pow.blocksPerDay :Number

Average blocks per day.

Type:
  • Number
Source:

(static, constant) pow.chainwork :BN

Minimum chainwork for best chain.

Type:
Source:

(static, constant) pow.limit :BN

Default target.

Type:
Source:

(static, constant) pow.maxActual :Number

Maximum actual time.

Type:
  • Number
Source:

(static, constant) pow.minActual :Number

Minimum actual time.

Type:
  • Number
Source:

(static, constant) pow.noRetargeting :Boolean

Do not allow retargetting.

Type:
  • Boolean
Source:

(static, constant) pow.targetReset :Boolean

Whether to reset target if a block has not been mined recently.

Type:
  • Boolean
Source:

(static, constant) pow.targetSpacing :Number

Average block time.

Type:
  • Number
Source:

(static, constant) pow.targetTimespan :Number

Desired retarget period in seconds.

Type:
  • Number
Source:

(static, constant) pow.targetWindow :Number

Retarget window in blocks.

Type:
  • Number
Default Value:
  • 144
Source:

(static, constant) requestMempool :Boolean

Whether to request mempool on sync.

Type:
  • Boolean
Source:

(static, constant) requireStandard :Boolean

Default value for whether the mempool accepts non-standard transactions.

Type:
  • Boolean
Default Value:
  • true
Source:

(static, constant) rpcPort :Number

Default http port.

Type:
  • Number
Default Value:
  • 12037
Source:

(static, constant) rsPort :Number

Default recursive DNS port.

Type:
  • Number
Default Value:
  • 5350
Source:

(static, constant) seeds :Array.<String>

Default DNS seeds.

Type:
  • Array.<String>
Default Value:
  • ["hs-mainnet.bcoin.ninja","seed.easyhandshake.com"]
Source:

(static, constant) selfConnect :Boolean

Whether to allow self-connection.

Type:
  • Boolean
Source:

(static, constant) txStart :Number

Prohibit all transactions until sufficient chainwork has been accumulated.

Type:
  • Number
Source:

(static, constant) type :String

Symbolic network type.

Type:
  • String
Default Value:
  • main
Source:

(static, constant) walletPort :Number

Default wallet port.

Type:
  • Number
Default Value:
  • 12039
Source: