diff options
author | xiphon <xiphon@protonmail.com> | 2020-10-12 21:13:58 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2020-10-13 15:23:35 +0000 |
commit | ec14e4b8cd5b78c8d3251bb205294810b29f880e (patch) | |
tree | 5b9d861c12a4af68c502299f314184a3e8ba3210 /src/wallet/wallet2.h | |
parent | Merge pull request #6819 (diff) | |
download | monero-ec14e4b8cd5b78c8d3251bb205294810b29f880e.tar.xz |
wallet2: skip reorgs exceeding max-reorg-depth wallet setting
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index eac99185c..1c9cca9d8 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -853,6 +853,9 @@ private: 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;} + void max_reorg_depth(uint64_t depth) {m_max_reorg_depth = depth;} + uint64_t max_reorg_depth() const {return m_max_reorg_depth;} + bool deinit(); bool init(std::string daemon_address = "http://localhost:8080", boost::optional<epee::net_utils::http::login> daemon_login = boost::none, @@ -1726,6 +1729,7 @@ private: bool m_explicit_refresh_from_block_height; bool m_confirm_non_default_ring_size; AskPasswordType m_ask_password; + uint64_t m_max_reorg_depth; uint32_t m_min_output_count; uint64_t m_min_output_value; bool m_merge_destinations; |