diff --git a/core/src/main/java/bisq/core/account/sign/SignedWitnessService.java b/core/src/main/java/bisq/core/account/sign/SignedWitnessService.java index b06be721f31..120da2dc4a9 100644 --- a/core/src/main/java/bisq/core/account/sign/SignedWitnessService.java +++ b/core/src/main/java/bisq/core/account/sign/SignedWitnessService.java @@ -144,6 +144,7 @@ public void signAccountAgeWitness(Coin tradeAmount, PublicKey peersPubKey) { if (isSignedAccountAgeWitness(accountAgeWitness)) { log.warn("Arbitrator trying to sign already signed accountagewitness {}", accountAgeWitness.toString()); + return; } String accountAgeWitnessHashAsHex = Utilities.encodeToHex(accountAgeWitness.getHash()); @@ -160,12 +161,12 @@ public void signAccountAgeWitness(Coin tradeAmount, } // Any peer can sign with DSA key - public SignedWitness signAccountAgeWitness(Coin tradeAmount, - AccountAgeWitness accountAgeWitness, - PublicKey peersPubKey) throws CryptoException { + public void signAccountAgeWitness(Coin tradeAmount, + AccountAgeWitness accountAgeWitness, + PublicKey peersPubKey) throws CryptoException { if (isSignedAccountAgeWitness(accountAgeWitness)) { log.warn("Trader trying to sign already signed accountagewitness {}", accountAgeWitness.toString()); - return null; + return; } byte[] signature = Sig.sign(keyRing.getSignatureKeyPair().getPrivate(), accountAgeWitness.getHash()); @@ -178,7 +179,6 @@ public SignedWitness signAccountAgeWitness(Coin tradeAmount, tradeAmount.value); publishSignedWitness(signedWitness); log.info("Trader signed witness {}", signedWitness.toString()); - return signedWitness; } public boolean verifySignature(SignedWitness signedWitness) { diff --git a/core/src/main/java/bisq/core/account/witness/AccountAgeWitnessService.java b/core/src/main/java/bisq/core/account/witness/AccountAgeWitnessService.java index d56285695d1..3e5a948f64d 100644 --- a/core/src/main/java/bisq/core/account/witness/AccountAgeWitnessService.java +++ b/core/src/main/java/bisq/core/account/witness/AccountAgeWitnessService.java @@ -17,7 +17,6 @@ package bisq.core.account.witness; -import bisq.core.account.sign.SignedWitness; import bisq.core.account.sign.SignedWitnessService; import bisq.core.filter.FilterManager; import bisq.core.filter.PaymentAccountFilter;