com.google.bitcoin.protocols.channels
Class StoredServerChannel
java.lang.Object
com.google.bitcoin.protocols.channels.StoredServerChannel
public class StoredServerChannel
- extends Object
Represents the state of a channel once it has been opened in such a way that it can be stored and used to resume a
channel which was interrupted (eg on connection failure) or settle the channel automatically as the channel expire
time approaches.
getOrCreateState
public PaymentChannelServerState getOrCreateState(Wallet wallet,
TransactionBroadcaster broadcaster)
throws VerificationException
- Gets the canonical
PaymentChannelServerState object for this channel, either by returning an existing one
or by creating a new one.
- Parameters:
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.
- Throws:
VerificationException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014. All rights reserved.