Versions in this module Expand all Collapse all v0 v0.1.0 Feb 24, 2018 Changes in this version + const BLOCK_HASH_DB + const BLOCK_NUMBER_DB + const LAST_BLOCK_KEY + const TRANSACTION_DB + const UNCONFIRMED_BLOCK_DB + const UTIL_DB + type BlockchainLevelDB struct + DBProvider *leveldbhelper.DBProvider + func CreateNewBlockchainLevelDB(levelDBPath string) *BlockchainLevelDB + func (l *BlockchainLevelDB) AddBlock(block *domain.Block) error + func (l *BlockchainLevelDB) AddUnconfirmedBlock(block *domain.Block) error + func (l *BlockchainLevelDB) Close() + func (l *BlockchainLevelDB) GetBlockByHash(hash string) (*domain.Block, error) + func (l *BlockchainLevelDB) GetBlockByNumber(blockNumber uint64) (*domain.Block, error) + func (l *BlockchainLevelDB) GetBlockByTxID(txid string) (*domain.Block, error) + func (l *BlockchainLevelDB) GetLastBlock() (*domain.Block, error) + func (l *BlockchainLevelDB) GetTransactionByTxID(txid string) (*domain.Transaction, error)