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.store |
Block stores persist blockchain data downloaded from remote peers.
|
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 | Field and Description |
---|---|
protected BlockStore |
BlockChain.blockStore
Keeps a map of block hashes to StoredBlocks.
|
Modifier and Type | Method and Description |
---|---|
BlockStore |
AbstractBlockChain.getBlockStore()
Returns the
BlockStore the chain was constructed with. |
Modifier and Type | Method and Description |
---|---|
static void |
CheckpointManager.checkpoint(NetworkParameters params,
InputStream checkpoints,
BlockStore store,
long time)
Convenience method that creates a CheckpointManager, loads the given data, gets the checkpoint for the given
time, then inserts it into the store and sets that to be the chain head.
|
StoredBlock |
StoredBlock.getPrev(BlockStore store)
Given a block store, looks up the previous block in this chain.
|
Constructor and Description |
---|
AbstractBlockChain(NetworkParameters params,
List<BlockChainListener> listeners,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners (eg, wallets) and a store.
|
BlockChain(NetworkParameters params,
BlockStore blockStore)
Constructs a BlockChain that has no wallet at all.
|
BlockChain(NetworkParameters params,
List<BlockChainListener> wallets,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners and a store.
|
BlockChain(NetworkParameters params,
Wallet wallet,
BlockStore blockStore)
Constructs a BlockChain connected to the given wallet and store.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FullPrunedBlockStore
An implementor of FullPrunedBlockStore saves StoredBlock objects to some storage mechanism.
|
Modifier and Type | Class and Description |
---|---|
class |
H2FullPrunedBlockStore
A full pruned block store using the H2 pure-java embedded database.
|
class |
MemoryBlockStore
Keeps
StoredBlock s in memory. |
class |
MemoryFullPrunedBlockStore
|
class |
PostgresFullPrunedBlockStore
A full pruned block store using the Postgres database engine.
|
class |
SPVBlockStore
An SPVBlockStore holds a limited number of block headers in a memory mapped ring buffer.
|
Modifier and Type | Field and Description |
---|---|
protected BlockStore |
TestWithWallet.blockStore |
protected BlockStore |
TestWithNetworkConnections.blockStore |
Modifier and Type | Method and Description |
---|---|
static FakeTxBuilder.BlockPair |
FakeTxBuilder.createFakeBlock(BlockStore blockStore,
long timeSeconds,
Transaction... transactions)
Emulates receiving a valid block that builds on top of the chain.
|
static FakeTxBuilder.BlockPair |
FakeTxBuilder.createFakeBlock(BlockStore blockStore,
Transaction... transactions) |
static Block |
FakeTxBuilder.makeSolvedTestBlock(BlockStore blockStore,
Address coinsTo) |
void |
TestWithPeerGroup.setUp(BlockStore blockStore) |
void |
TestWithNetworkConnections.setUp(BlockStore blockStore) |
Copyright © 2014. All rights reserved.