diff --git a/libraries/core_libs/consensus/src/transaction/transaction_manager.cpp b/libraries/core_libs/consensus/src/transaction/transaction_manager.cpp index e146da79d9..2ea8ef629a 100644 --- a/libraries/core_libs/consensus/src/transaction/transaction_manager.cpp +++ b/libraries/core_libs/consensus/src/transaction/transaction_manager.cpp @@ -203,9 +203,9 @@ void TransactionManager::saveTransactionsFromDagBlock(SharedTransactions const & if (transactions_pool_.erase(tx_hash)) { LOG(log_dg_) << "Transaction " << tx_hash << " removed from trx pool "; // Transactions are counted when included in DAG - trx_count_++; accepted_transactions.emplace_back(tx_hash); } + trx_count_++; } } } diff --git a/tests/full_node_test.cpp b/tests/full_node_test.cpp index a12775d2d7..1ef4f5a4f9 100644 --- a/tests/full_node_test.cpp +++ b/tests/full_node_test.cpp @@ -861,7 +861,6 @@ TEST_F(FullNodeTest, sync_two_nodes1) { for (const auto &trx : samples::createSignedTrxSamples(1, 400, g_secret)) { nodes[0]->getTransactionManager()->insertTransaction(trx); } - taraxa::thisThreadSleepForMilliSeconds(500); for (const auto &trx : samples::createSignedTrxSamples(401, 1000, g_secret)) { nodes[1]->getTransactionManager()->insertTransaction(trx); } @@ -902,7 +901,6 @@ TEST_F(FullNodeTest, persist_counter) { for (const auto &trx : samples::createSignedTrxSamples(1, 400, g_secret)) { nodes[0]->getTransactionManager()->insertTransaction(trx); } - taraxa::thisThreadSleepForMilliSeconds(500); for (const auto &trx : samples::createSignedTrxSamples(401, 1000, g_secret)) { nodes[1]->getTransactionManager()->insertTransaction(trx); }