]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/dht/booting/class_DhtBootingState.php
Updated 'core'.
[hub.git] / application / hub / main / states / dht / booting / class_DhtBootingState.php
index e590148a1b4bb904506f21e4f7b81ac11c80480c..f6f05cdc59f5393fc771674025f3e6debe740c06 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -46,11 +46,17 @@ class DhtBootingState extends BaseDhtState implements Stateable {
                $stateInstance = new DhtBootingState();
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-STATE: Has changed from ' . $dhtInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-STATE[' . __METHOD__ . ':' . __LINE__ . ']: Has changed from ' . $dhtInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
 
                // Set the dht instance
                $stateInstance->setDhtInstance($dhtInstance);
 
+               // Get node instance and enable DHT bootstrap requests
+               NodeObjectFactory::createNodeInstance()->enableAcceptDhtBootstrap();
+
+               // Update DHT node info as well
+               $dhtInstance->enableAcceptDhtBootstrap();
+
                // Return the prepared instance
                return $stateInstance;
        }