public class StoredServerChannel extends Object
Modifier and Type | Method and Description |
---|---|
PaymentChannelServerState |
getOrCreateState(Wallet wallet,
TransactionBroadcaster broadcaster)
Gets the canonical
PaymentChannelServerState object for this channel, either by returning an existing one
or by creating a new one. |
String |
toString() |
public PaymentChannelServerState getOrCreateState(Wallet wallet, TransactionBroadcaster broadcaster) throws VerificationException
PaymentChannelServerState
object for this channel, either by returning an existing one
or by creating a new one.wallet
- The wallet which holds the PaymentChannelServerState
in which this is saved and which will
be used to complete transactionsbroadcaster
- The TransactionBroadcaster
which will be used to broadcast contract/payment transactions.VerificationException
Copyright © 2014. All rights reserved.