0.10

Added

  • Block generation time limit
    • Field uint32_t _time_generate to echo::rand::config (used in chain_parameters)
  • Examples to the wallet API
  • New wallet method register_account_with_api
  • New block emission and fee distribution mechanism
    • Field uint64_t block_emission_amount to chain_parameters
    • Field uint16_t block_producer_reward_ratio to chain_parameters
    • Field uint16_t delegate_share to account_options
    • Field int64_t fees_collected to processed_transaction
  • Devnet options presets

Changed

  • Use HTTP RPC insted of WebSockets for sidechain and erc20
    • Added field uint32_t waiting_eth_blocks to echo::sidechain::config (used in chain_parameters)
  • Update Boost version to 1.66.0
  • Update x86-64 VM version
  • Echorand messages priorities
  • Database API method subscribe_contract_logs now returns void

Removed

  • Block interval
  • Fields recently_missed_count, current_aslot from global_property_object
  • Budget (fees) distribution to committees
    • Field pending_fees from account_statistics_object
    • Class budget_record_object and object type impl_budget_record_object_type

Fixed

  • Fix expiration time of transactions created in wallet
  • Fix history APIs
  • Fix block_produced notification
  • Fix tx waiting in async methods of wallet
  • Fix exit from wallet
  • Fix database closing and rewinding
  • Rename _signerto _producer in block_signature_t
  • Rename commitee_pay_vesting_secondsto committee_pay_vesting_seconds in chain_parameters

Relevant data reflections

1
FC_REFLECT_ENUM(graphene::chain::impl_object_type,
2
(impl_global_property_object_type)
3
(impl_dynamic_global_property_object_type)
4
(impl_asset_dynamic_data_type)
5
(impl_asset_bitasset_data_type)
6
(impl_account_balance_object_type)
7
(impl_account_statistics_object_type)
8
(impl_transaction_object_type)
9
(impl_block_summary_object_type)
10
(impl_account_transaction_history_object_type)
11
(impl_chain_property_object_type)
12
(impl_special_authority_object_type)
13
(impl_contract_balance_object_type)
14
(impl_contract_history_object_type)
15
(impl_contract_statistics_object_type)
16
(impl_account_address_object_type)
17
(impl_contract_pool_object_type)
18
(impl_malicious_committeemen_object_type)
19
)
20
21
FC_REFLECT_DERIVED(graphene::chain::dynamic_global_property_object, (graphene::db::object),
22
(head_block_number)
23
(head_block_id)
24
(time)
25
(next_maintenance_time)
26
(last_budget_time)
27
(committee_budget)
28
(accounts_registered_this_interval)
29
(dynamic_flags)
30
(last_irreversible_block_num)
31
(extensions)
32
)
33
34
FC_REFLECT(graphene::chain::chain_parameters,
35
(current_fees)
36
(maintenance_interval)
37
(maintenance_duration_seconds)
38
(committee_proposal_review_period)
39
(maximum_transaction_size)
40
(maximum_block_size)
41
(maximum_time_until_expiration)
42
(maximum_proposal_lifetime)
43
(maximum_asset_whitelist_authorities)
44
(maximum_asset_feed_publishers)
45
(maximum_committee_count)
46
(maximum_authority_membership)
47
(reserve_percent_of_fee)
48
(network_percent_of_fee)
49
(committee_pay_vesting_seconds)
50
(max_predicate_opcode)
51
(accounts_per_fee_scale)
52
(account_fee_scale_bitshifts)
53
(max_authority_depth)
54
(block_emission_amount)
55
(block_producer_reward_ratio)
56
(echorand_config)
57
(sidechain_config)
58
(erc20_config)
59
(gas_price)
60
(extensions)
61
)
62
63
FC_REFLECT(echo::rand::config,
64
(_time_generate)
65
(_time_net_1mb)
66
(_time_net_256b)
67
(_creator_count)
68
(_verifier_count)
69
(_ok_threshold)
70
(_max_bba_steps)
71
(_gc1_delay)
72
)
73
74
FC_REFLECT( echo::sidechain::config,
75
(eth_contract_address)
76
(eth_committee_update_method)
77
(eth_gen_address_method)
78
(eth_withdraw_method)
79
(eth_update_addr_method)
80
(eth_withdraw_token_method)
81
(eth_collect_tokens_method)
82
(eth_committee_updated_topic)
83
(eth_gen_address_topic)
84
(eth_deposit_topic)
85
(eth_withdraw_topic)
86
(erc20_deposit_topic)
87
(erc20_withdraw_topic)
88
(ETH_asset_id)
89
(waiting_eth_blocks)
90
(fines)
91
(waiting_blocks)
92
(gas_price)
93
)
94
95
FC_REFLECT_DERIVED(graphene::chain::processed_transaction, (graphene::chain::signed_transaction),
96
(operation_results)
97
(fees_collected)
98
)
99
100
FC_REFLECT(graphene::chain::account_options,
101
(voting_account)
102
(delegating_account)
103
(delegate_share)
104
(num_committee)
105
(votes)
106
(extensions)
107
)
Copied!

Updated get_config:

1
{
2
"ECHO_SYMBOL": "ECHO",
3
"ECHO_ADDRESS_PREFIX": "ECHO",
4
"ECHO_ED_PREFIX": "ECHO",
5
"ECHO_MIN_ACCOUNT_NAME_LENGTH": 1,
6
"ECHO_MAX_ACCOUNT_NAME_LENGTH": 63,
7
"ECHO_MIN_ASSET_SYMBOL_LENGTH": 3,
8
"ECHO_MAX_ASSET_SYMBOL_LENGTH": 16,
9
"ECHO_MAX_SHARE_SUPPLY": "1000000000000000",
10
"ECHO_MAX_PAY_RATE": 10000,
11
"ECHO_MAX_SIG_CHECK_DEPTH": 2,
12
"ECHO_MIN_TRANSACTION_SIZE_LIMIT": 1024,
13
"ECHO_DEFAULT_MAX_TRANSACTION_SIZE": 2097152,
14
"ECHO_DEFAULT_MAX_BLOCK_SIZE": 5242880,
15
"ECHO_DEFAULT_MAX_TIME_UNTIL_EXPIRATION": 86400,
16
"ECHO_DEFAULT_MAINTENANCE_INTERVAL": 86400,
17
"ECHO_DEFAULT_MAINTENANCE_DURATION_SECONDS": 10,
18
"ECHO_MIN_UNDO_HISTORY": 10,
19
"ECHO_MAX_UNDO_HISTORY": 10000,
20
"ECHO_MIN_BLOCK_SIZE_LIMIT": 5120,
21
"ECHO_MIN_TRANSACTION_EXPIRATION_LIMIT": 5,
22
"ECHO_BLOCKCHAIN_PRECISION": 100000000,
23
"ECHO_BLOCKCHAIN_PRECISION_DIGITS": 8,
24
"ECHO_DEFAULT_TRANSFER_FEE": 100000000,
25
"ECHO_MAX_INSTANCE_ID": "281474976710655",
26
"ECHO_100_PERCENT": 10000,
27
"ECHO_1_PERCENT": 100,
28
"ECHO_DEFAULT_PRICE_FEED_LIFETIME": 86400,
29
"ECHO_DEFAULT_COMMITTEE_PAY_VESTING_SECONDS": 86400,
30
"ECHO_DEFAULT_MAX_AUTHORITY_MEMBERSHIP": 10,
31
"ECHO_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES": 10,
32
"ECHO_DEFAULT_MAX_ASSET_FEED_PUBLISHERS": 10,
33
"ECHO_COLLATERAL_RATIO_DENOM": 1000,
34
"ECHO_MIN_COLLATERAL_RATIO": 1001,
35
"ECHO_MAX_COLLATERAL_RATIO": 32000,
36
"ECHO_DEFAULT_MAINTENANCE_COLLATERAL_RATIO": 1750,
37
"ECHO_DEFAULT_MAX_SHORT_SQUEEZE_RATIO": 1500,
38
"ECHO_DEFAULT_MIN_COMMITTEE_MEMBER_COUNT": 11,
39
"ECHO_DEFAULT_MAX_COMMITTEE": 1001,
40
"ECHO_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC": 2419200,
41
"ECHO_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC": 1209600,
42
"ECHO_DEFAULT_NETWORK_PERCENT_OF_FEE": 2000,
43
"ECHO_DEFAULT_BURN_PERCENT_OF_FEE": 2000,
44
"ECHO_DEFAULT_MAX_ASSERT_OPCODE": 1,
45
"ECHO_DEFAULT_ACCOUNTS_PER_FEE_SCALE": 1000,
46
"ECHO_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS": 4,
47
"ECHO_MAX_URL_LENGTH": 127,
48
"ECHO_DEFAULT_MINIMUM_FEEDS": 7,
49
"ECHO_REVERSIBLE_BLOCKS_COUNT": 15,
50
"ECHO_NULL_ACCOUNT": "1.2.0",
51
"ECHO_COMMITTEE_ACCOUNT": "1.2.1",
52
"ECHO_RELAXED_COMMITTEE_ACCOUNT": "1.2.2",
53
"ECHO_NULL_AUTHORITY_ACCOUNT": "1.2.3",
54
"ECHO_TEMP_ACCOUNT": "1.2.4",
55
"ECHO_PROXY_TO_SELF_ACCOUNT": "1.2.5"
56
}
Copied!
Last modified 2yr ago