Merge pull request 'Decoy selection fix' (#489) from wowario/wownero:decoy-fix into master

Reviewed-on: https://codeberg.org/wownero/wownero/pulls/489
This commit is contained in:
wowario
2024-12-15 20:30:27 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -2471,7 +2471,7 @@ bool Blockchain::get_output_distribution(uint64_t amount, uint64_t from_height,
{
case STAGENET: start_height = stagenet_hard_forks[3].height; break;
case TESTNET: start_height = testnet_hard_forks[3].height; break;
case MAINNET: start_height = mainnet_hard_forks[3].height; break;
case MAINNET: start_height = 0; break;
case FAKECHAIN: start_height = 0; break;
default: return false;
}

View File

@@ -8799,8 +8799,8 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>>
// check we're clear enough of rct start, to avoid corner cases below
THROW_WALLET_EXCEPTION_IF(rct_offsets.size() <= CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE,
error::get_output_distribution, "Not enough rct outputs");
//THROW_WALLET_EXCEPTION_IF(rct_offsets.back() <= max_rct_index,
//error::get_output_distribution, "Daemon reports suspicious number of rct outputs");
THROW_WALLET_EXCEPTION_IF(rct_offsets.back() <= max_rct_index,
error::get_output_distribution, "Daemon reports suspicious number of rct outputs");
}
// get histogram for the amounts we need