Package org.bitcoinj.store
Block stores persist blockchain data downloaded from remote peers. There is an SPV block store which preserves a ring
buffer of headers on disk and is suitable for lightweight user wallets, a store that can calculate a full indexed
UTXO set (i.e. it can query address balances), and a memory only store useful for unit tests.
-
Interface Summary Interface Description BlockStore An implementor of BlockStore saves StoredBlock objects to disk.FullPrunedBlockStore An implementor of FullPrunedBlockStore saves StoredBlock objects to some storage mechanism. -
Class Summary Class Description MemoryBlockStore KeepsStoredBlock
s in memory.MemoryFullPrunedBlockStore MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag SPVBlockStore An SPVBlockStore holds a limited number of block headers in a memory mapped ring buffer. -
Exception Summary Exception Description BlockStoreException Thrown when something goes wrong with storing a block.ChainFileLockedException Thrown bySPVBlockStore
when the process cannot gain exclusive access to the chain file.