aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-06-30 09:33:37 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-06-30 09:33:37 +0100
commit5cea35523215c5e44ca7639c64e87d3430a155f0 (patch)
tree5a8c2f879c58dc2b57ac809a0f605aab769b2709 /src/simplewallet/simplewallet.cpp
parentMerge pull request #2111 (diff)
downloadmonero-5cea35523215c5e44ca7639c64e87d3430a155f0.tar.xz
simplewallet: lock idle scope when sweeping
This ensures the chain and related structures can't change while we're using them
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 4d53f063e..85ea07e94 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -2751,6 +2751,8 @@ bool simple_wallet::sweep_main(uint64_t below, const std::vector<std::string> &a
}
}
+ LOCK_IDLE_SCOPE();
+
try
{
// figure out what tx will be necessary