Chain Parameters
x86 is now in the development stage.
Default configuration values for chain parameters can be obtained using the method get_config.
1
struct chain_parameters
2
{
3
/** using a shared_ptr breaks the circular dependency created between operations and the fee schedule */
4
std::shared_ptr<fee_schedule> current_fees; ///< current schedule of fees
5
6
uint32_t maintenance_interval = ECHO_DEFAULT_MAINTENANCE_INTERVAL; ///< interval in sections between blockchain maintenance events
7
uint8_t maintenance_duration_seconds = ECHO_DEFAULT_MAINTENANCE_DURATION_SECONDS; ///< duration of maintenance(time to stop echorand)
8
uint32_t balance_unfreezing_time = ECHO_DEFAULT_UNFREEZE_BALANCE_TIME; ///< number of intervals after which the requested frozen balance to be unfreezed
9
uint32_t committee_proposal_review_period = ECHO_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC; ///< minimum time in seconds that a proposed transaction requiring committee authority may not be signed, prior to expiration
10
uint32_t maximum_transaction_size = ECHO_DEFAULT_MAX_TRANSACTION_SIZE; ///< maximum allowable size in bytes for a transaction
11
uint32_t maximum_block_size = ECHO_DEFAULT_MAX_BLOCK_SIZE; ///< maximum allowable size in bytes for a block
12
uint32_t maximum_time_until_expiration = ECHO_DEFAULT_MAX_TIME_UNTIL_EXPIRATION; ///< maximum lifetime in seconds for transactions to be valid, before expiring
13
uint32_t maximum_proposal_lifetime = ECHO_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC; ///< maximum lifetime in seconds for proposed transactions to be kept, before expiring
14
uint8_t maximum_asset_whitelist_authorities = ECHO_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES; ///< maximum number of accounts which an asset may list as authorities for its whitelist OR blacklist
15
uint8_t maximum_asset_feed_publishers = ECHO_DEFAULT_MAX_ASSET_FEED_PUBLISHERS; ///< the maximum number of feed publishers for a given asset
16
uint16_t maximum_authority_membership = ECHO_DEFAULT_MAX_AUTHORITY_MEMBERSHIP; ///< largest number of keys/accounts an authority can have
17
uint8_t max_authority_depth = ECHO_MAX_SIG_CHECK_DEPTH;
18
19
uint64_t committee_frozen_balance_to_activate = ECHO_DEFAULT_COMMITTEE_FROZEN_BALANCE_TO_ACTIVATE;
20
uint64_t committee_maintenance_intervals_to_deposit = ECHO_DEFAULT_COMMITTEE_MAINTENANCE_INTERVALS_TO_DEPOSIT;
21
uint32_t committee_balance_unfreeze_duration_seconds = ECHO_DEFAULT_COMMITTEE_BALANCE_UNFREEZE_DURATION_SECONDS;
22
23
uint64_t x86_64_maximum_contract_size = ECHO_DEFAULT_MAX_X86_64_CONTRACT_SIZE;
24
25
std::map<uint16_t, uint32_t> frozen_balances_multipliers = {
26
{90, 110 * ECHO_1_PERCENT},
27
{180, 130 * ECHO_1_PERCENT},
28
{360, 150 * ECHO_1_PERCENT},
29
};
30
31
rand::config echorand_config;
32
sidechain::config sidechain_config;
33
sidechain::erc20_config erc20_config;
34
sidechain::stake_config stake_sidechain_config;
35
36
gas_price_t gas_price;
37
38
std::set<asset_id_type> consensus_assets;
39
40
std::set<asset_id_type> valid_fee_asset = {asset_id_type(1), asset_id_type(2)}; ///< assets other than ECHO that can be accepted as fee without fee pool
41
42
economy::config economy_config;
43
44
extensions_type extensions;
45
};
Copied!

Types

Last modified 11mo ago
Copy link
Contents
Types