Log value of status and correctly return status value instead of always returning success, derp
This commit is contained in:
@@ -293,10 +293,9 @@ bool AsyncRPCOperation_sweep::main_impl() {
|
|||||||
pwalletMain->fSweepRunning = false;
|
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);
|
setSweepResult(numTxCreated, amountSwept, sweepTxIds);
|
||||||
return true;
|
return status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AsyncRPCOperation_sweep::setSweepResult(int numTxCreated, const CAmount& amountSwept, const std::vector<std::string>& sweepTxIds) {
|
void AsyncRPCOperation_sweep::setSweepResult(int numTxCreated, const CAmount& amountSwept, const std::vector<std::string>& sweepTxIds) {
|
||||||
|
|||||||
Reference in New Issue
Block a user