aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-10-11 10:31:26 +0200
committerRiccardo Spagni <ric@spagni.net>2016-10-11 10:31:26 +0200
commit34fcfcd7ccc0a7943e832ec0c59382b5cbc85307 (patch)
treeebe717c95f62b382c842b75c8c1234b439186e5d /src/cryptonote_core/tx_pool.cpp
parentMerge pull request #1204 (diff)
parentAdd performance timers for ringct tx verification (diff)
downloadmonero-34fcfcd7ccc0a7943e832ec0c59382b5cbc85307.tar.xz
Merge pull request #1203
4038e86 Add performance timers for ringct tx verification (moneromooo-monero) 74dfdb0 perf_timer: new class and macros to make performance logs easier (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
-rw-r--r--src/cryptonote_core/tx_pool.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index 5bfa7eca6..178cbda3c 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -42,6 +42,7 @@
#include "common/int-util.h"
#include "misc_language.h"
#include "warnings.h"
+#include "common/perf_timer.h"
#include "crypto/hash.h"
DISABLE_VS_WARNINGS(4244 4345 4503) //'boost::foreach_detail_::or_' : decorated name length exceeded, name was truncated
@@ -78,6 +79,7 @@ namespace cryptonote
//---------------------------------------------------------------------------------
bool tx_memory_pool::add_tx(const transaction &tx, /*const crypto::hash& tx_prefix_hash,*/ const crypto::hash &id, size_t blob_size, tx_verification_context& tvc, bool kept_by_block, bool relayed, uint8_t version)
{
+ PERF_TIMER(add_tx);
if (tx.version == 0)
{
// v0 never accepted