Commit 64d6e880 authored by Andrzej Lisak's avatar Andrzej Lisak

[ABW]: [Fix] unused variable and related code removed; unnecessary operation...

[ABW]: [Fix] unused variable and related code removed; unnecessary operation removed from inside loop (it only needs to be done once before clearing)
parent 3a7d4809
......@@ -5350,18 +5350,6 @@ void database::apply_hardfork( uint32_t hardfork )
for ( const vesting_delegation_object *delegation_ptr: to_remove ) {
const auto &delegatee = get_account( delegation_ptr->delegatee );
asset available_downvote_shares;
modify( account, [&]( account_object &a ) {
util::update_manabar( cprops, a, true, true );
} );
if ( cprops.downvote_pool_percent ) {
available_downvote_shares = asset(
((uint128_t(account.downvote_manabar.current_mana) * STEEM_100_PERCENT) /
cprops.downvote_pool_percent
+ (STEEM_100_PERCENT / cprops.downvote_pool_percent) - 1).to_int64(), VESTS_SYMBOL);
}
modify( delegatee, [&]( account_object &a ) {
util::update_manabar( cprops, a, true, true );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment