// Get new instance
$producerInstance = new MinerTestGenesisBlockProducer();
+ // Get a (minable) hash block instance
+ $minableInstance = ObjectFactory::createObjectByConfiguredName('miner_test_hash_block_class');
+
+ // Set it here
+ $producerInstance->setMinableInstance($minableInstance);
+
// Return the prepared instance
return $producerInstance;
}
*/
protected function initProducer () {
$this->partialStub('Please implement this method.');
+
+ // As last step, change the state of the miner, get the miner first
+ $minerInstance = Registry::getRegistry()->getInstance('miner');
+
+ // Change state to next state
+ $minerInstance->blockProducerHasInitialized();
+ }
+
+ /**
+ * Initializes the executor, whatever it does.
+ *
+ * @return void
+ * @todo 0% done
+ */
+ public function initExecutor (Stateable $stateInstance) {
+ $this->partialStub('Please implement this method.');
}
/**