Skip to content

Commit

Permalink
account_evaluator.cpp: Set annual referrer to self when upgrading to …
Browse files Browse the repository at this point in the history
…annual member #455
  • Loading branch information
theoreticalbts committed Nov 20, 2015
1 parent 0985516 commit 498ebf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/chain/account_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ void_result account_upgrade_evaluator::do_apply(const account_upgrade_evaluator:
// Upgrade from basic account.
a.statistics(d).process_fees(a, d);
assert(a.is_basic_account(d.head_block_time()));
a.referrer = a.get_id();
a.membership_expiration_date = d.head_block_time() + fc::days(365);
}
});
Expand Down

0 comments on commit 498ebf4

Please sign in to comment.