Package | Description |
---|---|
com.google.bitcoin.core | |
com.google.bitcoin.utils |
Modifier and Type | Method and Description |
---|---|
Message |
BitcoinSerializer.deserialize(ByteBuffer in)
Reads a message from the given ByteBuffer and returns it.
|
static StoredBlock |
StoredBlock.deserializeCompact(NetworkParameters params,
ByteBuffer buffer)
De-serializes the stored block from a custom packed format.
|
BitcoinSerializer.BitcoinPacketHeader |
BitcoinSerializer.deserializeHeader(ByteBuffer in)
Deserializes only the header in case packet meta data is needed before decoding
the payload.
|
Message |
BitcoinSerializer.deserializePayload(BitcoinSerializer.BitcoinPacketHeader header,
ByteBuffer in)
Deserialize payload only.
|
void |
Message.ensureParsed()
In lazy parsing mode access to getters and setters may throw an unchecked LazyParseException.
|
void |
EmptyMessage.ensureParsed() |
void |
Block.ensureParsed()
In lazy parsing mode access to getters and setters may throw an unchecked LazyParseException.
|
void |
Block.ensureParsedHeader()
In lazy parsing mode access to getters and setters may throw an unchecked LazyParseException.
|
void |
Block.ensureParsedTransactions()
In lazy parsing mode access to getters and setters may throw an unchecked LazyParseException.
|
void |
VersionMessage.parse() |
protected void |
PeerAddress.parse() |
void |
ListMessage.parse() |
void |
GetBlocksMessage.parse() |
protected void |
VersionMessage.parseLite() |
protected void |
TransactionOutput.parseLite() |
protected void |
TransactionOutPoint.parseLite() |
protected void |
TransactionInput.parseLite() |
protected void |
Transaction.parseLite() |
protected abstract void |
Message.parseLite()
Perform the most minimal parse possible to calculate the length of the message.
|
protected void |
MemoryPoolMessage.parseLite() |
protected void |
ListMessage.parseLite() |
protected void |
HeadersMessage.parseLite() |
protected void |
GetBlocksMessage.parseLite() |
protected void |
FilteredBlock.parseLite() |
protected void |
EmptyMessage.parseLite() |
protected void |
BloomFilter.parseLite() |
protected void |
Block.parseLite() |
protected void |
AlertMessage.parseLite() |
protected void |
AddressMessage.parseLite() |
com.google.common.util.concurrent.ListenableFuture<Long> |
Peer.ping()
Sends the peer a ping message and returns a future that will be invoked when the pong is received back.
|
protected com.google.common.util.concurrent.ListenableFuture<Long> |
Peer.ping(long nonce) |
Constructor and Description |
---|
AlertMessage(NetworkParameters params,
byte[] payloadBytes) |
BitcoinSerializer.BitcoinPacketHeader(ByteBuffer in) |
Block(NetworkParameters params,
byte[] payloadBytes)
Constructs a block object from the Bitcoin wire format.
|
Block(NetworkParameters params,
byte[] payloadBytes,
boolean parseLazy,
boolean parseRetain,
int length)
Contruct a block object from the Bitcoin wire format.
|
BloomFilter(NetworkParameters params,
byte[] payloadBytes)
Construct a BloomFilter by deserializing payloadBytes
|
ChildMessage(NetworkParameters params,
byte[] msg,
int offset) |
ChildMessage(NetworkParameters params,
byte[] msg,
int offset,
int protocolVersion) |
ChildMessage(NetworkParameters params,
byte[] msg,
int offset,
int protocolVersion,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length) |
ChildMessage(NetworkParameters params,
byte[] msg,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length) |
EmptyMessage(NetworkParameters params,
byte[] msg,
int offset) |
FilteredBlock(NetworkParameters params,
byte[] payloadBytes) |
GetBlocksMessage(NetworkParameters params,
byte[] msg) |
GetDataMessage(NetworkParameters params,
byte[] payloadBytes) |
GetDataMessage(NetworkParameters params,
byte[] msg,
boolean parseLazy,
boolean parseRetain,
int length)
Deserializes a 'getdata' message.
|
GetHeadersMessage(NetworkParameters params,
byte[] msg) |
HeadersMessage(NetworkParameters params,
Block... headers) |
HeadersMessage(NetworkParameters params,
byte[] payload) |
InventoryMessage(NetworkParameters params,
byte[] bytes) |
InventoryMessage(NetworkParameters params,
byte[] msg,
boolean parseLazy,
boolean parseRetain,
int length)
Deserializes an 'inv' message.
|
ListMessage(NetworkParameters params,
byte[] bytes) |
ListMessage(NetworkParameters params,
byte[] msg,
boolean parseLazy,
boolean parseRetain,
int length) |
NotFoundMessage(NetworkParameters params,
byte[] payloadBytes) |
PartialMerkleTree(NetworkParameters params,
byte[] payloadBytes,
int offset) |
PeerAddress(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion)
Construct a peer address from a serialized payload.
|
PeerAddress(NetworkParameters params,
byte[] msg,
int offset,
int protocolVersion,
Message parent,
boolean parseLazy,
boolean parseRetain)
Construct a peer address from a serialized payload.
|
Ping(NetworkParameters params,
byte[] payloadBytes) |
Pong(NetworkParameters params,
byte[] payloadBytes) |
Transaction(NetworkParameters params,
byte[] payloadBytes)
Creates a transaction from the given serialized bytes, eg, from a block or a tx network message.
|
Transaction(NetworkParameters params,
byte[] payload,
int offset)
Creates a transaction by reading payload starting from offset bytes in.
|
Transaction(NetworkParameters params,
byte[] msg,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length)
Creates a transaction by reading payload starting from offset bytes in.
|
Transaction(NetworkParameters params,
byte[] msg,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length)
Creates a transaction by reading payload starting from offset bytes in.
|
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] payload,
int offset)
Deserializes an input message.
|
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] msg,
int offset,
boolean parseLazy,
boolean parseRetain)
Deserializes an input message.
|
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset)
/**
Deserializes the message.
|
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain)
Deserializes the message.
|
TransactionOutput(NetworkParameters params,
Transaction parent,
byte[] payload,
int offset)
Deserializes a transaction output message.
|
TransactionOutput(NetworkParameters params,
Transaction parent,
byte[] msg,
int offset,
boolean parseLazy,
boolean parseRetain)
Deserializes a transaction output message.
|
UnknownMessage(NetworkParameters params,
String name,
byte[] payloadBytes) |
VersionMessage(NetworkParameters params,
byte[] msg) |
Modifier and Type | Method and Description |
---|---|
static Transaction |
TestUtils.createFakeTx(NetworkParameters params,
BigInteger nanocoins,
Address to) |
static Transaction[] |
TestUtils.createFakeTx(NetworkParameters params,
BigInteger nanocoins,
Address to,
Address from) |
static Transaction |
TestUtils.createFakeTx(NetworkParameters params,
BigInteger nanocoins,
ECKey to) |
static Transaction |
TestUtils.createFakeTxWithChangeAddress(NetworkParameters params,
BigInteger nanocoins,
Address to,
Address changeOutput) |
static Transaction |
TestUtils.roundTripTransaction(NetworkParameters params,
Transaction tx)
Roundtrip a transaction so that it appears as if it has just come from the wire
|
Copyright © 2014. All rights reserved.