|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use StoredBlock | |
|---|---|
| com.google.bitcoin.core | |
| com.google.bitcoin.jni | |
| com.google.bitcoin.store | |
| com.google.bitcoin.utils | |
| Uses of StoredBlock in com.google.bitcoin.core |
|---|
| Fields in com.google.bitcoin.core declared as StoredBlock | |
|---|---|
protected StoredBlock |
AbstractBlockChain.chainHead
Tracks the top of the best known chain. |
| Fields in com.google.bitcoin.core with type parameters of type StoredBlock | |
|---|---|
protected TreeMap<Long,StoredBlock> |
CheckpointManager.checkpoints
|
| Methods in com.google.bitcoin.core that return StoredBlock | |
|---|---|
protected StoredBlock |
FullPrunedBlockChain.addToBlockStore(StoredBlock storedPrev,
Block block)
|
protected StoredBlock |
BlockChain.addToBlockStore(StoredBlock storedPrev,
Block blockHeader)
|
protected abstract StoredBlock |
AbstractBlockChain.addToBlockStore(StoredBlock storedPrev,
Block block)
Adds/updates the given Block with the block store. |
protected StoredBlock |
FullPrunedBlockChain.addToBlockStore(StoredBlock storedPrev,
Block header,
TransactionOutputChanges txOutChanges)
|
protected StoredBlock |
BlockChain.addToBlockStore(StoredBlock storedPrev,
Block blockHeader,
TransactionOutputChanges txOutChanges)
|
protected abstract StoredBlock |
AbstractBlockChain.addToBlockStore(StoredBlock storedPrev,
Block header,
TransactionOutputChanges txOutputChanges)
Adds/updates the given StoredBlock with the block store. |
StoredBlock |
StoredBlock.build(Block block)
Creates a new StoredBlock, calculating the additional fields by adding to the values in this block. |
static StoredBlock |
StoredBlock.deserializeCompact(NetworkParameters params,
ByteBuffer buffer)
De-serializes the stored block from a custom packed format. |
StoredBlock |
AbstractBlockChain.getChainHead()
Returns the block at the head of the current best chain. |
StoredBlock |
CheckpointManager.getCheckpointBefore(long time)
Returns a StoredBlock representing the last checkpoint before the given time, for example, normally
you would want to know the checkpoint before the earliest wallet birthday. |
StoredBlock |
StoredBlock.getPrev(BlockStore store)
Given a block store, looks up the previous block in this chain. |
protected StoredBlock |
FullPrunedBlockChain.getStoredBlockInCurrentScope(Sha256Hash hash)
|
protected StoredBlock |
BlockChain.getStoredBlockInCurrentScope(Sha256Hash hash)
|
protected abstract StoredBlock |
AbstractBlockChain.getStoredBlockInCurrentScope(Sha256Hash hash)
For a standard BlockChain, this should return blockStore.get(hash), for a FullPrunedBlockChain blockStore.getOnceUndoableStoredBlock(hash) |
| Methods in com.google.bitcoin.core that return types with arguments of type StoredBlock | |
|---|---|
com.google.common.util.concurrent.ListenableFuture<StoredBlock> |
AbstractBlockChain.getHeightFuture(int height)
Returns a future that completes when the block chain has reached the given height. |
| Methods in com.google.bitcoin.core with parameters of type StoredBlock | |
|---|---|
protected StoredBlock |
FullPrunedBlockChain.addToBlockStore(StoredBlock storedPrev,
Block block)
|
protected StoredBlock |
BlockChain.addToBlockStore(StoredBlock storedPrev,
Block blockHeader)
|
protected abstract StoredBlock |
AbstractBlockChain.addToBlockStore(StoredBlock storedPrev,
Block block)
Adds/updates the given Block with the block store. |
protected StoredBlock |
FullPrunedBlockChain.addToBlockStore(StoredBlock storedPrev,
Block header,
TransactionOutputChanges txOutChanges)
|
protected StoredBlock |
BlockChain.addToBlockStore(StoredBlock storedPrev,
Block blockHeader,
TransactionOutputChanges txOutChanges)
|
protected abstract StoredBlock |
AbstractBlockChain.addToBlockStore(StoredBlock storedPrev,
Block header,
TransactionOutputChanges txOutputChanges)
Adds/updates the given StoredBlock with the block store. |
protected TransactionOutputChanges |
FullPrunedBlockChain.connectTransactions(StoredBlock newBlock)
|
protected TransactionOutputChanges |
BlockChain.connectTransactions(StoredBlock newBlock)
|
protected abstract TransactionOutputChanges |
AbstractBlockChain.connectTransactions(StoredBlock newBlock)
Load newBlock from BlockStore and connect its transactions, returning changes to the set of unspent transactions. |
protected void |
FullPrunedBlockChain.disconnectTransactions(StoredBlock oldBlock)
This is broken for blocks that do not pass BIP30, so all BIP30-failing blocks which are allowed to fail BIP30 must be checkpointed. |
protected void |
BlockChain.disconnectTransactions(StoredBlock block)
|
protected abstract void |
AbstractBlockChain.disconnectTransactions(StoredBlock block)
Disconnect each transaction in the block (after reading it from the block store) Only called if(shouldVerifyTransactions()) |
protected void |
FullPrunedBlockChain.doSetChainHead(StoredBlock chainHead)
|
protected void |
BlockChain.doSetChainHead(StoredBlock chainHead)
|
protected abstract void |
AbstractBlockChain.doSetChainHead(StoredBlock chainHead)
Called before setting chain head in memory. |
boolean |
StoredBlock.moreWorkThan(StoredBlock other)
Returns true if this objects chainWork is higher than the others. |
void |
Wallet.notifyNewBestBlock(StoredBlock block)
Called by the BlockChain when a new block on the best chain is seen, AFTER relevant wallet
transactions are extracted and sent to us UNLESS the new block caused a re-org, in which case this will
not be called (the Wallet.reorganize(StoredBlock, java.util.List, java.util.List) method will
call this one in that case). |
void |
BlockChainListener.notifyNewBestBlock(StoredBlock block)
Called by the BlockChain when a new block on the best chain is seen, AFTER relevant
transactions are extracted and sent to us UNLESS the new block caused a re-org, in which case this will
not be called (the Wallet.reorganize(StoredBlock, java.util.List, java.util.List) method will
call this one in that case). |
void |
AbstractBlockChainListener.notifyNewBestBlock(StoredBlock block)
|
void |
Wallet.notifyTransactionIsInBlock(Sha256Hash txHash,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
Called by the BlockChain when we receive a new filtered block that contains a transactions previously
received by a call to @{link receivePending}. |
void |
BlockChainListener.notifyTransactionIsInBlock(Sha256Hash txHash,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
Called by the BlockChain when we receive a new FilteredBlock that contains the given
transaction hash in its merkle tree. |
void |
AbstractBlockChainListener.notifyTransactionIsInBlock(Sha256Hash txHash,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
|
void |
Wallet.receiveFromBlock(Transaction tx,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
Called by the BlockChain when we receive a new block that sends coins to one of our addresses or
spends coins from one of our addresses (note that a single transaction can do both). |
void |
BlockChainListener.receiveFromBlock(Transaction tx,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
Called by the BlockChain when we receive a new block that contains a relevant transaction. |
void |
AbstractBlockChainListener.receiveFromBlock(Transaction tx,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
|
void |
Wallet.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
Don't call this directly. |
void |
BlockChainListener.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
Called by the BlockChain when the best chain (representing total work done) has changed. |
void |
AbstractBlockChainListener.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
|
void |
Transaction.setBlockAppearance(StoredBlock block,
boolean bestChain,
int relativityOffset)
Puts the given block in the internal set of blocks in which this transaction appears. |
protected void |
AbstractBlockChain.setChainHead(StoredBlock chainHead)
|
| Method parameters in com.google.bitcoin.core with type arguments of type StoredBlock | |
|---|---|
void |
Wallet.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
Don't call this directly. |
void |
Wallet.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
Don't call this directly. |
void |
BlockChainListener.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
Called by the BlockChain when the best chain (representing total work done) has changed. |
void |
BlockChainListener.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
Called by the BlockChain when the best chain (representing total work done) has changed. |
void |
AbstractBlockChainListener.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
|
void |
AbstractBlockChainListener.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
|
| Uses of StoredBlock in com.google.bitcoin.jni |
|---|
| Methods in com.google.bitcoin.jni with parameters of type StoredBlock | |
|---|---|
void |
NativeBlockChainListener.notifyNewBestBlock(StoredBlock block)
|
void |
NativeBlockChainListener.notifyTransactionIsInBlock(Sha256Hash txHash,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
|
void |
NativeBlockChainListener.receiveFromBlock(Transaction tx,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
|
void |
NativeBlockChainListener.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
|
| Method parameters in com.google.bitcoin.jni with type arguments of type StoredBlock | |
|---|---|
void |
NativeBlockChainListener.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
|
void |
NativeBlockChainListener.reorganize(StoredBlock splitPoint,
List<StoredBlock> oldBlocks,
List<StoredBlock> newBlocks)
|
| Uses of StoredBlock in com.google.bitcoin.store |
|---|
| Fields in com.google.bitcoin.store declared as StoredBlock | |
|---|---|
StoredBlock |
MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag.block
|
protected StoredBlock |
SPVBlockStore.lastChainHead
|
| Fields in com.google.bitcoin.store with type parameters of type StoredBlock | |
|---|---|
protected LinkedHashMap<Sha256Hash,StoredBlock> |
SPVBlockStore.blockCache
|
| Methods in com.google.bitcoin.store that return StoredBlock | |
|---|---|
StoredBlock |
SPVBlockStore.get(Sha256Hash hash)
|
StoredBlock |
PostgresFullPrunedBlockStore.get(Sha256Hash hash)
|
StoredBlock |
MemoryFullPrunedBlockStore.get(Sha256Hash hash)
|
StoredBlock |
MemoryBlockStore.get(Sha256Hash hash)
|
StoredBlock |
H2FullPrunedBlockStore.get(Sha256Hash hash)
|
StoredBlock |
BlockStore.get(Sha256Hash hash)
Returns the StoredBlock given a hash. |
StoredBlock |
PostgresFullPrunedBlockStore.get(Sha256Hash hash,
boolean wasUndoableOnly)
|
StoredBlock |
H2FullPrunedBlockStore.get(Sha256Hash hash,
boolean wasUndoableOnly)
|
StoredBlock |
SPVBlockStore.getChainHead()
|
StoredBlock |
PostgresFullPrunedBlockStore.getChainHead()
|
StoredBlock |
MemoryFullPrunedBlockStore.getChainHead()
|
StoredBlock |
MemoryBlockStore.getChainHead()
|
StoredBlock |
H2FullPrunedBlockStore.getChainHead()
|
StoredBlock |
BlockStore.getChainHead()
Returns the StoredBlock that represents the top of the chain of greatest total work. |
StoredBlock |
PostgresFullPrunedBlockStore.getOnceUndoableStoredBlock(Sha256Hash hash)
|
StoredBlock |
MemoryFullPrunedBlockStore.getOnceUndoableStoredBlock(Sha256Hash hash)
|
StoredBlock |
H2FullPrunedBlockStore.getOnceUndoableStoredBlock(Sha256Hash hash)
|
StoredBlock |
FullPrunedBlockStore.getOnceUndoableStoredBlock(Sha256Hash hash)
Returns the StoredBlock that was added as a StoredUndoableBlock given a hash. |
StoredBlock |
PostgresFullPrunedBlockStore.getVerifiedChainHead()
|
StoredBlock |
MemoryFullPrunedBlockStore.getVerifiedChainHead()
|
StoredBlock |
H2FullPrunedBlockStore.getVerifiedChainHead()
|
StoredBlock |
FullPrunedBlockStore.getVerifiedChainHead()
Returns the StoredBlock that represents the top of the chain of greatest total work that has
been fully verified and the point in the chain at which the unspent transaction output set in this
store represents. |
| Methods in com.google.bitcoin.store with parameters of type StoredBlock | |
|---|---|
void |
SPVBlockStore.put(StoredBlock block)
|
void |
PostgresFullPrunedBlockStore.put(StoredBlock storedBlock)
|
void |
MemoryFullPrunedBlockStore.put(StoredBlock block)
|
void |
MemoryBlockStore.put(StoredBlock block)
|
void |
H2FullPrunedBlockStore.put(StoredBlock storedBlock)
|
void |
BlockStore.put(StoredBlock block)
Saves the given block header+extra data. |
void |
PostgresFullPrunedBlockStore.put(StoredBlock storedBlock,
StoredUndoableBlock undoableBlock)
|
void |
MemoryFullPrunedBlockStore.put(StoredBlock storedBlock,
StoredUndoableBlock undoableBlock)
|
void |
H2FullPrunedBlockStore.put(StoredBlock storedBlock,
StoredUndoableBlock undoableBlock)
|
void |
FullPrunedBlockStore.put(StoredBlock storedBlock,
StoredUndoableBlock undoableBlock)
Saves the given StoredUndoableBlock and StoredBlock. |
void |
SPVBlockStore.setChainHead(StoredBlock chainHead)
|
void |
PostgresFullPrunedBlockStore.setChainHead(StoredBlock chainHead)
|
void |
MemoryFullPrunedBlockStore.setChainHead(StoredBlock chainHead)
|
void |
MemoryBlockStore.setChainHead(StoredBlock chainHead)
|
void |
H2FullPrunedBlockStore.setChainHead(StoredBlock chainHead)
|
void |
BlockStore.setChainHead(StoredBlock chainHead)
Sets the StoredBlock that represents the top of the chain of greatest total work. |
void |
PostgresFullPrunedBlockStore.setVerifiedChainHead(StoredBlock chainHead)
|
void |
MemoryFullPrunedBlockStore.setVerifiedChainHead(StoredBlock chainHead)
|
void |
H2FullPrunedBlockStore.setVerifiedChainHead(StoredBlock chainHead)
|
void |
FullPrunedBlockStore.setVerifiedChainHead(StoredBlock chainHead)
Sets the StoredBlock that represents the top of the chain of greatest total work that has been
fully verified. |
| Constructors in com.google.bitcoin.store with parameters of type StoredBlock | |
|---|---|
MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag(StoredBlock block,
boolean wasUndoable)
|
|
| Uses of StoredBlock in com.google.bitcoin.utils |
|---|
| Fields in com.google.bitcoin.utils declared as StoredBlock | |
|---|---|
StoredBlock |
TestUtils.BlockPair.storedBlock
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||