@ -8264,7 +8264,7 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>>
const uint64_t amount = td . is_rct ( ) ? 0 : td . amount ( ) ;
std : : unordered_set < uint64_t > seen_indices ;
// request more for rct in base recent (locked) coinbases are picked, since they're locked for longer
uint64_t approx_blockchain_height = m_nettype = = TESTNET ? 0 : ( time ( NULL ) - 1522624244 ) / 31 3 ;
uint64_t approx_blockchain_height = m_nettype = = TESTNET ? 0 : ( time ( NULL ) - 1522624244 ) / 31 1 ;
uint64_t unlock_height = td . m_block_height + std : : max < uint64_t > ( CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE , CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_BLOCKS ) ;
if ( td . m_tx . unlock_time < CRYPTONOTE_MAX_BLOCK_NUMBER & & td . m_tx . unlock_time > unlock_height )
unlock_height = td . m_tx . unlock_time ;
@ -8585,7 +8585,7 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>>
for ( size_t idx : selected_transfers )
{
const transfer_details & td = m_transfers [ idx ] ;
uint64_t approx_blockchain_height = m_nettype = = TESTNET ? 0 : ( time ( NULL ) - 1522624244 ) / 31 3 ;
uint64_t approx_blockchain_height = m_nettype = = TESTNET ? 0 : ( time ( NULL ) - 1522624244 ) / 31 1 ;
uint64_t unlock_height = td . m_block_height + std : : max < uint64_t > ( CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE , CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_BLOCKS ) ;
if ( td . m_tx . unlock_time < CRYPTONOTE_MAX_BLOCK_NUMBER & & td . m_tx . unlock_time > unlock_height )
unlock_height = td . m_tx . unlock_time ;
@ -12199,7 +12199,7 @@ uint64_t wallet2::get_daemon_blockchain_target_height(string &err)
uint64_t wallet2 : : get_approximate_blockchain_height ( ) const
{
uint64_t approx_blockchain_height = m_nettype = = TESTNET ? 0 : ( time ( NULL ) - 1522624244 ) / 31 3 ;
uint64_t approx_blockchain_height = m_nettype = = TESTNET ? 0 : ( time ( NULL ) - 1522624244 ) / 31 1 ;
LOG_PRINT_L2 ( " Calculated blockchain height: " < < approx_blockchain_height ) ;
return approx_blockchain_height ;
}