robot

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: GPL-3.0 Imports: 17 Imported by: 1

README

robot

Robot of cortex full node

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor observes the data changes on the blockchain and synchronizes. cl for ipc/rpc communication, dl for download manager, and fs for data storage.

func New

func New(flag *params.Config, cache, compress, listen bool, callback chan any) (m *Monitor, err error)

NewMonitor creates a new instance of monitor. Once Ipcpath is settle, this method prefers to build socket connection in order to get higher communicating performance. IpcPath is unavailable on windows. func New(flag *params.Config, cache, compress, listen bool, fs *backend.ChainDB, tMana *backend.TorrentManager, callback chan any) (*Monitor, error) {

func (*Monitor) Callback

func (m *Monitor) Callback() chan any

func (*Monitor) CurrentNumber

func (m *Monitor) CurrentNumber() uint64

func (*Monitor) DB

func (m *Monitor) DB() *backend.ChainDB

func (*Monitor) ID

func (m *Monitor) ID() uint64

func (*Monitor) Start

func (m *Monitor) Start() error

Start ... start ListenOn on the rpc port of a blockchain full node

func (*Monitor) Stop

func (m *Monitor) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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