diff options
author | Maximilian Lupke <maxlupke@gmail.com> | 2018-01-23 15:42:11 +0100 |
---|---|---|
committer | Maximilian Lupke <maxlupke@gmail.com> | 2018-01-24 18:01:08 +0100 |
commit | 3be98036e7c11131226aa21dca63d29055507625 (patch) | |
tree | 974b54fa427faed45fffe044e2c94acdb0363e73 /src/wallet/wallet2.h | |
parent | Merge pull request #3115 (diff) | |
download | monero-3be98036e7c11131226aa21dca63d29055507625.tar.xz |
wallet-cli: Do not ask for scan_from_height if it explicitly is set to zero.
Fixes #3080
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 2fbe05f89..409ed5305 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -550,6 +550,9 @@ namespace tools void set_refresh_from_block_height(uint64_t height) {m_refresh_from_block_height = height;} uint64_t get_refresh_from_block_height() const {return m_refresh_from_block_height;} + void explicit_refresh_from_block_height(bool expl) {m_explicit_refresh_from_block_height = expl;} + bool explicit_refresh_from_block_height() const {return m_explicit_refresh_from_block_height;} + // upper_transaction_size_limit as defined below is set to // approximately 125% of the fixed minimum allowable penalty // free block size. TODO: fix this so that it actually takes @@ -1082,6 +1085,9 @@ namespace tools RefreshType m_refresh_type; bool m_auto_refresh; uint64_t m_refresh_from_block_height; + // If m_refresh_from_block_height is explicitly set to zero we need this to differentiate it from the case that + // m_refresh_from_block_height was defaulted to zero.*/ + bool m_explicit_refresh_from_block_height; bool m_confirm_missing_payment_id; bool m_ask_password; uint32_t m_min_output_count; |