public class StoredServerChannel
extends java.lang.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. |
java.lang.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.VerificationExceptionpublic java.lang.String toString()
toString in class java.lang.Object