package
0.0.0-20200107211526-8e17a2142328
Repository: https://github.com/aplaproject/go-apla.git
Documentation: pkg.go.dev
# Functions
BlockGenerator is daemon that generates blocks.
BlocksCollection collects and parses blocks.
CheckDB check if installation complete or not.
Confirmations gets and checks blocks from nodes Getting amount of nodes, which has the same hash as we do.
DBLock locks daemons.
DBUnlock unlocks database.
Disseminator is send to all nodes from nodes_connections the following data if we are full node(miner): sends blocks and transactions hashes else send the full transactions.
ExternalNetwork sends txinfo to the external network.
No description provided by the author
IsReachable checks if there is blockID on the host.
Monitoring starts monitoring.
QueueParserBlocks parses and applies blocks from the queue.
QueueParserTx parses transaction from the queue.
ReplaceBlocksFromHost replaces blockchain received from the host.
Scheduler starts contracts on schedule.
No description provided by the author
StartDaemons starts daemons.
UpdateChain load from host all blocks from our last block to maxBlockID.
WaitDB waits for the end of the installation.
WaitStopTime closes the database and stop daemons.
# Constants
WordSize is size of word in file.
# Variables
ErrNodesUnavailable is returned when all nodes is unavailable.
MonitorDaemonCh is monitor daemon channel.