Interface BlockStore

All Known Subinterfaces:
FullPrunedBlockStore
All Known Implementing Classes:
DatabaseFullPrunedBlockStore, H2FullPrunedBlockStore, LevelDBBlockStore, LevelDBFullPrunedBlockStore, MemoryBlockStore, MemoryFullPrunedBlockStore, MySQLFullPrunedBlockStore, PostgresFullPrunedBlockStore, SPVBlockStore

public interface BlockStore
An implementor of BlockStore saves StoredBlock objects to disk. Different implementations store them in different ways. An in-memory implementation (MemoryBlockStore) exists for unit testing but real apps will want to use implementations that save to disk.

A BlockStore is a map of hashes to StoredBlock. The hash is the double digest of the Bitcoin serialization of the block header, not the header with the extra data as well.

BlockStores are thread safe.