Use DEFAULT_TX_SPENDABLE_AGE rather than CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW for mixin selection

This commit is contained in:
Javier Smooth
2015-10-12 06:39:17 -07:00
parent a3a20096cc
commit f3f09bde98
3 changed files with 3 additions and 2 deletions
+2
View File
@@ -123,3 +123,5 @@
#define THREAD_STACK_SIZE 5 * 1024 * 1024
#define CONFIG_DONATION_ADDRESS "WmsSWgtT1JPg5e3cK41hKXSHVpKW7e47bjgiKmWZkYrhSS5LhRemNyqayaSBtAQ6517eo5PtH9wxHVmM78JDZSUu2W8PqRiNs"
#define DEFAULT_TX_SPENDABLE_AGE 10
+1 -1
View File
@@ -989,7 +989,7 @@ size_t blockchain_storage::find_end_of_allowed_index(const std::vector<std::pair
--i;
transactions_container::iterator it = m_transactions.find(amount_outs[i].first);
CHECK_AND_ASSERT_MES(it != m_transactions.end(), 0, "internal error: failed to find transaction from outputs index with tx_id=" << amount_outs[i].first);
if(it->second.m_keeper_block_height + CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW <= get_current_blockchain_height() )
if(it->second.m_keeper_block_height + DEFAULT_TX_SPENDABLE_AGE <= get_current_blockchain_height() )
return i+1;
} while (i != 0);
return 0;
-1
View File
@@ -50,7 +50,6 @@
#include "wallet_errors.h"
#include <iostream>
#define DEFAULT_TX_SPENDABLE_AGE 10
#define WALLET_RCP_CONNECTION_TIMEOUT 200000
namespace tools