Skip to content

Commit

Permalink
Merge pull request steemit#2998 from steemit/2997-new-account-adjustment
Browse files Browse the repository at this point in the history
Apply max_rc_creation_adjustment to new accounts' initial mana steemit#2997
  • Loading branch information
jredbeard authored Sep 29, 2018
2 parents 8bfa9fc + 128dd85 commit 2eefed9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/plugins/rc/rc_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ void create_rc_account( database& db, uint32_t now, const account_object& accoun
db.create< rc_account_object >( [&]( rc_account_object& rca )
{
rca.account = account.name;
rca.rc_manabar.current_mana = get_maximum_rc( account, rca );
rca.rc_manabar.last_update_time = now;
rca.max_rc_creation_adjustment = max_rc_creation_adjustment;
rca.last_max_rc = get_maximum_rc( account, rca );
int64_t max_rc = get_maximum_rc( account, rca );
rca.rc_manabar.current_mana = max_rc;
rca.last_max_rc = max_rc;
} );
}

Expand Down

0 comments on commit 2eefed9

Please sign in to comment.