daemons

package
v0.0.0-...-b7062c8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: LGPL-3.0-or-later Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// MonitorDaemonCh is a channel for daemons
	MonitorDaemonCh = make(chan []string, 100)
)

Functions

func BlockGenerator

func BlockGenerator(chBreaker chan bool, chAnswer chan string)

BlockGenerator generates blocks

func BlocksCollection

func BlocksCollection(chBreaker chan bool, chAnswer chan string)

BlocksCollection collects and parses blocks

func CheckDaemonsRestart

func CheckDaemonsRestart(chBreaker chan bool, chAnswer chan string, goRoutineName string) bool

CheckDaemonsRestart restarts daemons

func ConfigInit

func ConfigInit()

ConfigInit regularly reads config.ini file

func Confirmations

func Confirmations(chBreaker chan bool, chAnswer chan string)

Confirmations gets and checks blocks from nodes

func CreatingBlockchain

func CreatingBlockchain(chBreaker chan bool, chAnswer chan string)

CreatingBlockchain writes blockchain

func DbConnect

func DbConnect(chBreaker chan bool, chAnswer chan string, goRoutineName string) *utils.DCDB

DbConnect returns DB connection

func Disseminator

func Disseminator(chBreaker chan bool, chAnswer chan string)

Disseminator sends hashes of block and transactions

func IsReachable

func IsReachable(host string, blockID int64, ch0 chan string)

IsReachable checks if there is blockID on the host

func QueueParserBlocks

func QueueParserBlocks(chBreaker chan bool, chAnswer chan string)

QueueParserBlocks parses blocks from the queue

func QueueParserTx

func QueueParserTx(chBreaker chan bool, chAnswer chan string)

QueueParserTx parses transaction from the queue

func StartDaemons

func StartDaemons()

StartDaemons starts daemons

func UpdFullNodes

func UpdFullNodes(chBreaker chan bool, chAnswer chan string)

UpdFullNodes sends UpdFullNodes transactions

Types

This section is empty.

Jump to

Keyboard shortcuts

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