From 5cea35523215c5e44ca7639c64e87d3430a155f0 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 30 Jun 2017 09:33:37 +0100 Subject: simplewallet: lock idle scope when sweeping This ensures the chain and related structures can't change while we're using them --- src/simplewallet/simplewallet.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/simplewallet') 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 &a } } + LOCK_IDLE_SCOPE(); + try { // figure out what tx will be necessary -- cgit v1.2.3