Unlock notes+utxos earlier

This commit is contained in:
Duke
2025-08-21 01:57:42 -04:00
parent bf55e6daa5
commit b0cbcc6152

View File

@@ -169,6 +169,10 @@ void AsyncRPCOperation_sendmany::main() {
set_error_message("unknown error");
}
unlock_notes();
unlock_utxos();
LogPrintf("%s: z_sendmany input notes+utxos unlocked\n", __func__, getId());
#ifdef ENABLE_MINING
#ifdef ENABLE_WALLET
GenerateBitcoins(GetBoolArg("-gen",false), pwalletMain, GetArg("-genproclimit", 1));
@@ -179,6 +183,7 @@ void AsyncRPCOperation_sendmany::main() {
stop_execution_clock();
if (success) {
set_state(OperationStatus::SUCCESS);
} else {
@@ -193,9 +198,6 @@ void AsyncRPCOperation_sendmany::main() {
}
LogPrintf("%s",s);
unlock_notes(); // clean up
unlock_utxos(); // clean up
LogPrint("zrpc", "%s: z_sendmany input notes+utxos unlocked\n", getId());
}
// Notes: