// Get new instance
$handlerInstance = new NodeMessageDhtBootstrapHandler();
- // Get node instance
- $nodeInstance = NodeObjectFactory::createNodeInstance();
-
- // ... and set it here
- $handlerInstance->setNodeInstance($nodeInstance);
-
// Get a DHT instance
$dhtInstance = DhtObjectFactory::createDhtInstance('node');
*/
public function handleMessageData (array $messageData, Receivable $packageInstance) {
// Is this node accepting DHT bootstrap requests?
- if (!$this->getNodeInstance()->isAcceptingDhtBootstrap()) {
+ if (!NodeObjectFactory::createNodeInstance()->isAcceptingDhtBootstrap()) {
/*
* This node is not accepting DHT bootstrap requests.
*/