load

package
v0.0.0-...-27c5394 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Height  int
	Eblocks []*Eblock
	Entries []*common.Entry
	Head    *Eblock
}

func LoadChain

func LoadChain(file io.Reader) (chain *Chain, err error)

func (Chain) EblockEntries

func (c Chain) EblockEntries(eblock *Eblock) []*common.Entry

type Eblock

type Eblock struct {
	Height int
	KeyMR  string
	Seq    int64
	// Indexes in the Entries slice [first:last]
	FirstEntry int
	LastEntry  int
}

Jump to

Keyboard shortcuts

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