# Functions

No description provided by the author

# Constants

The cost of a BALANCE operation after Tangerine.
The cost of a BALANCE operation after EIP 1884 (part of Istanbul).
The cost of a BALANCE operation.
for bernard.
TESTING: For the full node to synchronize the models, in bernard testnet.
Gas consumption of a single data blob (== blob byte size).
Controls the maximum rate of change for blob gas price.
Size in bytes of a field element.
Number of field elements stored in a single data blob.
Minimum gas price for data blobs.
Gas price for the point evaluation precompile.
Target consumable blob gas for data blobs per block (for 1559-like pricing).
Upon the generation of a new valid block, 64kB file quota is added to the network.
BloomBitsBlocks is the number of blocks a single bloom bit section vector contains on the server side.
BloomConfirms is the number of confirmation blocks before a bloom section is considered probably final and its rotated bits are calculated.
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.
Byzantium gas needed for an elliptic curve addition.
Gas needed for an elliptic curve addition.
Byzantium base price for an elliptic curve pairing check.
Base price for an elliptic curve pairing check.
Byzantium per-point price for an elliptic curve pairing check.
Per-point price for an elliptic curve pairing check.
Byzantium 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).
Once per CALL operation & message call transaction.
Base gas for call infer.
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.
No description provided by the author
COLD_ACCOUNT_ACCESS_COST.
COLD_SLOAD_COST.
.
These are the multipliers for ctxcer denominations.
Once per CREATE2 operation.
CreateBySelfdestructGas is used when the refunded account is one that does not exist.
200.
Once per CREATE operation & contract-creation transaction.
Default upload bytes.
for dolores.
TESTING: For the full node to synchronize the models, in dolores testnet.
Elliptic curve sender recovery gas price.
Duration between proof-of-work epochs.
was raised to 50 during Eip158 (Spurious Dragon).
was set to 10 in Frontier.
Times ceil(log256(exponent)) for the EXP instruction.
Once per EXP instruction.
TESTING: Model expire blocks.
No description provided by the author
Extcodecopy has a dynamic AND a static cost.
Cost of EXTCODEHASH (introduced in Constantinople).
Cost of EXTCODEHASH after EIP 1884 (part in Istanbul).
Cost of EXTCODESIZE after EIP 150 (Tangerine).
Cost of EXTCODESIZE before EIP 150 (Tangerine).
No description provided by the author
The bound divisor of the gas limit, used in update calculations.
Gas limit of the Genesis block.
These are the multipliers for ctxcer denominations.
No description provided by the author
Base price for a data copy operation.
Per-work price for a data copy operation.
Check section:212 6979583 Check section:213 7012351 Check section:214 7045119 Check section:215 7077887 Check section:216 7110655 Check section:217 7143423 Check section:218 7176191 Check section:219 7208959 Check section:220 7241727 Check section:221 7274495 Check section:222 7307263 Check section:223 7340031 Check section:224 7372799 Check section:225 7405567 Check section:226 7438335 Check section:227 7471103 Check section:228 7503871 Check section:229 7536639 Check section:230 7569407 Check section:231 7602175 Check section:232 7634943 Check section:233 7667711 Check section:234 7700479 Check section:235 7733247 Check section:236 7766015 Check section:237 7798783 Check section:238 7831551 Check section:239 7864319 Check section:240 7897087 Check section:241 7929855 Check section:242 7962623 Check section:243 7995391 Check section:244 8028159 Check section:245 8060927 Check section:246 8093695 Check section:247 8126463 Check section:248 8159231 Check section:249 8191999 Check section:250 8224767 Check section:251 8257535 Check section:252 8290303 Check section:253 8323071 Check section:254 8355839 Check section:255 8388607 Check section:256 8421375 Check section:257 8454143 Check section:258 8486911 Check section:259 8519679 Check section:260 8552447 Check section:261 8585215 Check section:262 8617983 Check section:263 8650751 Check section:264 8683519 Check section:265 8716287 Check section:266 8749055 Check section:267 8781823 Check section:268 8814591 Check section:269 8847359 Check section:270 8880127 Check section:271 8912895 Check section:272 8945663 Check section:273 8978431 Check section:274 9011199 Check section:275 9043967 Check section:276 9076735 Check section:277 9109503 Check section:278 9142271 Check section:279 9175039 Check section:280 9207807 Check section:281 9240575 Check section:282 9273343 Check section:283 9306111 Check section:284 9338879 Check section:285 9371647 Check section:286 9404415 Check section:287 9437183 Check section:288 9469951 Check section:289 9502719 Check section:290 9535487 Check section:291 9568255 Check section:292 9601023 Check section:293 9633791 Check section:294 9666559 Check section:295 9699327 Check section:296 9732095 Check section:297 9764863 */.
1 gas infer 10000 ops.
Refunded gas, once per SSTORE operation if the zeroness changes to zero.
Per byte in a LOG* operation's data.
Per LOG* operation.
Multiplied by the * of the LOG*, per LOG transaction.
Blocks between model uploading tx and model ready for use.
Maximum consumable blob gas for data blobs per block.
Maximum bytecode to permit for a contract.
Maximum the gas limit (2^63-1).
Maximum size extra data may be after Genesis.
Maximum initcode to permit in a creation transaction and create instructions.
Times the address of the (highest referenced byte in memory + 1).
No description provided by the author
No description provided by the author
Minimum the gas limit may ever be.
Max gas limit for a model inference's reward to the author.
No description provided by the author
Maximum size of a model.
Minimum size of a model.
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.
Step of each progress update about how many bytes per upload tx.
Divisor for the quadratic particle of the memory cost equation.
The Refund Quotient is the cap on how much of the used gas can be refunded.
No description provided by the author
Base price for a RIPEMD160 operation.
Per-word price for a RIPEMD160 operation.
TESTING: for torrent seed spreading.
Cost of SELFDESTRUCT post EIP 150 (Tangerine).
Refunded following a selfdestruct 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.
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).
No description provided by the author
No description provided by the author
Once per SSTORE operation if the zeroness doesn't change.
Once per SSTORE operation for clearing an originally existing storage slot.
In EIP-2200: SstoreResetGas was 5000.
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.
Refunded following a suicide operation.
Once per operation, for a selection of them.
Per address specified in EIP 2930 access list.
Per storage key specified in EIP 2930 access list.
Per byte of non zero data attached to a transaction after EIP 2028 (part in Istanbul).
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.
555555.
WARM_STORAGE_READ_COST.
These are the multipliers for ctxcer denominations.

# Variables

AllCliqueProtocolChanges contains every protocol change (EIPs) introduced and accepted by the Cortex core developers into the Clique consensus.
AllCuckooProtocolChanges contains every protocol change (EIPs) introduced and accepted by the Cortex core developers into the Cuckoo consensus.
TESTING: for testnet Bernard.
TestnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the Bernard test network.
TestnetChainConfig contains the chain parameters to run a node on the Bernard test network.
Genesis hashes to enforce below configs on.
No description provided by the author
Bls12381G1MultiExpDiscountTable is the gas discount table for BLS12-381 G1 multi exponentiation operation.
Bls12381G2MultiExpDiscountTable is the gas discount table for BLS12-381 G2 multi exponentiation operation.
No description provided by the author
Halving every four years: 365 days*24 hours*60 minutes*4 blocks*4 years=8409600.
No description provided by the author
No description provided by the author
|CTXC_INIT|: For Pre-Allocated CTXCs before Mainnet launch.
|CTXC_MINING|: For mining.
For Mainnet |CTXC_TOP|: Total Amount of Cortex Coin(CTXC) is lightspeed in vacuum: 299792458 m/s.
The bound divisor of the difficulty, used in the update calculations.
No description provided by the author
No description provided by the author
TESTING: for testnet Dolores.
No description provided by the author
TestnetChainConfig contains the chain parameters to run a node on the Dolores test network.
Genesis hashes to enforce below configs on.
No description provided by the author
The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
TestnetChainConfig contains the chain parameters to run a node on the flood test network.
GasTableConstantinople contain the gas re-prices for the constantinople phase.
GasTableEIP150 contain the gas re-prices for the EIP150 phase.
GasTableEIP158 contain the gas re-prices for the EIP155/EIP158 phase.
GasTableHomestead contain the gas prices for the homestead phase.
Difficulty of the Genesis block.
The bound divisor of the difficulty, used in the update calculations.
MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the main Cortex network.
MainnetChainConfig is the chain parameters to run a node on the main network.
No description provided by the author
Genesis hashes to enforce below configs on.
No description provided by the author
No description provided by the author
The minimum that the difficulty may ever be.
NetworkNames are user friendly names to use in the chain spec banner.
No description provided by the author
No description provided by the author
It should be empty for first time.
No description provided by the author

# Structs

ChainConfig is the core config which determines the blockchain settings.
No description provided by the author
CliqueConfig is the consensus engine configs for proof-of-authority based sealing.
ConfigCompatError is raised if the locally-stored blockchain is initialised with a ChainConfig that would alter the past.
No description provided by the author
GasTable organizes gas prices for different cortex phases.
Rules wraps ChainConfig and is merely syntactic sugar or can be used for functions that do not have or require information about the block.
No description provided by the author