Skip to content

Commit

Permalink
move invalid txs code chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-pandabear committed Sep 26, 2023
1 parent 0772b20 commit ab0ddcf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/server/mempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ void MemPool::mempool_sync() {
}
}

// Logging invalidTxs
for (const auto& tx : invalidTxs) {
Logger::logError("MemPool::mempool_sync", "A transaction is invalid and removed from the queue.");
}

if (transactionQueue.empty())
{
continue;
Expand Down Expand Up @@ -145,11 +150,6 @@ void MemPool::mempool_sync() {
}
}

// Logging invalidTxs
for (const auto& tx : invalidTxs) {
Logger::logError("MemPool::mempool_sync", "A transaction is invalid and removed from the queue.");
}

bool all_sent = true;
for (auto &future : sendResults)
{
Expand Down

0 comments on commit ab0ddcf

Please sign in to comment.