storage

package
v0.1.1-0...-8f45df3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

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

func OpenDb

func OpenDb(path string) (Db, error)

func (*Db) GetAddressPublicKey

func (db *Db) GetAddressPublicKey(address common.Address) (key []byte)

func (*Db) GetAddressesPublicKeys

func (db *Db) GetAddressesPublicKeys() map[string]string

return all loaded keys for addresses. both in hex format, keys are uncompressed

func (*Db) GetLastProcessedBlock

func (db *Db) GetLastProcessedBlock() uint64

func (*Db) MergeDbs

func (db *Db) MergeDbs(fromDb *Db)

func (*Db) SaveAddressPublicKey

func (db *Db) SaveAddressPublicKey(address common.Address, pubkey []byte)

func (*Db) SaveLastProcessedBlock

func (db *Db) SaveLastProcessedBlock(num uint64)

func (*Db) SavePublicKeysBatch

func (db *Db) SavePublicKeysBatch(batch *leveldb.Batch)

Jump to

Keyboard shortcuts

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