Uses of Class
com.google.bitcoin.store.BlockStoreException

Packages that use BlockStoreException
com.google.bitcoin.core   
com.google.bitcoin.store   
com.google.bitcoin.utils   
 

Uses of BlockStoreException in com.google.bitcoin.core
 

Methods in com.google.bitcoin.core that throw BlockStoreException
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.
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.
protected  TransactionOutputChanges FullPrunedBlockChain.connectTransactions(int height, Block block)
           
protected abstract  TransactionOutputChanges AbstractBlockChain.connectTransactions(int height, Block block)
          Connect each transaction in block.transactions, verifying them as we go and removing spent outputs If an error is encountered in a transaction, no changes should be made to the underlying BlockStore.
protected  TransactionOutputChanges FullPrunedBlockChain.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 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.
 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)
protected  void FullPrunedBlockChain.notSettingChainHead()
           
protected  void BlockChain.notSettingChainHead()
           
protected abstract  void AbstractBlockChain.notSettingChainHead()
          Called if we (possibly) previously called disconnectTransaction/connectTransactions, but will not be calling preSetChainHead as a block failed verification.
protected  void AbstractBlockChain.setChainHead(StoredBlock chainHead)
           
 

Constructors in com.google.bitcoin.core that throw BlockStoreException
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.
FullPrunedBlockChain(NetworkParameters params, FullPrunedBlockStore blockStore)
          Constructs a BlockChain that has no wallet at all.
FullPrunedBlockChain(NetworkParameters params, List<BlockChainListener> listeners, FullPrunedBlockStore blockStore)
          Constructs a BlockChain connected to the given list of wallets and a store.
FullPrunedBlockChain(NetworkParameters params, Wallet wallet, FullPrunedBlockStore blockStore)
          Constructs a BlockChain connected to the given wallet and store.
 

Uses of BlockStoreException in com.google.bitcoin.store
 

Methods in com.google.bitcoin.store that throw BlockStoreException
 void PostgresFullPrunedBlockStore.abortDatabaseBatchWrite()
           
 void MemoryFullPrunedBlockStore.abortDatabaseBatchWrite()
           
 void H2FullPrunedBlockStore.abortDatabaseBatchWrite()
           
 void FullPrunedBlockStore.abortDatabaseBatchWrite()
           
 void PostgresFullPrunedBlockStore.addUnspentTransactionOutput(StoredTransactionOutput out)
           
 void MemoryFullPrunedBlockStore.addUnspentTransactionOutput(StoredTransactionOutput out)
           
 void H2FullPrunedBlockStore.addUnspentTransactionOutput(StoredTransactionOutput out)
           
 void FullPrunedBlockStore.addUnspentTransactionOutput(StoredTransactionOutput out)
          Adds a StoredTransactionOutput to the list of unspent TransactionOutputs
 void PostgresFullPrunedBlockStore.beginDatabaseBatchWrite()
           
 void MemoryFullPrunedBlockStore.beginDatabaseBatchWrite()
           
 void H2FullPrunedBlockStore.beginDatabaseBatchWrite()
           
 void FullPrunedBlockStore.beginDatabaseBatchWrite()
          Begins/Commits/Aborts a database transaction.
 BigInteger PostgresFullPrunedBlockStore.calculateBalanceForAddress(Address address)
          Calculate the balance for a coinbase, to-address, or p2sh address.
 void SPVBlockStore.close()
           
 void BlockStore.close()
          Closes the store.
 void PostgresFullPrunedBlockStore.commitDatabaseBatchWrite()
           
 void MemoryFullPrunedBlockStore.commitDatabaseBatchWrite()
           
 void H2FullPrunedBlockStore.commitDatabaseBatchWrite()
           
 void FullPrunedBlockStore.commitDatabaseBatchWrite()
           
 void PostgresFullPrunedBlockStore.dumpSizes()
          Dumps information about the size of actual data in the database to standard output The only truly useless data counted is printed in the form "N in id indexes" This does not take database indexes into account
 void H2FullPrunedBlockStore.dumpSizes()
          Dumps information about the size of actual data in the database to standard output The only truly useless data counted is printed in the form "N in id indexes" This does not take database indexes into account
 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.
 StoredTransactionOutput PostgresFullPrunedBlockStore.getTransactionOutput(Sha256Hash hash, long index)
           
 StoredTransactionOutput MemoryFullPrunedBlockStore.getTransactionOutput(Sha256Hash hash, long index)
           
 StoredTransactionOutput H2FullPrunedBlockStore.getTransactionOutput(Sha256Hash hash, long index)
           
 StoredTransactionOutput FullPrunedBlockStore.getTransactionOutput(Sha256Hash hash, long index)
          Gets a StoredTransactionOutput with the given hash and index, or null if none is found
 StoredUndoableBlock PostgresFullPrunedBlockStore.getUndoBlock(Sha256Hash hash)
           
 StoredUndoableBlock MemoryFullPrunedBlockStore.getUndoBlock(Sha256Hash hash)
           
 StoredUndoableBlock H2FullPrunedBlockStore.getUndoBlock(Sha256Hash hash)
           
 StoredUndoableBlock FullPrunedBlockStore.getUndoBlock(Sha256Hash hash)
          Returns a StoredUndoableBlock whose block.getHash() method will be equal to the parameter.
 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.
 boolean PostgresFullPrunedBlockStore.hasUnspentOutputs(Sha256Hash hash, int numOutputs)
           
 boolean MemoryFullPrunedBlockStore.hasUnspentOutputs(Sha256Hash hash, int numOutputs)
           
 boolean H2FullPrunedBlockStore.hasUnspentOutputs(Sha256Hash hash, int numOutputs)
           
 boolean FullPrunedBlockStore.hasUnspentOutputs(Sha256Hash hash, int numOutputs)
          True if this store has any unspent outputs from a transaction with a hash equal to the first parameter
 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 PostgresFullPrunedBlockStore.removeUnspentTransactionOutput(StoredTransactionOutput out)
           
 void MemoryFullPrunedBlockStore.removeUnspentTransactionOutput(StoredTransactionOutput out)
           
 void H2FullPrunedBlockStore.removeUnspentTransactionOutput(StoredTransactionOutput out)
           
 void FullPrunedBlockStore.removeUnspentTransactionOutput(StoredTransactionOutput out)
          Removes a StoredTransactionOutput from the list of unspent TransactionOutputs Note that the coinbase of the genesis block should NEVER be spendable and thus never in the list.
 void PostgresFullPrunedBlockStore.resetStore()
           
 void H2FullPrunedBlockStore.resetStore()
           
 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 that throw BlockStoreException
H2FullPrunedBlockStore(NetworkParameters params, String dbName, int fullStoreDepth)
          Creates a new H2FullPrunedBlockStore
H2FullPrunedBlockStore(NetworkParameters params, String dbName, int fullStoreDepth, int cacheSize)
          Creates a new H2FullPrunedBlockStore with the given cache size
PostgresFullPrunedBlockStore(NetworkParameters params, int fullStoreDepth, String hostname, String dbName, String username, String password)
          Creates a new PostgresFullPrunedBlockStore.
SPVBlockStore(NetworkParameters params, File file)
          Creates and initializes an SPV block store.
 

Uses of BlockStoreException in com.google.bitcoin.utils
 

Methods in com.google.bitcoin.utils that throw BlockStoreException
static Block TestUtils.makeSolvedTestBlock(BlockStore blockStore, Address coinsTo)
           
static Block TestUtils.makeSolvedTestBlock(Block prev, Transaction... transactions)
           
 



Copyright © 2014. All rights reserved.