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.testing |
Various utilities for writing unit tests: also useful for testing your own code and apps that build on top of
bitcoinj.
|
Modifier and Type | Method and Description |
---|---|
VersionMessage |
VersionMessage.duplicate() |
VersionMessage |
Peer.getPeerVersionMessage()
Returns version data announced by the remote peer.
|
VersionMessage |
PeerGroup.getVersionMessage()
Returns the version message provided by setVersionMessage or a default if none was given.
|
VersionMessage |
Peer.getVersionMessage()
Returns version data we announce to our remote peers.
|
Modifier and Type | Method and Description |
---|---|
void |
PeerGroup.setVersionMessage(VersionMessage ver)
Sets the
VersionMessage that will be announced on newly created connections. |
Constructor and Description |
---|
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.
|
Modifier and Type | Field and Description |
---|---|
protected VersionMessage |
TestWithPeerGroup.remoteVersionMessage |
Modifier and Type | Method and Description |
---|---|
protected InboundMessageQueuer |
TestWithNetworkConnections.connect(Peer peer,
VersionMessage versionMessage) |
protected InboundMessageQueuer |
TestWithPeerGroup.connectPeer(int id,
VersionMessage versionMessage) |
protected InboundMessageQueuer |
TestWithPeerGroup.handleConnectToPeer(int id,
VersionMessage versionMessage) |
Copyright © 2014. All rights reserved.