]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/producer/miner/blocks/class_MinerTestGenesisBlockProducer.php
Continued:
[hub.git] / application / hub / main / producer / miner / blocks / class_MinerTestGenesisBlockProducer.php
index e0329ac3ab13a3926844834fb574939b267ee2de..8d5aedce0ecd741c822f2c5780ec5c2e8c701886 100644 (file)
@@ -56,7 +56,7 @@ class MinerTestGenesisBlockProducer extends BaseBlockProducer implements BlockPr
         * class.
         *
         * @return      void
-        * @todo        0% done
+        * @todo        ~10% done
         */
        protected function initProducer () {
                $this->partialStub('Please implement this method.');
@@ -83,10 +83,17 @@ class MinerTestGenesisBlockProducer extends BaseBlockProducer implements BlockPr
         *
         * @param       $stateInstance  An instance of a Stateable instance
         * @return      void
-        * @todo        0% done
+        * @todo        ~5% done
         */
        public function prepareBlockProduction (Stateable $stateInstance) {
-               $this->partialStub('Please implement this method, stateInstance=' . $stateInstance->__toString());
+               // The state must be 'booting'
+               $stateInstance->validateMinerStateIsBooting();
+
+               /*
+                * Now that the miner is booting a genesis block for testing purposes
+                * can be created. The "real" genesis block will be created differently
+                * to this.
+                */
        }
 }