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/wallet_errors.h | |
parent | Merge pull request #6819 (diff) | |
download | monero-ec14e4b8cd5b78c8d3251bb205294810b29f880e.tar.xz |
wallet2: skip reorgs exceeding max-reorg-depth wallet setting
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet_errors.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h index e889ed7d1..4a89ed81a 100644 --- a/src/wallet/wallet_errors.h +++ b/src/wallet/wallet_errors.h @@ -428,6 +428,16 @@ namespace tools std::string to_string() const { return refresh_error::to_string(); } }; //---------------------------------------------------------------------------------------------------- + struct reorg_depth_error : public refresh_error + { + explicit reorg_depth_error(std::string&& loc, const std::string& message) + : refresh_error(std::move(loc), message) + { + } + + std::string to_string() const { return refresh_error::to_string(); } + }; + //---------------------------------------------------------------------------------------------------- struct signature_check_failed : public wallet_logic_error { explicit signature_check_failed(std::string&& loc, const std::string& message) |