Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::chain::chain_parameters Struct Reference

#include <chain_parameters.hpp>

Public Member Functions

void validate () const
 

Public Attributes

smart_ref< fee_schedulecurrent_fees
 current schedule of fees More...
 
uint8_t block_interval = GRAPHENE_DEFAULT_BLOCK_INTERVAL
 interval in seconds between blocks More...
 
uint32_t maintenance_interval = GRAPHENE_DEFAULT_MAINTENANCE_INTERVAL
 interval in sections between blockchain maintenance events More...
 
uint8_t maintenance_skip_slots = GRAPHENE_DEFAULT_MAINTENANCE_SKIP_SLOTS
 number of block_intervals to skip at maintenance time More...
 
uint32_t committee_proposal_review_period = GRAPHENE_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC
 minimum time in seconds that a proposed transaction requiring committee authority may not be signed, prior to expiration More...
 
uint32_t maximum_transaction_size = GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE
 maximum allowable size in bytes for a transaction More...
 
uint32_t maximum_block_size = GRAPHENE_DEFAULT_MAX_BLOCK_SIZE
 maximum allowable size in bytes for a block More...
 
uint32_t maximum_time_until_expiration = GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION
 maximum lifetime in seconds for transactions to be valid, before expiring More...
 
uint32_t maximum_proposal_lifetime = GRAPHENE_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC
 maximum lifetime in seconds for proposed transactions to be kept, before expiring More...
 
uint8_t maximum_asset_whitelist_authorities = GRAPHENE_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES
 maximum number of accounts which an asset may list as authorities for its whitelist OR blacklist More...
 
uint8_t maximum_asset_feed_publishers = GRAPHENE_DEFAULT_MAX_ASSET_FEED_PUBLISHERS
 the maximum number of feed publishers for a given asset More...
 
uint16_t maximum_witness_count = GRAPHENE_DEFAULT_MAX_WITNESSES
 maximum number of active witnesses More...
 
uint16_t maximum_committee_count = GRAPHENE_DEFAULT_MAX_COMMITTEE
 maximum number of active committee_members More...
 
uint16_t maximum_authority_membership = GRAPHENE_DEFAULT_MAX_AUTHORITY_MEMBERSHIP
 largest number of keys/accounts an authority can have More...
 
uint16_t reserve_percent_of_fee = GRAPHENE_DEFAULT_BURN_PERCENT_OF_FEE
 the percentage of the network's allocation of a fee that is taken out of circulation More...
 
uint16_t network_percent_of_fee = GRAPHENE_DEFAULT_NETWORK_PERCENT_OF_FEE
 percent of transaction fees paid to network More...
 
uint16_t lifetime_referrer_percent_of_fee = GRAPHENE_DEFAULT_LIFETIME_REFERRER_PERCENT_OF_FEE
 percent of transaction fees paid to network More...
 
uint32_t cashback_vesting_period_seconds = GRAPHENE_DEFAULT_CASHBACK_VESTING_PERIOD_SEC
 time after cashback rewards are accrued before they become liquid More...
 
share_type cashback_vesting_threshold = GRAPHENE_DEFAULT_CASHBACK_VESTING_THRESHOLD
 the maximum cashback that can be received without vesting More...
 
bool count_non_member_votes = true
 set to false to restrict voting privlegages to member accounts More...
 
bool allow_non_member_whitelists = false
 true if non-member accounts may set whitelists and blacklists; false otherwise More...
 
share_type witness_pay_per_block = GRAPHENE_DEFAULT_WITNESS_PAY_PER_BLOCK
 CORE to be allocated to witnesses (per block) More...
 
uint32_t witness_pay_vesting_seconds = GRAPHENE_DEFAULT_WITNESS_PAY_VESTING_SECONDS
 vesting_seconds parameter for witness VBO's More...
 
share_type worker_budget_per_day = GRAPHENE_DEFAULT_WORKER_BUDGET_PER_DAY
 CORE to be allocated to workers (per day) More...
 
uint16_t max_predicate_opcode = GRAPHENE_DEFAULT_MAX_ASSERT_OPCODE
 predicate_opcode must be less than this number More...
 
share_type fee_liquidation_threshold = GRAPHENE_DEFAULT_FEE_LIQUIDATION_THRESHOLD
 value in CORE at which accumulated fees in blockchain-issued market assets should be liquidated More...
 
uint16_t accounts_per_fee_scale = GRAPHENE_DEFAULT_ACCOUNTS_PER_FEE_SCALE
 number of accounts between fee scalings More...
 
uint8_t account_fee_scale_bitshifts = GRAPHENE_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS
 number of times to left bitshift account registration fee at each scaling More...
 
uint8_t max_authority_depth = GRAPHENE_MAX_SIG_CHECK_DEPTH
 
extensions_type extensions
 

Detailed Description

Definition at line 34 of file chain_parameters.hpp.

Member Function Documentation

◆ validate()

void graphene::chain::chain_parameters::validate ( ) const

defined in fee_schedule.cpp

Definition at line 172 of file fee_schedule.cpp.

Member Data Documentation

◆ account_fee_scale_bitshifts

uint8_t graphene::chain::chain_parameters::account_fee_scale_bitshifts = GRAPHENE_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS

number of times to left bitshift account registration fee at each scaling

Definition at line 64 of file chain_parameters.hpp.

◆ accounts_per_fee_scale

uint16_t graphene::chain::chain_parameters::accounts_per_fee_scale = GRAPHENE_DEFAULT_ACCOUNTS_PER_FEE_SCALE

number of accounts between fee scalings

Definition at line 63 of file chain_parameters.hpp.

◆ allow_non_member_whitelists

bool graphene::chain::chain_parameters::allow_non_member_whitelists = false

true if non-member accounts may set whitelists and blacklists; false otherwise

Definition at line 57 of file chain_parameters.hpp.

◆ block_interval

uint8_t graphene::chain::chain_parameters::block_interval = GRAPHENE_DEFAULT_BLOCK_INTERVAL

interval in seconds between blocks

Definition at line 38 of file chain_parameters.hpp.

◆ cashback_vesting_period_seconds

uint32_t graphene::chain::chain_parameters::cashback_vesting_period_seconds = GRAPHENE_DEFAULT_CASHBACK_VESTING_PERIOD_SEC

time after cashback rewards are accrued before they become liquid

Definition at line 54 of file chain_parameters.hpp.

◆ cashback_vesting_threshold

share_type graphene::chain::chain_parameters::cashback_vesting_threshold = GRAPHENE_DEFAULT_CASHBACK_VESTING_THRESHOLD

the maximum cashback that can be received without vesting

Definition at line 55 of file chain_parameters.hpp.

◆ committee_proposal_review_period

uint32_t graphene::chain::chain_parameters::committee_proposal_review_period = GRAPHENE_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC

minimum time in seconds that a proposed transaction requiring committee authority may not be signed, prior to expiration

Definition at line 41 of file chain_parameters.hpp.

◆ count_non_member_votes

bool graphene::chain::chain_parameters::count_non_member_votes = true

set to false to restrict voting privlegages to member accounts

Definition at line 56 of file chain_parameters.hpp.

◆ current_fees

smart_ref<fee_schedule> graphene::chain::chain_parameters::current_fees

current schedule of fees

using a smart ref breaks the circular dependency created between operations and the fee schedule

Definition at line 37 of file chain_parameters.hpp.

◆ extensions

extensions_type graphene::chain::chain_parameters::extensions

Definition at line 66 of file chain_parameters.hpp.

◆ fee_liquidation_threshold

share_type graphene::chain::chain_parameters::fee_liquidation_threshold = GRAPHENE_DEFAULT_FEE_LIQUIDATION_THRESHOLD

value in CORE at which accumulated fees in blockchain-issued market assets should be liquidated

Definition at line 62 of file chain_parameters.hpp.

◆ lifetime_referrer_percent_of_fee

uint16_t graphene::chain::chain_parameters::lifetime_referrer_percent_of_fee = GRAPHENE_DEFAULT_LIFETIME_REFERRER_PERCENT_OF_FEE

percent of transaction fees paid to network

Definition at line 53 of file chain_parameters.hpp.

◆ maintenance_interval

uint32_t graphene::chain::chain_parameters::maintenance_interval = GRAPHENE_DEFAULT_MAINTENANCE_INTERVAL

interval in sections between blockchain maintenance events

Definition at line 39 of file chain_parameters.hpp.

◆ maintenance_skip_slots

uint8_t graphene::chain::chain_parameters::maintenance_skip_slots = GRAPHENE_DEFAULT_MAINTENANCE_SKIP_SLOTS

number of block_intervals to skip at maintenance time

Definition at line 40 of file chain_parameters.hpp.

◆ max_authority_depth

uint8_t graphene::chain::chain_parameters::max_authority_depth = GRAPHENE_MAX_SIG_CHECK_DEPTH

Definition at line 65 of file chain_parameters.hpp.

◆ max_predicate_opcode

uint16_t graphene::chain::chain_parameters::max_predicate_opcode = GRAPHENE_DEFAULT_MAX_ASSERT_OPCODE

predicate_opcode must be less than this number

Definition at line 61 of file chain_parameters.hpp.

◆ maximum_asset_feed_publishers

uint8_t graphene::chain::chain_parameters::maximum_asset_feed_publishers = GRAPHENE_DEFAULT_MAX_ASSET_FEED_PUBLISHERS

the maximum number of feed publishers for a given asset

Definition at line 47 of file chain_parameters.hpp.

◆ maximum_asset_whitelist_authorities

uint8_t graphene::chain::chain_parameters::maximum_asset_whitelist_authorities = GRAPHENE_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES

maximum number of accounts which an asset may list as authorities for its whitelist OR blacklist

Definition at line 46 of file chain_parameters.hpp.

◆ maximum_authority_membership

uint16_t graphene::chain::chain_parameters::maximum_authority_membership = GRAPHENE_DEFAULT_MAX_AUTHORITY_MEMBERSHIP

largest number of keys/accounts an authority can have

Definition at line 50 of file chain_parameters.hpp.

◆ maximum_block_size

uint32_t graphene::chain::chain_parameters::maximum_block_size = GRAPHENE_DEFAULT_MAX_BLOCK_SIZE

maximum allowable size in bytes for a block

Definition at line 43 of file chain_parameters.hpp.

◆ maximum_committee_count

uint16_t graphene::chain::chain_parameters::maximum_committee_count = GRAPHENE_DEFAULT_MAX_COMMITTEE

maximum number of active committee_members

Definition at line 49 of file chain_parameters.hpp.

◆ maximum_proposal_lifetime

uint32_t graphene::chain::chain_parameters::maximum_proposal_lifetime = GRAPHENE_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC

maximum lifetime in seconds for proposed transactions to be kept, before expiring

Definition at line 45 of file chain_parameters.hpp.

◆ maximum_time_until_expiration

uint32_t graphene::chain::chain_parameters::maximum_time_until_expiration = GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION

maximum lifetime in seconds for transactions to be valid, before expiring

Definition at line 44 of file chain_parameters.hpp.

◆ maximum_transaction_size

uint32_t graphene::chain::chain_parameters::maximum_transaction_size = GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE

maximum allowable size in bytes for a transaction

Definition at line 42 of file chain_parameters.hpp.

◆ maximum_witness_count

uint16_t graphene::chain::chain_parameters::maximum_witness_count = GRAPHENE_DEFAULT_MAX_WITNESSES

maximum number of active witnesses

Definition at line 48 of file chain_parameters.hpp.

◆ network_percent_of_fee

uint16_t graphene::chain::chain_parameters::network_percent_of_fee = GRAPHENE_DEFAULT_NETWORK_PERCENT_OF_FEE

percent of transaction fees paid to network

Definition at line 52 of file chain_parameters.hpp.

◆ reserve_percent_of_fee

uint16_t graphene::chain::chain_parameters::reserve_percent_of_fee = GRAPHENE_DEFAULT_BURN_PERCENT_OF_FEE

the percentage of the network's allocation of a fee that is taken out of circulation

Definition at line 51 of file chain_parameters.hpp.

◆ witness_pay_per_block

share_type graphene::chain::chain_parameters::witness_pay_per_block = GRAPHENE_DEFAULT_WITNESS_PAY_PER_BLOCK

CORE to be allocated to witnesses (per block)

Definition at line 58 of file chain_parameters.hpp.

◆ witness_pay_vesting_seconds

uint32_t graphene::chain::chain_parameters::witness_pay_vesting_seconds = GRAPHENE_DEFAULT_WITNESS_PAY_VESTING_SECONDS

vesting_seconds parameter for witness VBO's

Definition at line 59 of file chain_parameters.hpp.

◆ worker_budget_per_day

share_type graphene::chain::chain_parameters::worker_budget_per_day = GRAPHENE_DEFAULT_WORKER_BUDGET_PER_DAY

CORE to be allocated to workers (per day)

Definition at line 60 of file chain_parameters.hpp.


The documentation for this struct was generated from the following files: