X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fstates%2Fdht%2Fbooting%2Fclass_DhtBootingState.php;h=2cec6825d4bb8a75b07f6c9d916ecdebe314c865;hb=752d3e37ef6688c98094eadcd9629ab9f80e1fb7;hp=e590148a1b4bb904506f21e4f7b81ac11c80480c;hpb=4b0f19c8180418d0f603698e1737a6041e843634;p=hub.git diff --git a/application/hub/main/states/dht/booting/class_DhtBootingState.php b/application/hub/main/states/dht/booting/class_DhtBootingState.php index e590148a1..2cec6825d 100644 --- a/application/hub/main/states/dht/booting/class_DhtBootingState.php +++ b/application/hub/main/states/dht/booting/class_DhtBootingState.php @@ -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: 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; }