sebak: boscoin.io/sebak/lib/storage/statedb/trie Index | Files

package trie

import "boscoin.io/sebak/lib/storage/statedb/trie"

Index

Package Files

database.go trie.go

type EthDatabase Uses

type EthDatabase struct {
    // contains filtered or unexported fields
}

func NewEthDatabase Uses

func NewEthDatabase(ldb *storage.LevelDBBackend) *EthDatabase

func (*EthDatabase) BackEnd Uses

func (db *EthDatabase) BackEnd() *storage.LevelDBBackend

func (*EthDatabase) Close Uses

func (db *EthDatabase) Close()

func (*EthDatabase) Delete Uses

func (db *EthDatabase) Delete(key []byte) error

func (*EthDatabase) Get Uses

func (db *EthDatabase) Get(key []byte) ([]byte, error)

func (*EthDatabase) Has Uses

func (db *EthDatabase) Has(key []byte) (bool, error)

func (*EthDatabase) NewBatch Uses

func (db *EthDatabase) NewBatch() ethdb.Batch

func (*EthDatabase) Put Uses

func (db *EthDatabase) Put(key []byte, value []byte) error

type Trie Uses

type Trie struct {
    trie.Trie
    DB  *trie.Database
}

func NewTrie Uses

func NewTrie(root common.Hash, db *EthDatabase) *Trie

func (*Trie) CommitDB Uses

func (t *Trie) CommitDB(root common.Hash) (err error)

Package trie imports 7 packages (graph) and is imported by 3 packages. Updated 2019-04-03. Refresh now. Tools for package owners.