From 0fe56bf5440c7ceceb9a531706235ec841fde2d9 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 15 Jul 2013 17:38:02 +0200 Subject: [PATCH] Let balance check fail later iff the server wants maxValue --- .../protocols/channels/PaymentChannelClientConnection.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClientConnection.java b/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClientConnection.java index 3a8e8835..8d7b22d1 100644 --- a/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClientConnection.java +++ b/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClientConnection.java @@ -61,8 +61,6 @@ public class PaymentChannelClientConnection { */ public PaymentChannelClientConnection(InetSocketAddress server, int timeoutSeconds, Wallet wallet, ECKey myKey, BigInteger maxValue, String serverId) throws IOException, ValueOutOfRangeException { - if (wallet.getBalance().compareTo(maxValue) < 0) - throw new ValueOutOfRangeException("Insufficient balance in this wallet to open the requested payment channel."); // Glue the object which vends/ingests protobuf messages in order to manage state to the network object which // reads/writes them to the wire in length prefixed form. channelClient = new PaymentChannelClient(wallet, myKey, maxValue, Sha256Hash.create(serverId.getBytes()),