account_evaluator.cpp: Set annual referrer to self when upgrading to annual member #455
This commit is contained in:
parent
09855166a2
commit
498ebf486f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue