public static SendRequest toCLTVPaymentChannel(NetworkParameters params, int releaseBlock, ECKey from, ECKey to, Coin value) { checkArgument(0 <= releaseBlock && releaseBlock < Transaction.LOCKTIME_THRESHOLD, "Block number was too large"); return toCLTVPaymentChannel(params, BigInteger.valueOf(releaseBlock), from, to, value); }
public static SendRequest toCLTVPaymentChannel(NetworkParameters params, Date releaseTime, ECKey from, ECKey to, Coin value) { long time = releaseTime.getTime() / 1000L; checkArgument(time >= Transaction.LOCKTIME_THRESHOLD, "Release time was too small"); return toCLTVPaymentChannel(params, BigInteger.valueOf(time), from, to, value); }
public static SendRequest toCLTVPaymentChannel(NetworkParameters params, int releaseBlock, ECKey from, ECKey to, Coin value) { checkArgument(0 <= releaseBlock && releaseBlock < Transaction.LOCKTIME_THRESHOLD, "Block number was too large"); return toCLTVPaymentChannel(params, BigInteger.valueOf(releaseBlock), from, to, value); }
public static SendRequest toCLTVPaymentChannel(NetworkParameters params, Date releaseTime, ECKey from, ECKey to, Coin value) { long time = releaseTime.getTime() / 1000L; checkArgument(time >= Transaction.LOCKTIME_THRESHOLD, "Release time was too small"); return toCLTVPaymentChannel(params, BigInteger.valueOf(time), from, to, value); }
public static SendRequest toCLTVPaymentChannel(NetworkParameters params, int releaseBlock, ECKey from, ECKey to, Coin value) { checkArgument(0 <= releaseBlock && releaseBlock < Transaction.LOCKTIME_THRESHOLD, "Block number was too large"); return toCLTVPaymentChannel(params, BigInteger.valueOf(releaseBlock), from, to, value); }
public static SendRequest toCLTVPaymentChannel(NetworkParameters params, int releaseBlock, ECKey from, ECKey to, Coin value) { checkArgument(0 <= releaseBlock && releaseBlock < Transaction.LOCKTIME_THRESHOLD, "Block number was too large"); return toCLTVPaymentChannel(params, BigInteger.valueOf(releaseBlock), from, to, value); }
public static SendRequest toCLTVPaymentChannel(NetworkParameters params, Date releaseTime, ECKey from, ECKey to, Coin value) { long time = releaseTime.getTime() / 1000L; checkArgument(time >= Transaction.LOCKTIME_THRESHOLD, "Release time was too small"); return toCLTVPaymentChannel(params, BigInteger.valueOf(time), from, to, value); }
public static SendRequest toCLTVPaymentChannel(NetworkParameters params, Date releaseTime, ECKey from, ECKey to, Coin value) { long time = releaseTime.getTime() / 1000L; checkArgument(time >= Transaction.LOCKTIME_THRESHOLD, "Release time was too small"); return toCLTVPaymentChannel(params, BigInteger.valueOf(time), from, to, value); }
SendRequest req = SendRequest.toCLTVPaymentChannel(params, BigInteger.valueOf(lockTime), refundKey, outputKey, value); if (req.tx.getOutputs().size() == 1 && req.tx.getOutput(0).getValue().equals(wallet.getBalance())) { log.info("Emptying out wallet, recipient may get less than what you expect");