simplewallet: lock idle scope when sweeping

This ensures the chain and related structures can't change
while we're using them
This commit is contained in:
moneromooo-monero 2017-06-30 09:33:37 +01:00
parent 0c6ea4f8a6
commit 5cea355232
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 0 deletions

View File

@ -2751,6 +2751,8 @@ bool simple_wallet::sweep_main(uint64_t below, const std::vector<std::string> &a
} }
} }
LOCK_IDLE_SCOPE();
try try
{ {
// figure out what tx will be necessary // figure out what tx will be necessary