cardano-sl-0.4.3: Cardano SL main implementation

Pos.Constants

Description

Constants used by algorithm. See paper for more details. Some constants are parsed at compile-time (see Type). Others are derived from those.

Synopsis

# Constants mentioned in paper

Estimated time needed to broadcast message from one node to all other nodes. Also see ccNetworkDiameter.

# SSC constants

sharedSeedLength :: Integral a => a Source #

Length of shared seed.

Length of interval during which node should send her MPC message. Relevant only for one SSC implementation. Also see ccMpcSendInterval.

# Genesis constants

genesisN :: Integral i => i Source #

See ccGenesisN.

# Other constants

maxLocalTxs :: Integral i => i Source #

Maximum amount of transactions we have in storage (i.e. we can accept without putting them in block). There're next kind of storages in our implementation:

• temporary storage of transactions
• utxo map that corresponds to it
• utxo of blocks in history

This constant is size of first set. Also see ccMaxLocalTxs.

See ccDefaultPeers.

Time-lord node announces system start time by broadcast. She does it during first ccSysTimeBroadcastSlots slots.

vssMaxTTL :: Integral i => i Source #

Max VSS certificate TTL (Ssc.GodTossing part)

vssMinTTL :: Integral i => i Source #

Min VSS certificate TTL (Ssc.GodTossing part)

Maximum amount of headers node can put into headers message while in "after offline" or "recovery" mode. Should be more than blkSecurityParam.

Timeout for caching system. Components that use caching on messages can use this timeout to invalidate caches.

# Delegation

Amount of time we hold confirmations for light PSKs.

# Malicious activity detection constants

Number of slots used by malicious actions detection to check if we are not receiving generated blocks.

Number of epochs used by malicious actions detection to check if our commitments are not included in blockchain.