mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Fix codacy comment
This commit is contained in:
parent
bc654f439c
commit
fab37f9f01
1 changed files with 5 additions and 4 deletions
|
@ -764,13 +764,14 @@ public class AccountAgeWitnessService {
|
|||
checkNotNull(trade.getContract().getBuyerPaymentAccountPayload());
|
||||
boolean checkingSignTrade = true;
|
||||
boolean isBuyer = trade.getContract().isMyRoleBuyer(keyRing.getPubKeyRing());
|
||||
if (myWitness == null) {
|
||||
myWitness = isBuyer ?
|
||||
AccountAgeWitness witness = myWitness;
|
||||
if (witness == null) {
|
||||
witness = isBuyer ?
|
||||
getMyWitness(trade.getContract().getBuyerPaymentAccountPayload()) :
|
||||
getMyWitness(trade.getContract().getSellerPaymentAccountPayload());
|
||||
checkingSignTrade = false;
|
||||
}
|
||||
boolean isSignWitnessTrade = accountIsSigner(myWitness) &&
|
||||
boolean isSignWitnessTrade = accountIsSigner(witness) &&
|
||||
!peerHasSignedWitness(trade) &&
|
||||
tradeAmountIsSufficient(trade.getTradeAmount());
|
||||
log.info("AccountSigning: " +
|
||||
|
@ -791,7 +792,7 @@ public class AccountAgeWitnessService {
|
|||
getWitnessDebugLog(trade.getContract().getSellerPaymentAccountPayload(),
|
||||
trade.getContract().getSellerPubKeyRing()),
|
||||
checkingSignTrade, // Following cases added to use same logic as in seller signing check
|
||||
accountIsSigner(myWitness),
|
||||
accountIsSigner(witness),
|
||||
peerHasSignedWitness(trade),
|
||||
trade.getTradeAmount(),
|
||||
tradeAmountIsSufficient(trade.getTradeAmount()),
|
||||
|
|
Loading…
Add table
Reference in a new issue