block_file_handler

package
v0.0.0-...-58ee6da Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: Unlicense Imports: 20 Imported by: 0

Documentation

Overview

Used by the block file handler to periodically consolidate individual block files into 1000 block file units.

The block file handler does menial tasks in relation to the block storage file system.

It can retrieve blocks (with some caching) and store them, from individual block files, consolidated block files, or from an online source provided by Nyzo.

Nyzo stores a balance list with each block. Since this is handled here, balance list updates and checking, as well as emission of all blockchain-related events to the DB storage in archive mode are handled by the block file handler.

Implements the "BlockFileHandler" interface defined in nyzo/interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindHighestIndividualBlockFile

func FindHighestIndividualBlockFile() int64

Just what it says: find highest individual block file on disk. Static utility.

func NewBlockFileHandler

func NewBlockFileHandler(ctxt *interfaces.Context) interfaces.BlockFileHandlerInterface

Create a block file handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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