From ff0fb4b6ed7f2b5924afc6f6122741dfb53eb3f6 Mon Sep 17 00:00:00 2001 From: wowario Date: Sat, 14 Dec 2024 09:53:01 +0300 Subject: [PATCH 1/2] revert revert sanity check --- src/wallet/wallet2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 30b3502dc..eb9b1ef9d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -8799,8 +8799,8 @@ void wallet2::get_outs(std::vector> // 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 From 60386e7cf4fd2fe01a6c0a378213e0f5134920ef Mon Sep 17 00:00:00 2001 From: wowario Date: Sat, 14 Dec 2024 09:56:43 +0300 Subject: [PATCH 2/2] RingCT start height --- src/cryptonote_core/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 0af5c829a..de6dd7ab4 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -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; }