Skip to content

Commit

Permalink
fixes to steemit#169
Browse files Browse the repository at this point in the history
  • Loading branch information
revflash committed Jul 16, 2016
1 parent 2ac6b69 commit 3a50b7f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libraries/chain/steem_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ void account_create_evaluator::do_apply( const account_create_operation& o )
acc.last_vote_time = props.time;
acc.mined = false;

if( db().has_hardfork( STEEMIT_HARDFORK_0_11__169 ) )
acc.recovery_account = o.creator;
else
if( !db().has_hardfork( STEEMIT_HARDFORK_0_11__169 ) )
acc.recovery_account = "steem";
else
acc.recovery_account = o.creator;


#ifndef IS_LOW_MEM
Expand Down Expand Up @@ -1094,6 +1094,8 @@ void pow_evaluator::do_apply( const pow_operation& o )

if( !db().has_hardfork( STEEMIT_HARDFORK_0_11__169 ) )
acc.recovery_account = "steem";
else
acc.recovery_account = ""; /// highest voted witness at time of recovery
});
}

Expand Down Expand Up @@ -1377,7 +1379,7 @@ void recover_account_evaluator::do_apply( const recover_account_operation& o )

FC_ASSERT( found, "Recent authority not found in authority history" );

db().remove( *hist ); // Remove first, update_owner_authority may invalidate iterator
db().remove( *request ); // Remove first, update_owner_authority may invalidate iterator
db().update_owner_authority( db().get_account( o.account_to_recover ), o.new_owner_authority );
}

Expand Down

0 comments on commit 3a50b7f

Please sign in to comment.