monitor

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package monitor implements the support for monitoring the state of the Tendermint Blockchain

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	sync.Mutex
	worker.Worker
	// contains filtered or unexported fields
}

Monitor represents the Blockchain monitor

func New

func New(l *logger.Logger, tmClient *tmclient.Client, store *storage.Database, id string,
) (*Monitor, error)

New creates a new monitor.

func (*Monitor) FinalizeHeight

func (m *Monitor) FinalizeHeight(height int64)

FinalizeHeight gets called when all txs from a particular block are processed. processing is done by outside package; it's implementation specific, for example validator is looking for issuance transactions, verifier for verification requests, etc.

func (*Monitor) GetLowestUnprocessedBlock

func (m *Monitor) GetLowestUnprocessedBlock() (int64, *block)

GetLowestFullUnprocessedBlock returns block on lowest height that is currently not being processed. nolint: golint

func (*Monitor) Halt

func (m *Monitor) Halt()

Halt stops the monitor

func (*Monitor) PrintProcessingState

func (m *Monitor) PrintProcessingState()

Jump to

Keyboard shortcuts

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