diff --git a/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClient.java b/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClient.java index 6c41613c..cba2946e 100644 --- a/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClient.java +++ b/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClient.java @@ -469,7 +469,7 @@ public class PaymentChannelClient implements IPaymentChannelClient { * @return a future that completes when the server acknowledges receipt and acceptance of the payment. */ public ListenableFuture incrementPayment(Coin size) throws ValueOutOfRangeException, IllegalStateException { - return incrementPayment(size, ByteString.EMPTY); + return incrementPayment(size, null); } /** 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 69fd5045..610b4da7 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 @@ -137,7 +137,7 @@ public class PaymentChannelClientConnection { * (see {@link PaymentChannelClientConnection#getChannelOpenFuture()} for the second) */ public ListenableFuture incrementPayment(Coin size) throws ValueOutOfRangeException, IllegalStateException { - return channelClient.incrementPayment(size, ByteString.EMPTY); + return channelClient.incrementPayment(size, null); } /** * Increments the total value which we pay the server. diff --git a/core/src/test/java/com/google/bitcoin/protocols/channels/ChannelConnectionTest.java b/core/src/test/java/com/google/bitcoin/protocols/channels/ChannelConnectionTest.java index 0b08f801..b24fb388 100644 --- a/core/src/test/java/com/google/bitcoin/protocols/channels/ChannelConnectionTest.java +++ b/core/src/test/java/com/google/bitcoin/protocols/channels/ChannelConnectionTest.java @@ -171,8 +171,8 @@ public class ChannelConnectionTest extends TestWithWallet { Thread.sleep(1250); // No timeouts once the channel is open Coin amount = client.state().getValueSpent(); - q.take().assertPair(amount, ByteString.EMPTY); - ByteString[] infos = new ByteString[]{ByteString.EMPTY, ByteString.copyFromUtf8("one"),ByteString.copyFromUtf8("two")}; + q.take().assertPair(amount, null); + ByteString[] infos = new ByteString[]{null, ByteString.copyFromUtf8("one"),ByteString.copyFromUtf8("two")}; for (ByteString info : infos) { client.incrementPayment(CENT, info).get(); amount = amount.add(CENT);