mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
fix: follow up bitcoin#16301 - uncomment missing WalletBatch
This commit is contained in:
parent
c89fd12d48
commit
16d21267a7
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user