Added more debug

This commit is contained in:
MoneroOcean
2018-03-25 01:36:29 +01:00
parent 5db1cd5360
commit 396950ef28
2 changed files with 4 additions and 3 deletions

View File

@@ -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)

View File

@@ -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;