Package | Description |
---|---|
org.bitcoinj.protocols.channels |
Micropayment channels allow for rapid tiny payments to be made to a third party once a channel has been set up, using
some of the advanced features of the Bitcoin protocol.
|
Modifier and Type | Field and Description |
---|---|
protected StoredServerChannel |
PaymentChannelServerState.storedServerChannel |
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 |
---|---|
Map<Sha256Hash,StoredServerChannel> |
StoredPaymentChannelServerStates.getChannelMap()
Get a copy of all
StoredServerChannel s |
Modifier and Type | Method and Description |
---|---|
void |
StoredPaymentChannelServerStates.closeChannel(StoredServerChannel channel)
Closes the given channel using
ServerConnectionEventHandler.closeChannel() and
PaymentChannelV1ServerState.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.
|
void |
StoredPaymentChannelServerStates.updatedChannel(StoredServerChannel channel)
Notifies the set of stored states that a channel has been updated.
|
Copyright © 2016. All rights reserved.