return LOCK 90/head
authorfsb4000 <fsb4000@yandex.ru>
Thu, 1 Jan 2015 05:03:03 +0000 (11:03 +0600)
committerfsb4000 <fsb4000@yandex.ru>
Thu, 1 Jan 2015 05:03:03 +0000 (11:03 +0600)
src/rpcdump.cpp

index 6184dfc..8608463 100644 (file)
@@ -56,6 +56,8 @@ Value importprivkey(const Array& params, bool fHelp)
     key.SetSecret(secret, fCompressed);
     CKeyID vchAddress = key.GetPubKey().GetID();
     {
+        LOCK2(cs_main, pwalletMain->cs_wallet);
+
         pwalletMain->MarkDirty();
         pwalletMain->SetAddressBookName(vchAddress, strLabel);