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;