SHARE
TWEET

staking blocks on vps

a guest Feb 18th, 2020 216 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. first of all log in into your vps from putty and open the hot wallet so it starts syncing
  2.  
  3. on putty:
  4. -go to your latest directory:
  5. cd blocknetdx-3.14.1/bin
  6.  
  7. -stop the servicenode:
  8. ./blocknetdx-cli stop
  9.  
  10. -return to the main directory:
  11. cd ~
  12.  
  13. -remove old directories:
  14. rm -r -f blocknetdx-3.14.1
  15.  
  16. -remove this one if you have no funds on the vps:
  17. rm -r -f .blocknetdx
  18.  
  19. -time to install new wallet:
  20. wget https://github.com/blocknetdx/blocknet/releases/download/v4.0.2/blocknet-4.0.2-x86_64-linux-gnu.tar.gz
  21.  
  22. -extract the downloaded file:
  23. tar xzvf blocknet-4.0.2-x86_64-linux-gnu.tar.gz
  24.  
  25. -now we have to create the .blocknet and wallets directories:
  26. mkdir .blocknet
  27. cd .blocknet
  28.  
  29. -create the config file:
  30. nano blocknet.conf
  31. -paste this inside with a long username and a long password(no need to remember, just make them long enough and use only alphanumericals characters):
  32.  
  33. daemon=1
  34. rpcallowip=127.0.0.1
  35. rpcuser=user
  36. rpcpassword=password
  37.  
  38. -save by pressing "ctrl + x" then press "y" and "enter" to save the file
  39.  
  40. -now we make a new directory:
  41. mkdir wallets
  42.  
  43. -now install a program called "WinSCP" to view what's in your vps:
  44. https://winscp.net/eng/download.php
  45.  
  46. -run the program and log in into your vps from there
  47.  
  48. -once you are inside you should see various folders, open the newly created ".blocknet" and go inside the "wallets" directory
  49.  
  50. -now go on your browser and download the official bootstrap zip to sync the wallet faster:
  51. https://github.com/blocknetdx/blocknet-blockchain-bootstrap/releases/download/v4.0/Blocknet.zip
  52.  
  53. -when it ends the download unzip the blocknet folder on your desktop. while waiting go to next step
  54.  
  55. -if your hot wallet is synced up, backup your wallet.dat on desktop, make sure you have encrypted the wallet before doing this!
  56.  
  57. -then from WinSCP drag the wallet.dat file inside the "wallets" folder
  58.  
  59. -now if the download of the bootstrap has finished and you have extracted it, you should have a folder on your desktop called Blocknet with the bootstrap folders inside.
  60.  
  61. -open it and drag the folders "blocks, chainstate, indexes" inside the ".blocknet" folder on WinSCP.
  62.  
  63. -it will take some time (30 minutes+) so go play some videogames 😁
  64.  
  65. -go back to putty after its done and go back to main directory:
  66. cd ~
  67.  
  68. -go into the folder of the new version of the wallet:
  69. cd blocknet-4.0.2/bin/
  70.  
  71. -start the server:
  72. ./blocknetd
  73.  
  74. (it should say:
  75. Blocknet server starting)
  76.  
  77. -wait for it to sync up. You can check the status by running this command on the server:
  78. ./blocknet-cli -getinfo
  79.  
  80. Wait for it to have the same blocks as your hot wallet.
  81.  
  82. -when it finishes type this, where password is the one you used for your hot wallet to encyrpt it (if it gives you an error put the password between brackets "your_password"):
  83. ./blocknet-cli walletpassphrase password 999999999 true
  84.  
  85. (999999999 are the seconds in which the wallet will stay open and stake, so if you use this number it will be 11 years roughly 😂)
  86. (true is very important because it tells the wallet to stake and not to spend)
  87.  
  88. -check if everthing has worked by typing:
  89. ./blocknet-cli getstakingstatus
  90.  
  91. (you should hopefully see something like this:
  92.   "staking": true,
  93.   "lastupdated": 1582066623,
  94.   "lastupdatedstr": "2020-02-18T22:57:03.000Z",
  95.   "lastblockprocessed": 1335330,
  96.   "status": "Staking is active"
  97.  
  98. )
  99.  
  100. im @fede#5857 on discord
  101.  
  102. donate a coffee if you want (block only) :P. thanks
  103. BYrcD4YEW5kcPf3bBgpD2ymetJKPLxTjiu
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top