$taskInstance = ObjectFactory::createObjectByConfiguredName('miner_test_genesis_block_producer_task_class');
$handlerInstance->registerTask('miner_test_genesis_block_producer', $taskInstance);
+ /*
+ * 3) A task for communicating into the locally running 'hub' node.
+ * This rask will check for new blocks on the mining network and
+ * tries to claim found blocks.
+ */
+ $taskInstance = ObjectFactory::createObjectByConfiguredName('miner_node_communicator_task_class');
+ $handlerInstance->registerTask('miner_node_communicator', $taskInstance);
+
// Put the task handler in registry
Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
}