Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
and block chain management. |
org.bitcoinj.core.listeners | |
org.bitcoinj.jni | |
org.bitcoinj.kits |
High level wrapper APIs around the bitcoinj building blocks.
|
Modifier and Type | Field and Description |
---|---|
PeerAddress |
VersionMessage.myAddr
What the other side believes the address of this program is.
|
protected PeerAddress |
PeerSocketHandler.peerAddress |
PeerAddress |
VersionMessage.theirAddr
What the other side believes their own address is.
|
Modifier and Type | Method and Description |
---|---|
PeerAddress |
PeerSocketHandler.getAddress() |
static PeerAddress |
PeerAddress.localhost(NetworkParameters params) |
Modifier and Type | Method and Description |
---|---|
List<PeerAddress> |
AddressMessage.getAddresses() |
Set<PeerAddress> |
TransactionConfidence.getBroadcastBy()
Returns a snapshot of
PeerAddress es that announced the transaction. |
Modifier and Type | Method and Description |
---|---|
void |
PeerGroup.addAddress(PeerAddress peerAddress)
Add an address to the list of potential peers to connect to.
|
void |
AddressMessage.addAddress(PeerAddress address) |
protected Peer |
PeerGroup.connectTo(PeerAddress address,
boolean incrementMaxConnections,
int connectTimeoutMillis)
Creates a version message to send, constructs a Peer object and attempts to connect it.
|
protected Peer |
PeerGroup.createPeer(PeerAddress address,
VersionMessage ver)
You can override this to customise the creation of
Peer objects. |
boolean |
TransactionConfidence.markBroadcastBy(PeerAddress address)
Called by a
Peer when a transaction is pending and announced by a peer. |
TransactionConfidence |
TxConfidenceTable.seen(Sha256Hash hash,
PeerAddress byPeer)
Called by peers when they see a transaction advertised in an "inv" message.
|
boolean |
TransactionConfidence.wasBroadcastBy(PeerAddress address)
Returns true if the given address has been seen via markBroadcastBy()
|
Constructor and Description |
---|
Peer(NetworkParameters params,
AbstractBlockChain blockChain,
PeerAddress peerAddress,
String thisSoftwareName,
String thisSoftwareVersion)
Construct a peer that reads/writes from the given chain.
|
Peer(NetworkParameters params,
VersionMessage ver,
AbstractBlockChain chain,
PeerAddress remoteAddress)
Construct a peer that reads/writes from the given block chain.
|
Peer(NetworkParameters params,
VersionMessage ver,
PeerAddress remoteAddress,
AbstractBlockChain chain)
Construct a peer that reads/writes from the given block chain.
|
Peer(NetworkParameters params,
VersionMessage ver,
PeerAddress remoteAddress,
AbstractBlockChain chain,
int downloadTxDependencyDepth)
Construct a peer that reads/writes from the given block chain.
|
PeerSocketHandler(NetworkParameters params,
PeerAddress peerAddress) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractPeerConnectionEventListener.onPeersDiscovered(Set<PeerAddress> peerAddresses)
Deprecated.
|
void |
PeerDiscoveredEventListener.onPeersDiscovered(Set<PeerAddress> peerAddresses)
Called when peers are discovered, this happens at startup of
PeerGroup or if we run out of
suitable Peer s to connect to. |
void |
AbstractPeerEventListener.onPeersDiscovered(Set<PeerAddress> peerAddresses)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
NativePeerEventListener.onPeersDiscovered(Set<PeerAddress> peerAddresses) |
Modifier and Type | Field and Description |
---|---|
protected PeerAddress[] |
WalletAppKit.peerAddresses |
Modifier and Type | Method and Description |
---|---|
WalletAppKit |
WalletAppKit.setPeerNodes(PeerAddress... addresses)
Will only connect to the given addresses.
|
Copyright © 2016. All rights reserved.