From f40785fbdf9a0e5c65c68252c970ffd7b314a2a0 Mon Sep 17 00:00:00 2001 From: ollekullberg Date: Thu, 16 Oct 2014 15:23:50 +0200 Subject: [PATCH] ExamplePaymentChannelClient should not send PeerGroup to the extension, since it uses WalletAppKit. --- .../org/bitcoinj/examples/ExamplePaymentChannelClient.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/src/main/java/org/bitcoinj/examples/ExamplePaymentChannelClient.java b/examples/src/main/java/org/bitcoinj/examples/ExamplePaymentChannelClient.java index 273a68fe8..01b6a336e 100644 --- a/examples/src/main/java/org/bitcoinj/examples/ExamplePaymentChannelClient.java +++ b/examples/src/main/java/org/bitcoinj/examples/ExamplePaymentChannelClient.java @@ -73,7 +73,9 @@ public class ExamplePaymentChannelClient { // The StoredPaymentChannelClientStates object is responsible for, amongst other things, broadcasting // the refund transaction if its lock time has expired. It also persists channels so we can resume them // after a restart. - return ImmutableList.of(new StoredPaymentChannelClientStates(null, peerGroup())); + // We should not send a PeerGroup in the StoredPaymentChannelClientStates constructor + // since WalletAppKit will find it for us. + return ImmutableList.of(new StoredPaymentChannelClientStates(null)); } }; appKit.connectToLocalHost();