Unlock notes+utxos earlier
This commit is contained in:
@@ -169,6 +169,10 @@ void AsyncRPCOperation_sendmany::main() {
|
|||||||
set_error_message("unknown error");
|
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_MINING
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
GenerateBitcoins(GetBoolArg("-gen",false), pwalletMain, GetArg("-genproclimit", 1));
|
GenerateBitcoins(GetBoolArg("-gen",false), pwalletMain, GetArg("-genproclimit", 1));
|
||||||
@@ -179,6 +183,7 @@ void AsyncRPCOperation_sendmany::main() {
|
|||||||
|
|
||||||
stop_execution_clock();
|
stop_execution_clock();
|
||||||
|
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
set_state(OperationStatus::SUCCESS);
|
set_state(OperationStatus::SUCCESS);
|
||||||
} else {
|
} else {
|
||||||
@@ -193,9 +198,6 @@ void AsyncRPCOperation_sendmany::main() {
|
|||||||
}
|
}
|
||||||
LogPrintf("%s",s);
|
LogPrintf("%s",s);
|
||||||
|
|
||||||
unlock_notes(); // clean up
|
|
||||||
unlock_utxos(); // clean up
|
|
||||||
LogPrint("zrpc", "%s: z_sendmany input notes+utxos unlocked\n", getId());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notes:
|
// Notes:
|
||||||
|
|||||||
Reference in New Issue
Block a user