Advertisement
CryptoLifestyler

Untitled

Jan 27th, 2020
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. Hashing the Genesis
  2.  
  3.  
  4. Transcript
  5.  
  6. 00:00 With that done, we are going to repeat the process as before. Delete the make install command, then navigate to ''src'' and ''qt''. Then run ''./visionX-qt''.
  7.  
  8. 00:17 I will now begin calculating the genesis for the testnet. Don't worry that it says mainnet. We will be checking the epoch time again to make sure we have the correct one.
  9.  
  10. 00:35 Okay, take a look at the epoch time. It ends in 622. Let's check it in our chainparams file. We can see on line 219, the testnet time ends in 622. So we can be sure we have created a genesis for testnet.
  11.  
  12. 00:55 Copy the nonce and paste it into line 219, replacing the zero. Now let's save our progress again. Now we are going to copy the genesis hash from the terminal. And go to line 261. Paste in the new genesis hash.
  13.  
  14. 01:33 Return to the terminal and copy the merkle. Paste it into line 262. Now that is done, we can save. The last thing we need to do is to add the genesis to the checkpoint data. This is on line 296. Once that is done, save again.
  15.  
  16. 02:21 We now need to cut the genesis script out, and paste it into the regression test parameters. Highlight all the script and choose ''cut''.
  17.  
  18. 02:49 We paste it under line 319. Then finally, click save. Just like we did before, copy the compile commands and we will go back to the terminal.
  19.  
  20. 03:08 Navigate back and start a new compile by pasting in the commands.
  21.  
  22. 03:23 Now delete the command for make install. We are going to repeat the same process as we have done. Navigate to ''src'' and ''qt''. Then run ''./visionX-qt''. This will then calculate the genesis block for the regression test. I will speed up this process as you have done it twice already.
  23.  
  24. 03:50 Just note, you copy the nonce into line 317. The genesis goes on lines 360 and 376. The merkle goes on line 361. Then click save. We are finally finished generating new genesis blocks for all chains. We can highlight and delete the genesis script. We no longer need it, but I would keep a copy of it for the future. You can use this script when you make a cryptocurrency from another source code.
  25.  
  26. 04:36 Save again and copy our compile commands. This is our final compile. After this, we will have completed everything to make our blockchain. Return to the master folder and paste in the compile commands.
  27.  
  28. 04:57 Now that we have compiled with our new genesis, we can launch our QT. However, before you do, you must delete your previous hidden folder called ''.visionXcore''.
  29.  
  30. 05:09 This folder can be located in the Home folder. You can access it by hitting CONTROL + H. Currently, this is the file from our old wallet on the Reden chain. See what happens when we try to open our wallet without deleting this.
  31.  
  32. 05:30 In a new terminal, navigate to ''src'' and ''qt''. Then we will launch our QT. Everything will appear to be working, but when it tries to load the blockchain, it will be using the data from the hidden file. The data from the hidden file has all the info from Reden's blockchain, and it will not relate to our new genesis.
  33.  
  34. 05:55 Here is the box that will appear. There will be a conflict and produce this error. ''Incorrect or no genesis block found''. In our case, it is an incorrect genesis in our hidden file. We must delete this file and launch the QT again. Saving a new hidden file containing all the blockchain and wallet data. Let's do that now. Click ''OK'' to exit the QT.
  35.  
  36. 06:25 Return to the Home folder and delete the hidden file named ''.visionXcore''. Then, the next time we start the QT, we will not get this error.
  37.  
  38. 06:36 In our next video, we will be launching the QT, locating and stripping down our binary files, creating a GitHub repository with a new release. Making us ready to setup our first peer on the network.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement