From e53e9f862347250d893cd727ab3a566bc270c20f Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Mon, 5 Jun 2017 19:52:51 -0400 Subject: [PATCH] Update max core supply in genesis, properly track total supply for vesting balances in bts accounts --- genesis/genesis.json | 2 +- libraries/chain/db_init.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/genesis/genesis.json b/genesis/genesis.json index dd961cd7..5bc6dcdf 100644 --- a/genesis/genesis.json +++ b/genesis/genesis.json @@ -1,6 +1,6 @@ { "initial_timestamp": "2017-05-30T08:09:05", - "max_core_supply": "546053259451", + "max_core_supply": "1446051993031", "initial_parameters": { "current_fees": { "parameters": [[ diff --git a/libraries/chain/db_init.cpp b/libraries/chain/db_init.cpp index 2ab6b882..19d32e8c 100644 --- a/libraries/chain/db_init.cpp +++ b/libraries/chain/db_init.cpp @@ -674,6 +674,7 @@ void database::init_genesis(const genesis_state_type& genesis_state) new_vesting_policy.coin_seconds_earned_last_update = initial_cdd_vesting_policy.coin_seconds_earned_last_update; vbo.policy = new_vesting_policy; } + total_supplies[get_asset_id(vesting_balance.asset_symbol)] += vesting_balance.amount; }); } }