Class BlockchainStorageSingleFile
java.lang.Object
com.bradyrussell.uiscoin.blockchain.storage.BlockchainStorageInMemory
com.bradyrussell.uiscoin.blockchain.storage.BlockchainStorageSingleFile
- All Implemented Interfaces:
 BlockchainStorage
public class BlockchainStorageSingleFile extends BlockchainStorageInMemory
- 
Nested Class Summary
Nested classes/interfaces inherited from interface com.bradyrussell.uiscoin.blockchain.BlockchainStorage
BlockchainStorage.TransactionOutputIdentifier - 
Field Summary
Fields inherited from class com.bradyrussell.uiscoin.blockchain.storage.BlockchainStorageInMemory
blocksByHeight - 
Constructor Summary
Constructors Constructor Description BlockchainStorageSingleFile(java.nio.file.Path databasePath) - 
Method Summary
Methods inherited from class com.bradyrussell.uiscoin.blockchain.storage.BlockchainStorageInMemory
buildUnspentTransactionOutputSet, getBlock, getBlockByHeight, getBlockByTransaction, getBlockchain, getBlockchainRange, getBlockHeader, getBlockHeaderByHeight, getBlockHeight, getHighestBlock, getHighestBlockHash, getMempoolTransaction, getMempoolTransactions, getTransaction, getTransactionInput, getTransactionOutput, getUnspentTransactionOutputs, hasBlock, hasBlockHeader, hasMempoolTransaction, hasTransaction, isOperational, isTransactionOutputSpent, putBlock, putBlockHeader, putMempoolTransaction, removeMempoolTransaction, verify, verifyRange 
- 
Constructor Details
- 
BlockchainStorageSingleFile
public BlockchainStorageSingleFile(java.nio.file.Path databasePath) 
 - 
 - 
Method Details
- 
open
public boolean open()Description copied from interface:BlockchainStorageCalled once to perform any initialization before accessing the blockchain.- Specified by:
 openin interfaceBlockchainStorage- Overrides:
 openin classBlockchainStorageInMemory- Returns:
 - Whether initialization was successful.
 
 - 
close
public boolean close()Description copied from interface:BlockchainStorageCalled once to perform any cleanup or saving after all blockchain operations have been completed.- Specified by:
 closein interfaceBlockchainStorage- Overrides:
 closein classBlockchainStorageInMemory- Returns:
 - Whether cleanup and saving was successful.
 
 
 -