-
Notifications
You must be signed in to change notification settings - Fork 8
Daemons
Sends notifications to e-mail and cellphone (if SMS-gate is specified). Uses settings from “Settings” -> “SMS and e-mail notifications” for sending.
Fills the nodes_connection table with live hosts from miners_data . On first launch uses data from the “nodes.inc” file.
Sends block and transaction hashes to everyone in the nodes_connection.
Parses and distributes data from queue_testblock.
Acquires transactions from queue_tx and transactions (if verified=0 and used=0)
Acquires and processes blocks from queue_blocks.
Collects blocks from other nodes if they have the more recent blocks.
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.
Generates a block if the number is up.
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.
Monitors the testblock table, and shall it notice status=active, it sends the block strictly to those on the same level.
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.
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.
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.
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.
Clears tables from old data, which certainly won’t be needed.
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.