Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
block chain management and the Wallet class. |
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() |
ListIterator<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.
|
boolean |
TransactionConfidence.markBroadcastBy(PeerAddress address)
Called by a
Peer when a transaction is pending and announced by a peer. |
void |
MemoryPool.seen(Sha256Hash hash,
PeerAddress byPeer)
Called by peers when they see a transaction advertised in an "inv" message.
|
Transaction |
MemoryPool.seen(Transaction tx,
PeerAddress byPeer)
Called by peers when they receive a "tx" message containing a valid serialized transaction.
|
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,
MemoryPool mempool)
Construct a peer that reads/writes from the given block chain and memory pool.
|
Peer(NetworkParameters params,
VersionMessage ver,
PeerAddress remoteAddress,
AbstractBlockChain chain,
MemoryPool mempool,
boolean downloadTxDependencies)
Construct a peer that reads/writes from the given block chain and memory pool.
|
PeerSocketHandler(NetworkParameters params,
PeerAddress peerAddress) |
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 © 2014. All rights reserved.