# Functions
ArchiveVersion holds the textual version string used for Geth archives.
DefaultBaseConfig returns a default base configuration for a truechain node.
DefaultConfig returns a default configuration for a truechain node.
DefaultConsensusConfig returns a default configuration for the consensus service.
DefaultFuzzConnConfig returns the default config.
DefaultP2PConfig returns a default configuration for the peer-to-peer layer.
TestBaseConfig returns a base configuration for testing a truechain node.
TestConfig returns a configuration that can be used for testing.
TestConsensusConfig returns a configuration for testing the consensus service.
TestP2PConfig returns a configuration for testing the peer-to-peer layer.
No description provided by the author
# Constants
These are the multipliers for ether denominations.
These are the multipliers for ether denominations.
The cost of a BALANCE operation.
The cost of a BALANCE operation after Tangerine.
No description provided by the author
BloomBitsBlocks is the number of blocks a single bloom bit section vector contains on the server side.
BloomBitsBlocksClient is the number of blocks a single bloom bit section vector contains on the light client side.
BloomConfirms is the number of confirmation blocks before a bloom section is considered probably final and its rotated bits are calculated.
BloomTrieFrequency is the block frequency for creating BloomTrie on both server/client sides.
Price for BLS12-381 elliptic curve G1 point addition.
Price for BLS12-381 elliptic curve G1 point scalar multiplication.
Price for BLS12-381 elliptic curve G2 point addition.
Price for BLS12-381 elliptic curve G2 point scalar multiplication.
Gas price for BLS12-381 mapping field element to G1 operation.
Gas price for BLS12-381 mapping field element to G2 operation.
Base gas price for BLS12-381 elliptic curve pairing check.
Per-point pair gas price for BLS12-381 elliptic curve pairing check.
Gas needed for an elliptic curve addition.
Gas needed for an elliptic curve addition.
Base price for an elliptic curve pairing check.
Base price for an elliptic curve pairing check.
Per-point price for an elliptic curve pairing check.
Per-point price for an elliptic curve pairing check.
Gas needed for an elliptic curve scalar multiplication.
Gas needed for an elliptic curve scalar multiplication.
Maximum depth of call/create stack.
Once per CALL operation & message call transaction.
Static portion of gas for CALL-derivates after EIP 150 (Tangerine).
Paid for CALL when the destination address didn't exist prior.
Free gas given at beginning of call.
Paid for CALL when the value transfer is non-zero.
CHTFrequency is the block frequency for creating CHTs.
CopyGas uint64 = 3 //.
Once per CREATE2 operation Create2Gas uint64 = 32000 // Once per CREATE2 operation.
CreateBySelfdestructGas is used when the refunded account is one that does not exist.
CreateDataGas uint64 = 200 //.
Once per CREATE operation & contract-creation transaction.
These are the multipliers for ether denominations.
Elliptic curve sender recovery gas price.
These are the multipliers for ether denominations.
Duration between proof-of-work epochs.
These are the multipliers for ether denominations.
was raised to 50 during Eip158 (Spurious Dragon).
Times ceil(log256(exponent)) for the EXP instruction.
Once per EXP instruction ExpGas uint64 = 10 // Once per EXP instruction.
Extcodecopy has a dynamic AND a static cost.
No description provided by the author
Cost of EXTCODEHASH (introduced in Constantinople).
Cost of EXTCODEHASH (introduced in Constantinople).
Cost of EXTCODESIZE before EIP 150 (Tangerine).
Cost of EXTCODESIZE after EIP 150 (Tangerine).
These are the multipliers for ether denominations.
FuzzModeDelay is a mode in which we randomly sleep.
FuzzModeDrop is a mode in which we randomly drop reads/writes, connections or sleep.
The bound divisor of the gas limit, used in update calculations.
Gas limit of the Genesis block.
These are the multipliers for ether denominations.
HelperTrieConfirmations is the number of confirmations before a client is expected to have the given HelperTrie available.
HelperTrieProcessConfirmations is the number of confirmations before a HelperTrie is generated.
Base price for a data copy operation.
Per-work price for a data copy operation.
Once per JUMPDEST operation.
Per byte in a LOG* operation's data.
Per LOG* operation.
Multiplied by the * of the LOG*, per LOG transaction.
Maximum bytecode to permit for a contract.
Maximum size extra data may be after Genesis.
Times the address of the (highest referenced byte in memory + 1).
Minimum the gas limit may ever be.
Divisor for the quadratic particle of the big int modular exponentiation.
Once per SSTORE operation from clean non-zero.
Once per SSTORE operation for clearing an originally existing storage slot.
Once per SSTORE operation from dirty.
Once per SSTORE operation from clean zero.
Once per SSTORE operation if the value doesn't change.
Once per SSTORE operation for resetting to the original zero value.
Once per SSTORE operation for resetting to the original non-zero value.
Divisor for the quadratic particle of the memory cost equation.
Base price for a RIPEMD160 operation.
Per-word price for a RIPEMD160 operation.
Cost of SELFDESTRUCT post EIP 150 (Tangerine).
Refunded following a suicide operation.
Base price for a SHA256 operation.
Per-word price for a SHA256 operation.
Once per SHA3 operation.
Once per word of the SHA3 operation's data.
These are the multipliers for ether denominations.
Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added.
No description provided by the author
Cost of SLOAD after EIP 1884 (part of Istanbul).
Cost of SLOAD after EIP 2200 (part of Istanbul).
Once per SSTORE operation for resetting to the original non-zero value.
Once per SSTORE operation if the zeroness doesn't change.
Once per SSTORE operation for clearing an originally existing storage slot.
Once per SSTORE operation if a dirty value is changed.
Once per SSTORE operation for resetting to the original zero value.
Once per SSTORE operation if the value doesn't change.
Once per SSTORE operation if the zeroness changes to zero.
Once per SSTORE operation if the zeroness changes from zero.
Once per SSTORE operation from clean non-zero to something else.
Minimum gas required to be present for an SSTORE call, not consumed.
Once per SLOAD operation.
Once per SSTORE operation from clean zero to non-zero.
Maximum size of VM stack allowed.
These are the multipliers for ether denominations.
Once per operation, for a selection of them.
Per byte of data attached to a transaction that is not equal to zero.
Per byte of data attached to a transaction that equals zero.
Per transaction not creating a contract.
Per transaction that creates a contract.
Major version component of the current release.
Version metadata to append to the version string.
Minor version component of the current release.
Patch version component of the current release.
These are the multipliers for ether denominations.
# Variables
This configuration is intentionally not using keyed fields to force anyone adding flags to the config to also have to set these fields.
Gas discount table for BLS12-381 G1 and G2 multi exponentiation operations.
No description provided by the author
NOTE: Most of the structs & relevant comments + the default configuration options were used to manually generate the config.toml.
DevnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the dev Truechain network.
DevnetChainConfig contains the chain parameters to run a node on the Ropsten test network.
Genesis hashes to enforce below configs on.
TestnetTrustedCheckpoint contains the light client trusted checkpoint for the Ropsten test network.
The bound divisor of the difficulty, used in the update calculations.
.
DiscoveryV5Bootnodes are the enode URLs of the P2P bootstrap nodes for the experimental RLPx v5 topic-discovery network.
No description provided by the author
The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
fruit size threshold for committee election.
No description provided by the author
snail block period number.
No description provided by the author
No description provided by the author
.
No description provided by the author
No description provided by the author
No description provided by the author
difficulty ratio between fruit and snail block.
fruit freshness.
Difficulty of the Genesis block.
calc from the TIP13 by manual.
No description provided by the author
MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the main Truechain network.
MainnetChainConfig is the chain parameters to run a node on the main network.
MainnetCheckpointOracle contains a set of configs for the main network oracle.
Genesis hashes to enforce below configs on.
Genesis hashes to enforce below configs on.
MainnetTrustedCheckpoint contains the light client trusted checkpoint for the main network.
No description provided by the author
No description provided by the author
about 15 days.
No description provided by the author
The minimum that the difficulty may ever be.
No description provided by the author
No description provided by the author
No description provided by the author
about 1.5 days.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TargetGasLimit is the artificial target.
No description provided by the author
TestnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the Ropsten test network.
TestnetChainConfig contains the chain parameters to run a node on the Ropsten test network.
TestnetCheckpointOracle contains a set of configs for the Ropsten test network oracle.
Genesis hashes to enforce below configs on.
Genesis hashes to enforce below configs on.
TestnetTrustedCheckpoint contains the light client trusted checkpoint for the Ropsten test network.
TrustedCheckpoints associates each known checkpoint with the genesis hash of the chain it belongs to.
Version holds the textual version string.
VersionWithMeta holds the textual version string including the metadata.
# Structs
BaseConfig defines the base configuration for a truechain node.
No description provided by the author
ChainConfig is the core config which determines the blockchain settings.
CheckpointOracleConfig represents a set of checkpoint contract(which acts as an oracle) config which used for light client checkpoint syncing.
ConfigCompatError is raised if the locally-stored blockchain is initialised with a ChainConfig that would alter the past.
ConsensusConfig defines the configuration for the truechain consensus service, including timeouts and details about the WAL and the block structure.
FuzzConnConfig is a FuzzedConnection configuration.
MinervaConfig is the consensus engine configs for proof-of-work based sealing.
P2PConfig defines the configuration options for the truechain peer-to-peer networking layer.
Rules wraps ChainConfig and is merely syntatic sugar or can be used for functions that do not have or require information about the block.
Config defines the top level configuration for a truechain node.
TrustedCheckpoint represents a set of post-processed trie roots (CHT and BloomTrie) associated with the appropriate section index and head hash.