/** * Will this transaction be relayable and mined by default miners? */ public boolean isDust() { // Transactions that are OP_RETURN can't be dust regardless of their value. if (getScriptPubKey().isOpReturn()) return false; return getValue().isLessThan(getMinNonDustValue()); }
/** * Will this transaction be relayable and mined by default miners? */ public boolean isDust() { // Transactions that are OP_RETURN can't be dust regardless of their value. if (getScriptPubKey().isOpReturn()) return false; return getValue().isLessThan(getMinNonDustValue()); }
/** * Will this transaction be relayable and mined by default miners? */ public boolean isDust() { // Transactions that are OP_RETURN can't be dust regardless of their value. if (getScriptPubKey().isOpReturn()) return false; return getValue().isLessThan(getMinNonDustValue()); }
/** * Will this transaction be relayable and mined by default miners? */ public boolean isDust() { // Transactions that are OP_RETURN can't be dust regardless of their value. if (getScriptPubKey().isOpReturn()) return false; return getValue().isLessThan(getMinNonDustValue()); }
if(valueIn.subtract(valueOut).isLessThan(Coin.CENT)) { log.info("instantsend-IsIXTXValid - did not include enough fees in transaction {}\n{}", valueOut.subtract(valueIn).toFriendlyString(), txCollateral.toString()); return false;
@Override public void send() { String recipientAddress = view.getRecipient(); String amount = view.getAmount(); if(TextUtils.isEmpty(recipientAddress) || recipientAddress.equals("Scan recipient QR")) { view.showToastMessage("Select recipient"); return; } if(TextUtils.isEmpty(amount) | Double.parseDouble(amount) <= 0) { view.showToastMessage("Select valid amount"); return; } if(walletAppKit.wallet().getBalance().isLessThan(Coin.parseCoin(amount))) { view.showToastMessage("You got not enough coins"); view.clearAmount(); return; } SendRequest request = SendRequest.to(Address.fromBase58(parameters, recipientAddress), Coin.parseCoin(amount)); try { walletAppKit.wallet().completeTx(request); walletAppKit.wallet().commitTx(request.tx); walletAppKit.peerGroup().broadcastTransaction(request.tx).broadcast(); } catch (InsufficientMoneyException e) { e.printStackTrace(); view.showToastMessage(e.getMessage()); } }
if(fee != null && fee.isLessThan(getMinFee())) { log.info("instantsend--CTxLockRequest::IsValid -- did not include enough fees in transaction: fees="+nValueOut.subtract(nValueIn)+", tx="+toString()); return false;
if (!fee.isLessThan(feeNeeded)) {
if (!fullyUsedUp && refundSize.isLessThan(req.tx.getOutput(0).getMinNonDustValue())) throw new ValueOutOfRangeException("Attempt to refund negative value or value too small to be accepted by the network");
if (!fullyUsedUp && refundSize.isLessThan(req.tx.getOutput(0).getMinNonDustValue())) throw new ValueOutOfRangeException("Attempt to refund negative value or value too small to be accepted by the network");
if (!fullyUsedUp && refundSize.isLessThan(req.tx.getOutput(0).getMinNonDustValue())) throw new ValueOutOfRangeException("Attempt to refund negative value or value too small to be accepted by the network");
if (!fullyUsedUp && refundSize.isLessThan(req.tx.getOutput(0).getMinNonDustValue())) throw new ValueOutOfRangeException("Attempt to refund negative value or value too small to be accepted by the network");
@Test public void testOperators() { assertTrue(SATOSHI.isPositive()); assertFalse(SATOSHI.isNegative()); assertFalse(SATOSHI.isZero()); assertFalse(NEGATIVE_SATOSHI.isPositive()); assertTrue(NEGATIVE_SATOSHI.isNegative()); assertFalse(NEGATIVE_SATOSHI.isZero()); assertFalse(ZERO.isPositive()); assertFalse(ZERO.isNegative()); assertTrue(ZERO.isZero()); assertTrue(valueOf(2).isGreaterThan(valueOf(1))); assertFalse(valueOf(2).isGreaterThan(valueOf(2))); assertFalse(valueOf(1).isGreaterThan(valueOf(2))); assertTrue(valueOf(1).isLessThan(valueOf(2))); assertFalse(valueOf(2).isLessThan(valueOf(2))); assertFalse(valueOf(2).isLessThan(valueOf(1))); }
.isLessThan(txCoin.getOutput(0).getValue().multiply(txCoin.getConfidence().getDepthInBlocks())));