diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-04-12 11:00:47 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-04-12 11:00:47 +0200 |
| commit | ebb55f797bd9e610a9ac93fc3c0a29bb9dbd105d (patch) | |
| tree | 29cba6bcdeb697563148c16201e5f78a556720f8 /src/wallet/wallet2.cpp | |
| parent | 8902ddb91acf7874745261ed7cefbc4de2a34c5e (diff) | |
| parent | 0098ed338c50076e98f0ff1c3938bde17da931ce (diff) | |
| download | monzero-core-ebb55f797bd9e610a9ac93fc3c0a29bb9dbd105d.tar.gz monzero-core-ebb55f797bd9e610a9ac93fc3c0a29bb9dbd105d.tar.xz monzero-core-ebb55f797bd9e610a9ac93fc3c0a29bb9dbd105d.zip | |
Merge pull request #3468
0098ed33 wallet2: fix for loading settings of key reuse mitigation (stoffu)
Diffstat (limited to 'src/wallet/wallet2.cpp')
| -rw-r--r-- | src/wallet/wallet2.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 0f3201fdf..5b2187eb5 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2669,6 +2669,9 @@ bool wallet2::load_keys(const std::string& keys_file_name, const epee::wipeable_ m_confirm_backlog_threshold = 0; m_confirm_export_overwrite = true; m_auto_low_priority = true; + m_segregate_pre_fork_outputs = true; + m_key_reuse_mitigation2 = true; + m_segregation_height = 0; m_key_on_device = false; } else if(json.IsObject()) @@ -2785,6 +2788,12 @@ bool wallet2::load_keys(const std::string& keys_file_name, const epee::wipeable_ (boost::format("%s wallet cannot be opened as %s wallet") % (field_nettype == 0 ? "Mainnet" : field_nettype == 1 ? "Testnet" : "Stagenet") % (m_nettype == MAINNET ? "mainnet" : m_nettype == TESTNET ? "testnet" : "stagenet")).str()); + GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, segregate_pre_fork_outputs, int, Int, false, true); + m_segregate_pre_fork_outputs = field_segregate_pre_fork_outputs; + GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, key_reuse_mitigation2, int, Int, false, true); + m_key_reuse_mitigation2 = field_key_reuse_mitigation2; + GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, segregation_height, int, Uint, false, 0); + m_segregation_height = field_segregation_height; } else { |
