BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
26 #define GRAPHENE_SYMBOL "BTS"
27 #define GRAPHENE_ADDRESS_PREFIX "BTS"
29 #define GRAPHENE_BLOCKCHAIN_PRECISION uint64_t( 100000 )
30 #define GRAPHENE_BLOCKCHAIN_PRECISION_DIGITS 5
32 #define GRAPHENE_MIN_ACCOUNT_NAME_LENGTH 1
33 #define GRAPHENE_MAX_ACCOUNT_NAME_LENGTH 63
35 #define GRAPHENE_MIN_ASSET_SYMBOL_LENGTH 3
36 #define GRAPHENE_MAX_ASSET_SYMBOL_LENGTH 16
40 #define GRAPHENE_MAX_WORKER_NAME_LENGTH 63
41 #define GRAPHENE_MAX_URL_LENGTH 127
43 #define GRAPHENE_MAX_SIG_CHECK_DEPTH 2
45 #define GRAPHENE_IRREVERSIBLE_THRESHOLD (70 * GRAPHENE_1_PERCENT)
51 #define GRAPHENE_CORE_ASSET_CYCLE_RATE 17
52 #define GRAPHENE_CORE_ASSET_CYCLE_RATE_BITS 32
58 #define GRAPHENE_MIN_TRANSACTION_SIZE_LIMIT 1024
59 #define GRAPHENE_MIN_BLOCK_INTERVAL 1
60 #define GRAPHENE_MAX_BLOCK_INTERVAL 30
62 #define GRAPHENE_DEFAULT_BLOCK_INTERVAL 5
63 #define GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE 2048
64 #define GRAPHENE_DEFAULT_MAX_BLOCK_SIZE (2*1000*1000)
65 #define GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION (60*60*24) // seconds, aka: 1 day
66 #define GRAPHENE_DEFAULT_MAINTENANCE_INTERVAL (60*60*24) // seconds, aka: 1 day
67 #define GRAPHENE_DEFAULT_MAINTENANCE_SKIP_SLOTS 3 // number of slots to skip for maintenance interval
69 #define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_DELAY (60*60*24)
70 #define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_OFFSET 0
71 #define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_MAX_VOLUME (20* GRAPHENE_1_PERCENT)
72 #define GRAPHENE_DEFAULT_PRICE_FEED_LIFETIME (60*60*24)
73 #define GRAPHENE_DEFAULT_MAX_AUTHORITY_MEMBERSHIP 10
74 #define GRAPHENE_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES 10
75 #define GRAPHENE_DEFAULT_MAX_ASSET_FEED_PUBLISHERS 10
77 #define GRAPHENE_DEFAULT_MIN_WITNESS_COUNT (11)
78 #define GRAPHENE_DEFAULT_MIN_COMMITTEE_MEMBER_COUNT (11)
79 #define GRAPHENE_DEFAULT_MAX_WITNESSES (1001) // SHOULD BE ODD
80 #define GRAPHENE_DEFAULT_MAX_COMMITTEE (1001) // SHOULD BE ODD
81 #define GRAPHENE_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC (60*60*24*7*4) // Four weeks
82 #define GRAPHENE_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC (60*60*24*7*2) // Two weeks
83 #define GRAPHENE_DEFAULT_NETWORK_PERCENT_OF_FEE (20*GRAPHENE_1_PERCENT)
84 #define GRAPHENE_DEFAULT_LIFETIME_REFERRER_PERCENT_OF_FEE (30*GRAPHENE_1_PERCENT)
85 #define GRAPHENE_DEFAULT_CASHBACK_VESTING_PERIOD_SEC (60*60*24*365)
86 #define GRAPHENE_DEFAULT_CASHBACK_VESTING_THRESHOLD (GRAPHENE_BLOCKCHAIN_PRECISION*int64_t(100))
87 #define GRAPHENE_DEFAULT_BURN_PERCENT_OF_FEE (20*GRAPHENE_1_PERCENT)
88 #define GRAPHENE_DEFAULT_MAX_ASSERT_OPCODE 1
89 #define GRAPHENE_DEFAULT_FEE_LIQUIDATION_THRESHOLD GRAPHENE_BLOCKCHAIN_PRECISION * 100;
90 #define GRAPHENE_DEFAULT_ACCOUNTS_PER_FEE_SCALE 1000
91 #define GRAPHENE_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS 4
92 #define GRAPHENE_DEFAULT_MAX_BUYBACK_MARKETS 4
94 #define GRAPHENE_DEFAULT_WITNESS_PAY_PER_BLOCK (GRAPHENE_BLOCKCHAIN_PRECISION * int64_t( 10) )
95 #define GRAPHENE_DEFAULT_WITNESS_PAY_VESTING_SECONDS (60*60*24)
96 #define GRAPHENE_DEFAULT_WORKER_BUDGET_PER_DAY (GRAPHENE_BLOCKCHAIN_PRECISION * int64_t(500) * 1000 )
97 #define GRAPHENE_DEFAULT_MINIMUM_FEEDS 7
99 #define GRAPHENE_MIN_BLOCK_SIZE_LIMIT (GRAPHENE_MIN_TRANSACTION_SIZE_LIMIT*5) // 5 transactions per block
102 #define GRAPHENE_100_PERCENT 10000
103 #define GRAPHENE_1_PERCENT (GRAPHENE_100_PERCENT/100)
106 #define GRAPHENE_MAX_MARKET_FEE_PERCENT GRAPHENE_100_PERCENT
112 #define GRAPHENE_COLLATERAL_RATIO_DENOM 1000
114 #define GRAPHENE_MIN_COLLATERAL_RATIO 1001
115 #define GRAPHENE_MAX_COLLATERAL_RATIO 32000
116 #define GRAPHENE_DEFAULT_MAINTENANCE_COLLATERAL_RATIO 1750
117 #define GRAPHENE_DEFAULT_MAX_SHORT_SQUEEZE_RATIO 1500
138 #define GRAPHENE_COMMITTEE_ACCOUNT (graphene::protocol::account_id_type(0))
141 #define GRAPHENE_WITNESS_ACCOUNT (graphene::protocol::account_id_type(1))
143 #define GRAPHENE_RELAXED_COMMITTEE_ACCOUNT (graphene::protocol::account_id_type(2))
145 #define GRAPHENE_NULL_ACCOUNT (graphene::protocol::account_id_type(3))
147 #define GRAPHENE_TEMP_ACCOUNT (graphene::protocol::account_id_type(4))
149 #define GRAPHENE_PROXY_TO_SELF_ACCOUNT (graphene::protocol::account_id_type(5))
151 #define GRAPHENE_NULL_WITNESS (graphene::protocol::witness_id_type(0))
155 #define GRAPHENE_FBA_STEALTH_DESIGNATED_ASSET (asset_id_type(743))
158 #define GRAPHENE_DEFAULT_MAX_CUSTOM_AUTHORITY_LIFETIME_SECONDS (60*60*24*30)
159 #define GRAPHENE_DEFAULT_MAX_CUSTOM_AUTHORITIES_PER_ACCOUNT 10
161 #define GRAPHENE_DEFAULT_MAX_CUSTOM_AUTHORITIES_PER_ACCOUNT_OP 3
163 #define GRAPHENE_DEFAULT_MAX_CUSTOM_AUTHORITY_RESTRICTIONS 10
constexpr int64_t GRAPHENE_MAX_SHARE_SUPPLY(1000000000000000LL)
constexpr int64_t GRAPHENE_MAX_CREDIT_OFFER_DAYS
How long a credit offer will be kept active, in days.
constexpr int64_t GRAPHENE_MAX_CREDIT_DEAL_DAYS
How long a credit deal will be kept, in days.
constexpr uint32_t GRAPHENE_FEE_RATE_DENOM
Denominator for SameT Fund fee calculation.
constexpr int64_t GRAPHENE_MAX_CREDIT_OFFER_SECS
How long a credit offer will be kept active, in seconds.
constexpr int64_t GRAPHENE_MAX_CREDIT_DEAL_SECS
How long a credit deal will be kept, in seconds.
constexpr size_t MAX_FEE_STABILIZATION_ITERATION
How many iterations to run in fee_schedule::set_fee()