Skip to content

Commit

Permalink
Create rc account when creating a claimed account steemit#2809
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandeberg committed Aug 23, 2018
1 parent 51a9984 commit e86b9bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libraries/plugins/rc/rc_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,11 @@ struct post_apply_operation_visitor
_mod_accounts.push_back( op.creator );
}

void operator()( const create_claimed_account_operation& op )const
{
create_rc_account( _db, _current_time, op.new_account_name, _db.get_witness_schedule_object().median_props.account_creation_fee );
}

void operator()( const pow_operation& op )const
{
// ilog( "handling post-apply pow_operation" );
Expand Down Expand Up @@ -808,8 +813,6 @@ struct post_apply_operation_visitor
_mod_accounts.push_back( STEEM_NULL_ACCOUNT );
}

// TODO create_claimed_account_operation

template< typename Op >
void operator()( const Op& op )const
{
Expand Down

0 comments on commit e86b9bf

Please sign in to comment.