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. |
org.bitcoinj.kits |
High level wrapper APIs around the bitcoinj building blocks.
|
org.bitcoinj.params |
Network parameters encapsulate some of the differences between different Bitcoin networks such as the main
network, the testnet, regtest mode, unit testing params and so on.
|
org.bitcoinj.store |
Block stores persist blockchain data downloaded from remote peers.
|
org.bitcoinj.utils |
Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files,
a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else.
|
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 |
---|---|
abstract void |
NetworkParameters.checkDifficultyTransitions(StoredBlock storedPrev,
Block next,
BlockStore blockStore)
Throws an exception if the block's difficulty is not correct.
|
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(Context context,
List<? extends Wallet> wallets,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners (eg, wallets) and a store.
|
AbstractBlockChain(NetworkParameters params,
List<? extends Wallet> transactionReceivedListeners,
BlockStore blockStore)
|
BlockChain(Context context,
BlockStore blockStore)
Constructs a BlockChain that has no wallet at all.
|
BlockChain(Context params,
List<? extends Wallet> wallets,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners and a store.
|
BlockChain(Context context,
Wallet wallet,
BlockStore blockStore)
Constructs a BlockChain connected to the given wallet and store.
|
BlockChain(NetworkParameters params,
BlockStore blockStore)
|
BlockChain(NetworkParameters params,
List<? extends Wallet> wallets,
BlockStore blockStore)
|
BlockChain(NetworkParameters params,
Wallet wallet,
BlockStore blockStore)
|
Modifier and Type | Field and Description |
---|---|
protected BlockStore |
WalletAppKit.vStore |
Modifier and Type | Method and Description |
---|---|
protected BlockStore |
WalletAppKit.provideBlockStore(File file)
Override this to use a
BlockStore that isn't the default of SPVBlockStore . |
BlockStore |
WalletAppKit.store() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractBitcoinNetParams.checkDifficultyTransitions(StoredBlock storedPrev,
Block nextBlock,
BlockStore blockStore) |
void |
TestNet3Params.checkDifficultyTransitions(StoredBlock storedPrev,
Block nextBlock,
BlockStore blockStore) |
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 |
DatabaseFullPrunedBlockStore
A generic full pruned block store for a relational database.
|
class |
H2FullPrunedBlockStore
A full pruned block store using the H2 pure-java embedded database.
|
class |
LevelDBBlockStore
An SPV block store that writes every header it sees to a LevelDB.
|
class |
LevelDBFullPrunedBlockStore
An implementation of a Fully Pruned Block Store using a leveldb implementation as the backing data store.
|
class |
MemoryBlockStore
Keeps
StoredBlock s in memory. |
class |
MemoryFullPrunedBlockStore
|
class |
MySQLFullPrunedBlockStore
A full pruned block store using the MySQL database engine.
|
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 | Method and Description |
---|---|
void |
VersionTally.initialize(BlockStore blockStore,
StoredBlock chainHead)
Initialize the version tally from the block store.
|
Copyright © 2016. All rights reserved.