db

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBlockOrphaned = errors.New("block orphaned")

Functions

This section is empty.

Types

type WavesDB

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

func NewDB

func NewDB(path string, genesis crypto.Signature) (*WavesDB, error)

func (*WavesDB) DelRaw

func (w *WavesDB) DelRaw(key []byte) error

func (*WavesDB) Get

func (w *WavesDB) Get(block crypto.Signature) (*proto.Block, error)

func (*WavesDB) GetBlocksAtHeight

func (w *WavesDB) GetBlocksAtHeight(height uint64) ([]crypto.Signature, error)

func (*WavesDB) GetRaw

func (w *WavesDB) GetRaw(key []byte) ([]byte, error)

func (*WavesDB) Has

func (w *WavesDB) Has(block crypto.Signature) (bool, error)

func (*WavesDB) Put

func (w *WavesDB) Put(block *proto.Block) error

func (*WavesDB) PutRaw

func (w *WavesDB) PutRaw(key, value []byte) error

Jump to

Keyboard shortcuts

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