mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
ExamplePaymentChannelClient should not send PeerGroup to the extension, since it uses WalletAppKit.
This commit is contained in:
parent
b3f19ee0fc
commit
f40785fbdf
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ public class ExamplePaymentChannelClient {
|
||||||
// The StoredPaymentChannelClientStates object is responsible for, amongst other things, broadcasting
|
// 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
|
// the refund transaction if its lock time has expired. It also persists channels so we can resume them
|
||||||
// after a restart.
|
// after a restart.
|
||||||
return ImmutableList.<WalletExtension>of(new StoredPaymentChannelClientStates(null, peerGroup()));
|
// We should not send a PeerGroup in the StoredPaymentChannelClientStates constructor
|
||||||
|
// since WalletAppKit will find it for us.
|
||||||
|
return ImmutableList.<WalletExtension>of(new StoredPaymentChannelClientStates(null));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
appKit.connectToLocalHost();
|
appKit.connectToLocalHost();
|
||||||
|
|
Loading…
Add table
Reference in a new issue