aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/tx_pool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index b44fcbe28..40c004da4 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -344,7 +344,8 @@ namespace cryptonote
}
tvc.m_verifivation_failed = false;
- m_txpool_weight += tx_weight;
+ if (tvc.m_added_to_pool)
+ m_txpool_weight += tx_weight;
++m_cookie;