account_evaluator.cpp: Set annual referrer to self when upgrading to annual member #455

This commit is contained in:
theoreticalbts 2015-11-20 10:44:21 -05:00
parent 09855166a2
commit 498ebf486f

View file

@ -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);
}
});