mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01:00
Add more logs to empyt wallet and double spend method
This commit is contained in:
parent
60e3f155b6
commit
972721cdba
2 changed files with 5 additions and 2 deletions
|
@ -526,7 +526,7 @@ public class BtcWalletService extends WalletService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sendResult != null) {
|
if (sendResult != null) {
|
||||||
log.debug("Broadcasting double spending transaction. " + newTransaction);
|
log.info("Broadcasting double spending transaction. " + sendResult.tx);
|
||||||
Futures.addCallback(sendResult.broadcastComplete, new FutureCallback<Transaction>() {
|
Futures.addCallback(sendResult.broadcastComplete, new FutureCallback<Transaction>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Transaction result) {
|
public void onSuccess(Transaction result) {
|
||||||
|
@ -536,7 +536,7 @@ public class BtcWalletService extends WalletService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(@NotNull Throwable t) {
|
public void onFailure(@NotNull Throwable t) {
|
||||||
log.info("Broadcasting double spending transaction failed. " + t.getMessage());
|
log.error("Broadcasting double spending transaction failed. " + t.getMessage());
|
||||||
errorMessageHandler.handleErrorMessage(t.getMessage());
|
errorMessageHandler.handleErrorMessage(t.getMessage());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -548,6 +548,7 @@ public class BtcWalletService extends WalletService {
|
||||||
"Missing " + (e.missing != null ? e.missing.toFriendlyString() : "null"));
|
"Missing " + (e.missing != null ? e.missing.toFriendlyString() : "null"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
log.warn("sendResult is null");
|
||||||
errorMessageHandler.handleErrorMessage("We could not find inputs we control in the transaction we want to double spend.");
|
errorMessageHandler.handleErrorMessage("We could not find inputs we control in the transaction we want to double spend.");
|
||||||
}
|
}
|
||||||
} else if (confidenceType == TransactionConfidence.ConfidenceType.BUILDING) {
|
} else if (confidenceType == TransactionConfidence.ConfidenceType.BUILDING) {
|
||||||
|
|
|
@ -452,11 +452,13 @@ public abstract class WalletService {
|
||||||
Futures.addCallback(sendResult.broadcastComplete, new FutureCallback<Transaction>() {
|
Futures.addCallback(sendResult.broadcastComplete, new FutureCallback<Transaction>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Transaction result) {
|
public void onSuccess(Transaction result) {
|
||||||
|
log.info("emptyWallet onSuccess Transaction=" + result);
|
||||||
resultHandler.handleResult();
|
resultHandler.handleResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(@NotNull Throwable t) {
|
public void onFailure(@NotNull Throwable t) {
|
||||||
|
log.error("emptyWallet onFailure " + t.toString());
|
||||||
errorMessageHandler.handleErrorMessage(t.getMessage());
|
errorMessageHandler.handleErrorMessage(t.getMessage());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue