@@ -293,10 +293,7 @@ RPCHelpMan importaddress()
293
293
if (fRescan )
294
294
{
295
295
RescanWallet (*pwallet, reserver);
296
- {
297
- LOCK (pwallet->cs_wallet );
298
- pwallet->ResubmitWalletTransactions (/* relay=*/ false , /* force=*/ true );
299
- }
296
+ pwallet->ResubmitWalletTransactions (/* relay=*/ false , /* force=*/ true );
300
297
}
301
298
302
299
return UniValue::VNULL;
@@ -474,10 +471,7 @@ RPCHelpMan importpubkey()
474
471
if (fRescan )
475
472
{
476
473
RescanWallet (*pwallet, reserver);
477
- {
478
- LOCK (pwallet->cs_wallet );
479
- pwallet->ResubmitWalletTransactions (/* relay=*/ false , /* force=*/ true );
480
- }
474
+ pwallet->ResubmitWalletTransactions (/* relay=*/ false , /* force=*/ true );
481
475
}
482
476
483
477
return UniValue::VNULL;
@@ -1406,10 +1400,7 @@ RPCHelpMan importmulti()
1406
1400
}
1407
1401
if (fRescan && fRunScan && requests.size ()) {
1408
1402
int64_t scannedTime = pwallet->RescanFromTime (nLowestTimestamp, reserver, true /* update */ );
1409
- {
1410
- LOCK (pwallet->cs_wallet );
1411
- pwallet->ResubmitWalletTransactions (/* relay=*/ false , /* force=*/ true );
1412
- }
1403
+ pwallet->ResubmitWalletTransactions (/* relay=*/ false , /* force=*/ true );
1413
1404
1414
1405
if (pwallet->IsAbortingRescan ()) {
1415
1406
throw JSONRPCError (RPC_MISC_ERROR, " Rescan aborted by user." );
@@ -1700,10 +1691,7 @@ RPCHelpMan importdescriptors()
1700
1691
// Rescan the blockchain using the lowest timestamp
1701
1692
if (rescan) {
1702
1693
int64_t scanned_time = pwallet->RescanFromTime (lowest_timestamp, reserver, true /* update */ );
1703
- {
1704
- LOCK (pwallet->cs_wallet );
1705
- pwallet->ResubmitWalletTransactions (/* relay=*/ false , /* force=*/ true );
1706
- }
1694
+ pwallet->ResubmitWalletTransactions (/* relay=*/ false , /* force=*/ true );
1707
1695
1708
1696
if (pwallet->IsAbortingRescan ()) {
1709
1697
throw JSONRPCError (RPC_MISC_ERROR, " Rescan aborted by user." );
0 commit comments