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 | 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.