]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/miner/class_BaseHubMiner.php
Continued:
[hub.git] / application / hub / main / miner / class_BaseHubMiner.php
index 27ac974e8e11e092f713f5466df8b5d6bca9c3dd..13473eb73deadcaa4a9616904cb124b8752efc4d 100644 (file)
@@ -204,6 +204,20 @@ abstract class BaseHubMiner extends BaseHubSystem implements Updateable {
                $this->partialStub('Unfinished!');
                return;
        }
+
+       /**
+        * Changes the state to 'booting' and shall be called after the block
+        * producer has been initialized.
+        *
+        * @return      void
+        */
+       public function blockProducerHasInitialized () {
+               // Make sure the state is correct ('init')
+               $this->getStateInstance()->validateMinerStateIsInit();
+
+               // Change it to 'booting'
+               MinerStateFactory::createMinerStateInstanceByName('booting', $this);
+       }
 }
 
 // [EOF]