Log value of status and correctly return status value instead of always returning success, derp

This commit is contained in:
Duke Leto
2022-08-30 21:05:57 -04:00
parent b4b6988eb0
commit b50c51f797

View File

@@ -293,10 +293,9 @@ bool AsyncRPCOperation_sweep::main_impl() {
pwalletMain->fSweepRunning = false;
}
LogPrintf("%s: Created %d transactions with total output amount=%s\n", getId(), numTxCreated, FormatMoney(amountSwept));
LogPrintf("%s: Created %d transactions with total output amount=%s, status=%d\n", getId(), numTxCreated, FormatMoney(amountSwept), (int)status);
setSweepResult(numTxCreated, amountSwept, sweepTxIds);
return true;
return status;
}
void AsyncRPCOperation_sweep::setSweepResult(int numTxCreated, const CAmount& amountSwept, const std::vector<std::string>& sweepTxIds) {