mbllookup

package
v0.0.0-...-20e0bfc Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Connected bool
View Source
var DeroDB = &Derodbstore{}

Functions

func GetMBLByBLHash

func GetMBLByBLHash(bl block.Block) (mblinfo []*structures.MBLInfo, err error)

Types

type Derodbstore

type Derodbstore struct {
	Balance_store  *graviton.Store // stores most critical data, only history can be purged, its merkle tree is stored in the block
	Block_tx_store Storefs         // stores blocks which can be discarded at any time(only past but keep recent history for rollback)
	Topo_store     Storetopofs     // stores topomapping which can only be discarded by punching holes in the start of the file
}

func (*Derodbstore) LoadDeroDB

func (s *Derodbstore) LoadDeroDB() (err error)

type Storefs

type Storefs struct {
	Basedir string
}

type Storetopofs

type Storetopofs struct {
	Topomapping *os.File
}

func (*Storetopofs) Open

func (s *Storetopofs) Open(basedir string) (err error)

Jump to

Keyboard shortcuts

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