mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-02 22:55:09 -04:00
Improve loggings
This commit is contained in:
parent
5efd69bad4
commit
4232a10f47
4 changed files with 2 additions and 15 deletions
|
@ -61,14 +61,4 @@ public final class SealedAndSigned implements Serializable {
|
|||
result = 31 * result + (sigPublicKey != null ? sigPublicKey.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SealedAndSigned{" +
|
||||
"encryptedSecretKey.hashCode()=" + Arrays.toString(encryptedSecretKey).hashCode() +
|
||||
", encryptedPayloadWithHmac.hashCode()=" + Arrays.toString(encryptedPayloadWithHmac).hashCode() +
|
||||
", signature.hashCode()=" + Arrays.toString(signature).hashCode() +
|
||||
", sigPublicKey.hashCode()=" + sigPublicKey.hashCode() +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -482,7 +482,6 @@ public class TradeWalletService {
|
|||
|
||||
// Add all outputs from offerersDepositTx to depositTx
|
||||
offerersDepositTx.getOutputs().forEach(depositTx::addOutput);
|
||||
|
||||
printTxWithInputs("offerersDepositTx", offerersDepositTx);
|
||||
|
||||
// Sign inputs
|
||||
|
@ -625,7 +624,6 @@ public class TradeWalletService {
|
|||
TransactionInput input = payoutTx.getInput(0);
|
||||
input.setScriptSig(inputScript);
|
||||
|
||||
printTxWithInputs("payoutTx", payoutTx);
|
||||
verifyTransaction(payoutTx);
|
||||
checkWalletConsistency();
|
||||
checkScriptSig(payoutTx, input, 0);
|
||||
|
@ -784,7 +782,6 @@ public class TradeWalletService {
|
|||
TransactionInput input = payoutTx.getInput(0);
|
||||
input.setScriptSig(inputScript);
|
||||
|
||||
printTxWithInputs("disputed payoutTx", payoutTx);
|
||||
verifyTransaction(payoutTx);
|
||||
checkWalletConsistency();
|
||||
checkScriptSig(payoutTx, input, 0);
|
||||
|
|
|
@ -321,7 +321,7 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
|
|||
@Override
|
||||
public void onMessage(Message message, Connection connection) {
|
||||
if (message instanceof PrefixedSealedAndSignedMessage) {
|
||||
Log.traceCall(message.toString() + "\n\tconnection=" + connection);
|
||||
Log.traceCall("\n\t" + message.toString() + "\n\tconnection=" + connection);
|
||||
// Seed nodes don't have set the encryptionService
|
||||
if (optionalEncryptionService.isPresent()) {
|
||||
try {
|
||||
|
|
|
@ -127,7 +127,7 @@ public abstract class NetworkNode implements MessageListener, ConnectionListener
|
|||
}
|
||||
|
||||
public SettableFuture<Connection> sendMessage(Connection connection, Message message) {
|
||||
Log.traceCall("message=" + message + "\n\tconnection=" + connection);
|
||||
Log.traceCall("\n\tmessage=" + message + "\n\tconnection=" + connection);
|
||||
// connection.sendMessage might take a bit (compression, write to stream), so we use a thread to not block
|
||||
ListenableFuture<Connection> future = executorService.submit(() -> {
|
||||
Thread.currentThread().setName("NetworkNode:SendMessage-to-" + connection.getUid());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue