block

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: ISC Imports: 22 Imported by: 0

Documentation

Overview

Package block - process and store the incoming block

Index

Constants

View Source
const (
	RescanVerified   rescanType = true
	NoRescanVerified rescanType = true
)

list of scanning modes

View Source
const BlockValidationCounts = 10

BlockValidationCounts - number of blocks to validate on startup

Variables

This section is empty.

Functions

func DeleteDownToBlock added in v0.2.0

func DeleteDownToBlock(finalBlockNumber uint64) error

DeleteDownToBlock - delete from current highest block down to and including the specified block

func Finalise

func Finalise() error

Finalise - shutdown the block system

func Initialise

func Initialise(blockHandle storage.Handle) error

Initialise - setup the current block data

func LastBlockHash added in v0.11.0

func LastBlockHash(pool storage.Handle) string

LastBlockHash - return the last block hash in hex string if found

func StoreIncoming added in v0.2.0

func StoreIncoming(packedBlock, packedNextBlock []byte, performRescan rescanType) (err error)

StoreIncoming - store an incoming block checking to make sure it is valid first

Types

This section is empty.

Jump to

Keyboard shortcuts

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