Skip to content

Commit

Permalink
Added FC_ASSERT for dynamic data id of core asset
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore committed Jul 26, 2018
1 parent 78ff14e commit 4d40398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/chain/db_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ void database::init_genesis(const genesis_state_type& genesis_state)
a.options.core_exchange_rate.quote.asset_id = asset_id_type(0);
a.dynamic_asset_data_id = dyn_asset.id;
});
FC_ASSERT( dyn_asset.id == asset_dynamic_data_id_type() );
FC_ASSERT( asset_id_type(core_asset.id) == asset().asset_id );
FC_ASSERT( get_balance(account_id_type(), asset_id_type()) == asset(dyn_asset.current_supply) );
_p_core_asset_obj = &core_asset;
Expand Down

0 comments on commit 4d40398

Please sign in to comment.