From d4aca744ce014347132ff4d00531e68e27654365 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Wed, 31 Jul 2019 09:54:11 -0500 Subject: [PATCH] Call accept_transaction on net thread --- plugins/net_plugin/net_plugin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index 2271f65bd3f..96e04d1e082 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -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& result) { + [weak = weak_from_this(), ptrx](const static_variant& result) { // next (this lambda) called from application thread bool accepted = false; if (result.contains()) { @@ -2845,7 +2844,6 @@ namespace eosio { conn->trx_in_progress_size -= calc_trx_size( ptrx->packed_trx() ); } }); - }); }); }