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. |
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 |
---|---|
protected Peer |
PeerGroup.createPeer(PeerAddress address,
VersionMessage ver)
You can override this to customise the creation of
Peer objects. |
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)
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.
|
Copyright © 2016. All rights reserved.