Documentation
¶
Index ¶
Constants ¶
const ( DenomuPOKT = "upokt" DenomMACT = "mact" )
TODO_TECHDEBT(@bryanchriswhite): Use this everywhere in the codebase.
const ( AlphaTestNetChainId = "pocket-alpha" BetaTestNetChainId = "pocket-beta" MainNetChainId = "pocket" )
Variables ¶
var EstimatedBlockDurationByChainId = map[string]time.Duration{ AlphaTestNetChainId: AlphaTestNetEstimatedBlockDuration, BetaTestNetChainId: BetaTestNetEstimatedBlockDuration, MainNetChainId: MainNetEstimatedBlockDuration, }
EstimatedBlockDurationByChainId maps chain IDs to their estimated block durations.
- These estimates are derived from the consensus configuration for each network. - Block durations are inferred by averaging the time between recent consecutive blocks. - Estimations consider factors such as:
- network latency
- timeout_commit configuration
- Consult the consensus timeout configurations for further details: https://docs.cometbft.com/v0.38/core/configuration#consensus-timeouts-explained
| Network | timeout_commit | Consensus Config | |---------------|----------------|-----------------------------------------------------------------------------------------------------------| | Alpha TestNet | 1m0s | https://github.com/pokt-network/pocket-network-genesis/blob/master/shannon/testnet-alpha/config.toml#L426 | | Beta TestNet | 5m0s | https://github.com/pokt-network/pocket-network-genesis/blob/master/shannon/testnet-beta/config.toml#L426 | | MainNet | 1m0s | https://github.com/pokt-network/pocket-network-genesis/blob/master/shannon/mainnet/config.toml#L426 |
Functions ¶
This section is empty.
Types ¶
This section is empty.