Skip to content

Commit

Permalink
remove now effectively empty calls to on_pre/post_apply_operation rou…
Browse files Browse the repository at this point in the history
…tines of RC

All RC handling for specific virtual operations was moved to main code in previous commits.
  • Loading branch information
ABW committed Dec 3, 2023
1 parent b9e7376 commit 9f62473
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libraries/chain/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,6 @@ void database::push_virtual_operation( const operation& op )
_current_op_in_trx++;
operation_notification note = create_operation_notification( op );
notify_pre_apply_operation( note );
rc.on_pre_apply_operation( note.op ); //temporary
rc.on_post_apply_operation( note.op ); //temporary
notify_post_apply_operation( note );
}

Expand All @@ -851,15 +849,13 @@ void database::pre_push_virtual_operation( const operation& op )
_current_op_in_trx++;
operation_notification note = create_operation_notification( op );
notify_pre_apply_operation( note );
rc.on_pre_apply_operation( note.op ); //temporary
}

void database::post_push_virtual_operation( const operation& op, const fc::optional<uint64_t>& op_in_trx )
{
FC_ASSERT( is_virtual_operation( op ) );
operation_notification note = create_operation_notification( op );
if(op_in_trx.valid()) note.op_in_trx = *op_in_trx;
rc.on_post_apply_operation( note.op ); //temporary
notify_post_apply_operation( note );
}

Expand Down

0 comments on commit 9f62473

Please sign in to comment.