Skip to content

Daemons

c-darwin edited this page Dec 13, 2015 · 3 revisions

Table of Contents

notifications

Sends notifications to e-mail and cellphone (if SMS-gate is specified). Uses settings from “Settings” -> “SMS and e-mail notifications” for sending.

connector

Fills the nodes_connection table with live hosts from miners_data . On first launch uses data from the “nodes.inc” file.

disseminator

Sends block and transaction hashes to everyone in the nodes_connection.

queue_parser_testblock

Parses and distributes data from queue_testblock.

queue_parser_tx

Acquires transactions from queue_tx and transactions (if verified=0 and used=0)

queue_parser_blocks

Acquires and processes blocks from queue_blocks.

blocks_collection

Collects blocks from other nodes if they have the more recent blocks.

node_voting

If miner_id is in the list of those who shall download the photo of a new miner, downloads and verifies hashes from downloaded files. If hashes match those specified in the miners_data, generates a transaction with a “yes” vote, if they don’t – with a “no” vote.

testblock_generator

Generates a block if the number is up.

testblock_is_ready

Awaits the completion of the contest between nodes for the smaller hash. When latency period expires, distributes the acquired block to tables and sends it to other nodes.

testblock_disseminator

Monitors the testblock table, and shall it notice status=active, it sends the block strictly to those on the same level.

pct_generator

Every 2 weeks collects data from votes_miner_pct, votes_user_pct and votes_referral creates a transaction, which fall into the block only if the node would generator unit.

reduction_generator

Collects data from votes_reduction every 2 weeks and creates a transaction, which is only added to the block if the node is a block generator.

max_promised_amount_generator

Collects data from votes_max_promised_amount and creates a transaction, which is only added to the block if the node is a block generator.

max_other_currencies_generator

Collects data from votes_max_other_currencies and creates a transaction, which is only added to the block if the node is a block generator.

clear

Clears tables from old data, which certainly won’t be needed.

cleaning_db

If a computer was rebooted unexpectedly and there is a note in the main_lock table, there is a possibility of a break occurrence during the data recording from the block, therefore all blocks starting from the 1st need to be rebuilt.

See also

Clone this wiki locally