fix: follow up bitcoin#16301 - uncomment missing WalletBatch

This commit is contained in:
Konstantin Akimov 2023-02-17 17:11:02 +07:00 committed by PastaPastaPasta
parent c89fd12d48
commit 16d21267a7

View File

@ -488,8 +488,7 @@ UniValue importwallet(const JSONRPCRequest& request)
throw JSONRPCError(RPC_WALLET_ERROR, "Importing wallets is disabled when blocks are pruned");
}
// KNST
// WalletBatch batch(pwallet->GetDBHandle());
WalletBatch batch(pwallet->GetDBHandle());
WalletRescanReserver reserver(pwallet);
if (!reserver.reserve()) {
throw JSONRPCError(RPC_WALLET_ERROR, "Wallet is currently rescanning. Abort existing rescan or wait.");