Constants in peercoin code

From Peercoin Wiki
Jump to: navigation, search

util.h

Name Type Value(s) Description Def Use
COIN int64 1000000 Important to note that it is different from bitcoin where COIN = 100000000 (100x PPC) [1]
CENT int64 10000 [2]

base58.h

Name Type Value(s) Description Def Use
PUBKEY_ADDRESS int 55 addresses begin with 'P' [3]
SCRIPT_ADDRESS int 117 addresses begin with 'p' [4]
PUBKEY_ADDRESS_TEST int 111 [5]
SCRIPT_ADDRESS_TEST int 196 [6]

kernel.h

Name Type Value(s) Description Def Use
MODIFIER_INTERVAL unsigned int 6 * 60 * 60 (=21600) Time to elapse before new modifier is computed in seconds (6 hours for mainnet) [7] [8]
MODIFIER_INTERVAL_RATIO unsigned int 3 Ratio of group interval length between the last group and the first group (needs more detailed explanation) [9] [10]

main.h

Name Type Value(s) Description Def Use
MAX_BLOCK_SIZE unsigned int 1000000 [11]
MAX_BLOCK_SIZE_GEN unsigned int MAX_BLOCK_SIZE/2 [12]
MAX_BLOCK_SIGOPS unsigned int MAX_BLOCK_SIZE/50 [13]
MAX_ORPHAN_TRANSACTIONS unsigned int MAX_BLOCK_SIZE/100 [14]
MIN_TX_FEE int64 CENT [15]
MIN_RELAY_TX_FEE int64 CENT [16]
MAX_MONEY int64 2000000000 * COIN [17]
MAX_MINT_PROOF_OF_WORK int64 9999 * COIN [18]
MIN_TXOUT_AMOUNT int64 MIN_TX_FEE [19]
COINBASE_MATURITY_PPC int 500 Min age (blocks) before coinbase/coinstake outputs can be spent [20][21]
LOCKTIME_THRESHOLD int 500000000 Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp. // Tue Nov 5 00:53:20 1985 UTC [22]
STAKE_TARGET_SPACING int 10 * 60 10-minute block spacing [23]
STAKE_MIN_AGE int 60 * 60 * 24 * 30 minimum age for coin age (30 days) [24]
STAKE_MAX_AGE int 60 * 60 * 24 * 90 stake age of full weight (90 days) [25] [26]
nMaxClockDrift int64 2 * 60 * 60 two hours [27] [28] [29] [30]
nMedianTimeSpan enum 11 11 blocks [31] [32]
BLOCK_PROOF_OF_STAKE int (1 << 0) Flag indicating that block is proof-of-stake block [33] [34]
BLOCK_STAKE_ENTROPY int (1 << 1) Flag indicating entropy bit for stake modifier [35] [36]
BLOCK_STAKE_MODIFIER int (1 << 2) Flag indicating that block has regenerated stake modifier [37] [38]

main.cpp

Name Type Value(s) Description Def Use
nTargetTimespan int64 7 * 24 * 60 * 60 one week [39] [40]
nTargetSpacingWorkMax int64 12 * STAKE_TARGET_SPACING two hours [41] [42]

Links


Developers, come join us on the Freenode #peercoin-wizards IRC channel!