mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Log warning when unable to sign AccountAgeWitness.
This commit is contained in:
parent
1b26cffe7d
commit
1a010ec274
@ -744,6 +744,7 @@ public class AccountAgeWitnessService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Optional<SignedWitness> traderSignAndPublishPeersAccountAgeWitness(Trade trade) {
|
public Optional<SignedWitness> traderSignAndPublishPeersAccountAgeWitness(Trade trade) {
|
||||||
|
try {
|
||||||
AccountAgeWitness peersWitness = findTradePeerWitness(trade).orElse(null);
|
AccountAgeWitness peersWitness = findTradePeerWitness(trade).orElse(null);
|
||||||
Coin tradeAmount = trade.getAmount();
|
Coin tradeAmount = trade.getAmount();
|
||||||
checkNotNull(trade.getProcessModel().getTradePeer().getPubKeyRing(), "Peer must have a keyring");
|
checkNotNull(trade.getProcessModel().getTradePeer().getPubKeyRing(), "Peer must have a keyring");
|
||||||
@ -753,9 +754,8 @@ public class AccountAgeWitnessService {
|
|||||||
checkNotNull(tradeAmount, "Trade amount must not be null");
|
checkNotNull(tradeAmount, "Trade amount must not be null");
|
||||||
checkNotNull(peersPubKey, "Peers pub key must not be null");
|
checkNotNull(peersPubKey, "Peers pub key must not be null");
|
||||||
|
|
||||||
try {
|
|
||||||
return signedWitnessService.signAndPublishAccountAgeWitness(tradeAmount, peersWitness, peersPubKey);
|
return signedWitnessService.signAndPublishAccountAgeWitness(tradeAmount, peersWitness, peersPubKey);
|
||||||
} catch (CryptoException e) {
|
} catch (Exception e) {
|
||||||
log.warn("Trader failed to sign witness, exception {}", e.toString());
|
log.warn("Trader failed to sign witness, exception {}", e.toString());
|
||||||
}
|
}
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
|
Loading…
Reference in New Issue
Block a user