Package | Description |
---|---|
com.google.bitcoin.core | |
com.google.bitcoin.store | |
com.google.bitcoin.utils |
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 |
Modifier and Type | Method and Description |
---|---|
static TestUtils.BlockPair |
TestUtils.createFakeBlock(BlockStore blockStore,
long timeSeconds,
Transaction... transactions) |
static TestUtils.BlockPair |
TestUtils.createFakeBlock(BlockStore blockStore,
Transaction... transactions) |
static Block |
TestUtils.makeSolvedTestBlock(BlockStore blockStore,
Address coinsTo) |
Copyright © 2014. All rights reserved.