From fdc382c1f5d995ed39ba93d5977370a50eab70f3 Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 3 Jan 2023 12:13:27 -0500 Subject: [PATCH] assign default restore height of 0 --- src/wallet/monero_wallet_full.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/monero_wallet_full.cpp b/src/wallet/monero_wallet_full.cpp index c554a72..64834f2 100644 --- a/src/wallet/monero_wallet_full.cpp +++ b/src/wallet/monero_wallet_full.cpp @@ -1079,6 +1079,7 @@ namespace monero { if (config.m_seed_offset == boost::none) config_normalized.m_seed_offset = std::string(""); if (config.m_account_lookahead != boost::none && config.m_subaddress_lookahead == boost::none) throw std::runtime_error("No subaddress lookahead provided with account lookahead"); if (config.m_account_lookahead == boost::none && config.m_subaddress_lookahead != boost::none) throw std::runtime_error("No account lookahead provided with subaddress lookahead"); + if (config.m_restore_height == boost::none) config_normalized.m_restore_height = 0; // create wallet if (!config_normalized.m_mnemonic.get().empty()) {