public boolean isPendingTransactionRelevant(Transaction tx) throws ScriptException {
   return super.isPendingTransactionRelevant(tx)
       && (tx.getValueSentToMe(this).compareTo(MIN_VALUE) >= 0
           || tx.getValueSentFromMe(this).compareTo(BigInteger.ZERO) > 0);
 }
 @Override
 public boolean isTransactionRelevant(Transaction tx) {
   return super.isTransactionRelevant(tx)
       && (tx.getValueSentToMe(this).compareTo(MIN_VALUE) >= 0
           || tx.getValueSentFromMe(this).compareTo(BigInteger.ZERO) > 0);
 }