ethereum

package
Version: v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	GetBlock(hash []byte, blockNumber int64) *types.Block
	GetBlockHash(blockNumber int64) []byte
	GetBlockReceipts(blockHash []byte, blockNumber int64) types.Receipts
	GetHeadBlockNumber() int64
}

func CreateDatabase

func CreateDatabase(config DatabaseConfig) (Database, error)

type DatabaseConfig

type DatabaseConfig struct {
	Type DatabaseType
	Path string
}

func CreateDatabaseConfig

func CreateDatabaseConfig(dbType DatabaseType, path string) DatabaseConfig

type DatabaseType

type DatabaseType int
const (
	Level DatabaseType = iota
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL