diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-06-30 09:33:37 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-06-30 09:33:37 +0100 |
| commit | 5cea35523215c5e44ca7639c64e87d3430a155f0 (patch) | |
| tree | 5a8c2f879c58dc2b57ac809a0f605aab769b2709 /src/simplewallet/simplewallet.cpp | |
| parent | 0c6ea4f8a634179506fac61d6d5286feeb66ae64 (diff) | |
| download | monzero-core-5cea35523215c5e44ca7639c64e87d3430a155f0.tar.gz monzero-core-5cea35523215c5e44ca7639c64e87d3430a155f0.tar.xz monzero-core-5cea35523215c5e44ca7639c64e87d3430a155f0.zip | |
simplewallet: lock idle scope when sweeping
This ensures the chain and related structures can't change
while we're using them
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 2 |
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 |
