Package | Description |
---|---|
com.google.bitcoin.protocols.channels |
Modifier and Type | Method and Description |
---|---|
StoredServerChannel |
StoredPaymentChannelServerStates.getChannel(Sha256Hash id)
Gets the
StoredServerChannel with the given channel id (ie contract transaction hash). |
Modifier and Type | Method and Description |
---|---|
void |
StoredPaymentChannelServerStates.closeChannel(StoredServerChannel channel)
Closes the given channel using
ServerConnectionEventHandler.closeChannel() and
PaymentChannelServerState.close() to notify any connected client of channel closure and to complete and
broadcast the latest payment transaction. |
void |
StoredPaymentChannelServerStates.putChannel(StoredServerChannel channel)
Puts the given channel in the channels map and automatically closes it 2 hours before its refund transaction
becomes spendable.
|
Copyright © 2014. All rights reserved.