From 396950ef28dc847b186e3a719c5f335d846a8a82 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Sun, 25 Mar 2018 01:36:29 +0100 Subject: [PATCH] Added more debug --- src/cryptonote_core/cryptonote_basic.h | 5 ++++- src/cryptonote_core/cryptonote_format_utils.cpp | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cryptonote_core/cryptonote_basic.h b/src/cryptonote_core/cryptonote_basic.h index 14fe2c1..881b227 100644 --- a/src/cryptonote_core/cryptonote_basic.h +++ b/src/cryptonote_core/cryptonote_basic.h @@ -174,7 +174,10 @@ namespace cryptonote BEGIN_SERIALIZE() VARINT_FIELD(version) - if(MAX_TRANSACTION_VERSION < version) return false; + if(MAX_TRANSACTION_VERSION < version) { + printf("!!! Current tx version %u exceeds %u max", version, MAX_TRANSACTION_VERSION); + return false; + } VARINT_FIELD(unlock_time) FIELD(vin) FIELD(vout) diff --git a/src/cryptonote_core/cryptonote_format_utils.cpp b/src/cryptonote_core/cryptonote_format_utils.cpp index db09ad9..7a0c74f 100644 --- a/src/cryptonote_core/cryptonote_format_utils.cpp +++ b/src/cryptonote_core/cryptonote_format_utils.cpp @@ -115,7 +115,6 @@ namespace cryptonote CHECK_AND_ASSERT_MES(summary_amounts == block_reward, false, "Failed to construct miner tx, summary_amounts = " << summary_amounts << " not equal block_reward = " << block_reward); - puts("[*] Using CURRENT_TRANSACTION_VERSION in construct_miner_tx"); tx.version = CURRENT_TRANSACTION_VERSION; //lock tx.unlock_time = height + CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW; @@ -323,7 +322,6 @@ namespace cryptonote tx.vout.clear(); tx.signatures.clear(); - puts("[*] Using CURRENT_TRANSACTION_VERSION in construct_tx"); tx.version = CURRENT_TRANSACTION_VERSION; tx.unlock_time = unlock_time;