increase default restore height

pull/259/head
larteyoh 4 weeks ago
parent 54b654fe31
commit be21827c10

@ -534,7 +534,7 @@ Page {
id: walletRestoreHeightField
Layout.fillWidth: true
Layout.preferredHeight: 50
placeholderText: qsTr("Restore Height (default: 1570000)"); placeholderTextColor: (NeroshopComponents.Style.darkTheme) ? "#a9a9a9" : "#696969"
placeholderText: qsTr("Restore Height (default: 1580000)"); placeholderTextColor: (NeroshopComponents.Style.darkTheme) ? "#a9a9a9" : "#696969"
color: (NeroshopComponents.Style.darkTheme) ? "#ffffff" : "#000000" // textColor
selectByMouse: true
validator: RegExpValidator{ regExp: /[0-9]*/ }

@ -138,7 +138,7 @@ int neroshop::Wallet::restore_from_seed(const std::string& seed, uint64_t restor
wallet_config_obj.m_password = "";
wallet_config_obj.m_network_type = static_cast<monero::monero_network_type>(Wallet::network_type);
wallet_config_obj.m_seed = seed;
wallet_config_obj.m_restore_height = (restore_height == 0) ? 1570000 : restore_height;//1570000 (stagenet);3120000 (mainnet)
wallet_config_obj.m_restore_height = (restore_height == 0) ? 1580000 : restore_height;//1580000 (stagenet);3120000 (mainnet)
try {
monero_wallet_obj = std::unique_ptr<monero_wallet_full>(monero_wallet_full::create_wallet (wallet_config_obj, nullptr));

Loading…
Cancel
Save