From: Roland Haeder Date: Sat, 25 Apr 2015 23:04:03 +0000 (+0200) Subject: This call needs to be moved into BaseHubNode. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d8b8d1bfdf97316de61b5a1228f0a42d5b851ebf;p=hub.git This call needs to be moved into BaseHubNode. Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/filter/node/class_NodeInitializationFilter.php b/application/hub/main/filter/node/class_NodeInitializationFilter.php index 3e29095ae..f15806bfa 100644 --- a/application/hub/main/filter/node/class_NodeInitializationFilter.php +++ b/application/hub/main/filter/node/class_NodeInitializationFilter.php @@ -63,8 +63,7 @@ class NodeInitializationFilter extends BaseNodeFilter implements Filterable { $this->debugBackTrace('[' . __METHOD__ . ':' . __LINE__ . ']: node mode ' . $nodeMode . ' is invalid.'); } - // Set the node instance in registry - Registry::getRegistry()->addInstance('node', $nodeInstance); + // Debug message //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE-INIT-FILTER[' . __METHOD__ . ':' . __LINE__ . ']: Node ' . $nodeMode . ' has been added to registry.'); } } diff --git a/application/hub/main/nodes/class_BaseHubNode.php b/application/hub/main/nodes/class_BaseHubNode.php index f82d4380d..6f44a1177 100644 --- a/application/hub/main/nodes/class_BaseHubNode.php +++ b/application/hub/main/nodes/class_BaseHubNode.php @@ -84,6 +84,9 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria { // Set it here $this->setCryptoInstance($cryptoInstance); + // Set the node instance in registry + Registry::getRegistry()->addInstance('node', $this); + // Init state which sets the state to 'init' $this->initState(); }