Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Call accept_transaction on net thread
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jul 31, 2019
1 parent 8042e83 commit d4aca74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2813,9 +2813,8 @@ namespace eosio {
}

trx_in_progress_size += calc_trx_size( ptrx->packed_trx() );
app().post( priority::low, [ptrx{std::move(ptrx)}, weak = weak_from_this()]() {
my_impl->chain_plug->accept_transaction( ptrx,
[weak, ptrx](const static_variant<fc::exception_ptr, transaction_trace_ptr>& result) {
[weak = weak_from_this(), ptrx](const static_variant<fc::exception_ptr, transaction_trace_ptr>& result) {
// next (this lambda) called from application thread
bool accepted = false;
if (result.contains<fc::exception_ptr>()) {
Expand Down Expand Up @@ -2845,7 +2844,6 @@ namespace eosio {
conn->trx_in_progress_size -= calc_trx_size( ptrx->packed_trx() );
}
});
});
});
}

Expand Down

0 comments on commit d4aca74

Please sign in to comment.