state

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteState

func WriteState(dir string, s State) error

WriteState write the state to a JSON file.

Types

type State

type State struct {
	LastProcessedHeight int64   `json:"last_processed_height"`
	BlocksMissingTxs    []int64 `json:"blocks_missing_txs"`
}

func ReadState

func ReadState(dir string) (State, error)

ReadState reads the state from a JSON file.

Jump to

Keyboard shortcuts

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