snapshot

package
v3.0.0-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile() error

FromFile the function for loading db from File.

func FromSnapshot

func FromSnapshot(conf *common.Config) error

FromSnapshot the function for loading db from snapshot.

func Load

func Load(db db.MVCCDB) (*block.Block, error)

Load the function for loading block's head from snapshot.

func Save

func Save(db db.MVCCDB, blk *block.Block) error

Save the function for saving block's head from snapshot.

func ToFile

func ToFile(conf *common.Config) error

ToFile the function for saving db to File.

func ToSnapshot

func ToSnapshot(conf *common.Config) error

ToSnapshot the function for saving db to snapshot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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