Package | Description |
---|---|
com.google.bitcoin.core | |
com.google.bitcoin.protocols.channels | |
com.google.bitcoin.utils |
Modifier and Type | Class and Description |
---|---|
class |
PeerGroup
Runs a set of connections to the P2P network, brings up connections to replace disconnected nodes and manages
the interaction between them all.
|
Modifier and Type | Method and Description |
---|---|
Wallet.SendResult |
Wallet.sendCoins(TransactionBroadcaster broadcaster,
Address to,
BigInteger value)
Sends coins to the given address, via the given
PeerGroup . |
Wallet.SendResult |
Wallet.sendCoins(TransactionBroadcaster broadcaster,
Wallet.SendRequest request)
Sends coins according to the given request, via the given
TransactionBroadcaster . |
void |
Wallet.setTransactionBroadcaster(TransactionBroadcaster broadcaster)
Specifies that the given
TransactionBroadcaster , typically a PeerGroup , should be used for
sending transactions to the Bitcoin network by default. |
Modifier and Type | Method and Description |
---|---|
PaymentChannelServerState |
StoredServerChannel.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. |
Constructor and Description |
---|
PaymentChannelServer(TransactionBroadcaster broadcaster,
Wallet wallet,
BigInteger minAcceptedChannelSize,
PaymentChannelServer.ServerConnection conn)
Creates a new server-side state manager which handles a single client connection.
|
PaymentChannelServerListener(TransactionBroadcaster broadcaster,
Wallet wallet,
int timeoutSeconds,
BigInteger minAcceptedChannelSize,
PaymentChannelServerListener.HandlerFactory eventHandlerFactory)
Sets up a new payment channel server which listens on the given port.
|
PaymentChannelServerState(TransactionBroadcaster broadcaster,
Wallet wallet,
ECKey serverKey,
long minExpireTime)
Creates a new state object to track the server side of a payment channel.
|
StoredPaymentChannelClientStates(Wallet containingWallet,
TransactionBroadcaster announcePeerGroup)
Creates a new StoredPaymentChannelClientStates and associates it with the given
Wallet and
TransactionBroadcaster which are used to complete and announce contract and refund
transactions. |
StoredPaymentChannelServerStates(Wallet wallet,
TransactionBroadcaster broadcaster)
Creates a new PaymentChannelServerStateManager and associates it with the given
Wallet and
TransactionBroadcaster which are used to complete and announce payment transactions. |
Modifier and Type | Class and Description |
---|---|
class |
MockTransactionBroadcaster
A mock transaction broadcaster can be used in unit tests as a stand-in for a PeerGroup.
|
Copyright © 2014. All rights reserved.