Skip to content

Commit

Permalink
fix issue of max supply buget issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hackfisher committed Oct 30, 2017
1 parent ba164a9 commit a3f93a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/chain/db_maint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <graphene/chain/vesting_balance_object.hpp>
#include <graphene/chain/vote_count.hpp>
#include <graphene/chain/witness_object.hpp>
#include <graphene/chain/hardfork.hpp>

namespace graphene { namespace chain {

Expand Down Expand Up @@ -206,6 +207,10 @@ void database::initialize_budget_record( fc::time_point_sec now, budget_record&
const asset_dynamic_data_object& core_dd = core.dynamic_asset_data_id(*this);

rec.from_initial_reserve = core.reserved(*this);
if (this->head_block_time() >= HARDFORK_3_TIME)
{
rec.from_initial_reserve = 0;
}
rec.from_accumulated_fees = core_dd.accumulated_fees;
rec.from_unused_witness_budget = dpo.witness_budget;

Expand Down
4 changes: 4 additions & 0 deletions libraries/chain/hardfork.d/3.hf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// #3 Fix issue of updating max supply.
#ifndef HARDFORK_3_TIME
#define HARDFORK_3_TIME (fc::time_point_sec( 1509454800 ))
#endif

0 comments on commit a3f93a6

Please # to comment.