Versions in this module Expand all Collapse all v0 v0.1.0 Feb 24, 2018 Changes in this version + type BlockChainDB interface + AddBlock func(block *domain.Block) error + AddUnconfirmedBlock func(block *domain.Block) error + Close func() + GetBlockByHash func(hash string) (*domain.Block, error) + GetBlockByNumber func(blockNumber uint64) (*domain.Block, error) + GetBlockByTxID func(txid string) (*domain.Block, error) + GetLastBlock func() (*domain.Block, error) + GetTransactionByTxID func(txid string) (*domain.Transaction, error) + func CreateNewBlockchainDB(dbPath string) BlockChainDB + type BlockchainDBImpl struct + func (b *BlockchainDBImpl) AddBlock(block *domain.Block) error + func (b *BlockchainDBImpl) AddUnconfirmedBlock(block *domain.Block) error + func (b *BlockchainDBImpl) Close() + func (b *BlockchainDBImpl) GetBlockByHash(hash string) (*domain.Block, error) + func (b *BlockchainDBImpl) GetBlockByNumber(blockNumber uint64) (*domain.Block, error) + func (b *BlockchainDBImpl) GetBlockByTxID(txid string) (*domain.Block, error) + func (b *BlockchainDBImpl) GetLastBlock() (*domain.Block, error) + func (b *BlockchainDBImpl) GetTransactionByTxID(txid string) (*domain.Transaction, error)