Skip to content

Commit

Permalink
Revert "AccountAgeWitnessService: Invert toleration condition"
Browse files Browse the repository at this point in the history
This reverts commit 656b3c5.
  • Loading branch information
alejandrogarcia83 committed Feb 3, 2025
1 parent 3b6e1f2 commit 77d2179
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,11 @@ public boolean verifyPeersTradeAmount(Offer offer,
// TOLERATED_SMALL_TRADE_AMOUNT (0.01 BTC) and only in that case return false.
return findWitness(offer)
.map(witness -> verifyPeersTradeLimit(offer, tradeAmount, witness, new Date(), errorMessageHandler))
.orElse(isToleratedSmallestAmount(tradeAmount));
.orElse(isToleratedSmalleAmount(tradeAmount));
}

private boolean isToleratedSmallestAmount(Coin tradeAmount) {
return tradeAmount.value >= OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT.value;
private boolean isToleratedSmalleAmount(Coin tradeAmount) {
return tradeAmount.value <= OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT.value;
}


Expand Down

0 comments on commit 77d2179

Please sign in to comment.