Guest User

Untitled

a guest
Nov 12th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.19 KB | None | 0 0
  1. We are testing Masternodes (Sanctuaries) functionality on the Testnet chain, using Test Biblepay (tBiblePay) coins
  2.  
  3. Requirements
  4. 2 machines with 2 separate IP addresses
  5.  
  6. you are setting up a Masternode on a remote Linux server (Sanctuary Wallet)
  7. and storing tBiblePay coins on a local Windows PC (Controller Wallet)
  8.  
  9. PART 1 - Controller Wallet (Windows) TestNet
  10.  
  11. On local/home Windows PC:
  12.  
  13. 1. Download & Install latest version of BiblePay:
  14. http://biblepay.org/
  15.  
  16. 2. Enable and Run Wallet in Testnet Mode
  17.  
  18. Find and Edit biblepay.conf file in %appdata%/BiblePayCore folder,
  19. Add line below and Save:
  20. testnet=1
  21. (Note: Can also edit biblepay.conf from Wallet Menu >> Tools >> Open Configuration File)
  22.  
  23. 3. Run BiblePay
  24.  
  25. 4. See Green Background on loading screen and on Icon, also See tBiblePay name for coins
  26. On command line, use ./biblepay-cli getinfo command and check for: "testnet": true
  27.  
  28. 5. After Loading, Close Wallet
  29.  
  30. 6. Edit biblepay.conf file, add lines below and save:
  31. addnode=node.biblepay.org
  32. addnode=vultr4.biblepay.org
  33. addnode=vultr5.biblepay.org
  34.  
  35. 7. Run BiblePay
  36.  
  37. 8. Ask in this Forum for someone to send you 500,000 tBiblePay (Test Biblepay coins)
  38. Post your Receiving Address:
  39. Wallet Menu >> File >>> Receiving Addresses >> Right Click >> Copy Address
  40. (or start mining coins: setgenerate true X)
  41.  
  42. ==========
  43.  
  44. PART 2 - Rent Linux Cloud Machine
  45.  
  46. 1. Research and Choose Cloud Provider (AWS, Google, Azure, [Vultur], etc) and Create Account
  47. 2. Choose Machine to Rent (Recommend: Ubuntu 16.04, 2GB RAM)
  48. 3. Payment Method
  49. 4. Connect to it / SSH (Putty http://www.putty.org/ SSH Client for Windows)
  50.  
  51. ==========
  52.  
  53. PART 3 - Install Sanctuary Linux Wallet
  54. https://www.reddit.com/r/BiblePay/comments/6ummuj/how_to_mine_biblepay_on_linux/
  55.  
  56. ==========
  57.  
  58. PART 4 - Run Sanctuary Linux Wallet Testnet
  59.  
  60. On remote Linux machine:
  61.  
  62. 1. Enable & Run Wallet in Testnet mode:
  63.  
  64. Edit ~/.biblepaycore/biblepay.conf file and add
  65. testnet=1
  66. addnode=node.biblepay.org
  67. addnode=vultr4.biblepay.org
  68. addnode=vultr5.biblepay.org
  69.  
  70. 2. Close wallet:
  71. ./biblepay-cli stop
  72. -or if stuck-
  73. ps -ef #view processes
  74. kill PID
  75.  
  76. 3. Run BiblePay:
  77. ./biblepayd -daemon
  78.  
  79. 4. Check that blocks number matches home Windows wallet and that testnet=true:
  80. ./biblepay-cli getinfo
  81.  
  82. ===========
  83.  
  84. PART 5 - Financing your Sanctuary Masternode
  85.  
  86. http://wiki.biblepay.org/Create_Masternode
  87.  
  88. 1. Generate private key on Sanctuary Masternode Linux machine
  89.  
  90. ./biblepay-cli masternode genkey
  91.  
  92. (Store this as your MASTERNODE_PRIVATE_KEY)
  93.  
  94. 2. Controller Wallet - Show Proof of Coins
  95. getaccountaddress MASTERNODE_NAME #creates MASTERNODE_ADDRESS
  96. sendtoaddress MASTERNODE_ADDRESS 500000 "" ""
  97.  
  98. 3. Wait for 15 confirmations
  99. (Note: Testnet chain mines blocks every 1 minute,
  100. turn on miner if no one else is mining so confirmations can go through: setgenerate true 1)
  101.  
  102. 4. Controller Windows Wallet - Edit masternode.conf:
  103. %appdata%/biblepaycore/testnet3/masternode.conf
  104. Add line below and Save:
  105.  
  106. ALIAS IP:40001 MASTERNODEPRIVKEY TRANSACTIONHASH INDEX
  107.  
  108. ALIAS: Any name/label that you want to call your masternode
  109. IP: Your masternode IP (Your masternode VPS's IP)
  110. MASTERNODEPRIVKEY: This is the private key that you placed in your remote configuration
  111. TRANSACTIONHASH: This is the transaction hash for the transaction in which you got your 500000 BBP deposited.
  112. INDEX: This is the Index of your transaction for that address I'll show you how to get it in a bit.
  113.  
  114. QUESTION: Why port 51472? And does it need to be changed in any firewalls?
  115.  
  116. 4.a Get TRANSACTIONHASH and INDEX from running this command:
  117. ./biblepay-cli masternode outputs
  118.  
  119. You will get a string that looks like this:
  120. {
  121. "06e38868bb8f9958e34d5155437d009b72dff33fc28874c87fd42e51c0f74fdb" : "0",
  122. }
  123. The long string is your TRANSACTIONHASH, and the last number is the INDEX.
  124.  
  125.  
  126. 5. Controller Windows Wallet - Edit biblepay.conf:
  127. Find and Open: %appdata%/BiblePayCore/testnet3/biblepay.conf
  128. Decide on RandomUsername and RandomPassword to use for RPC credentials
  129. Add Lines below and Save:
  130.  
  131. rpcuser=RandomUsername
  132. rpcpassword=RandomPassword
  133. rpcallowip=127.0.0.1
  134. listen=0
  135. server=1
  136. daemon=1
  137. logtimestamps=1
  138. maxconnections=256
  139.  
  140. 6. Restart Controller Wallet
  141.  
  142. 7. Sanctuary Wallet Remote Linux Machine, Run Firewall/Port commands:
  143. sudo apt-get update
  144. sudo apt-get install ufw
  145. sudo ufw allow ssh/tcp
  146. sudo ufw limit ssh/tcp
  147. sudo ufw allow 40001/tcp
  148. sudo ufw logging on
  149. sudo ufw enable
  150. sudo ufw status
  151.  
  152. 8. Sanctuary Masternode Linux Wallet - Edit ~/.biblepaycore/biblepay.conf:
  153. rpcuser=RandomUsername
  154. rpcpassword=RandomPassword
  155. rpcallowip=127.0.0.1
  156. rpcport=9998
  157. listen=1
  158. server=1
  159. daemon=1
  160. logtimestamps=1
  161. externalip=MASTERNODE_PUBLIC_IP
  162. maxconnections=256
  163. masternode=1
  164. masternodeprivkey=MASTERNODE_PRIVATE_KEY
  165.  
  166. (MASTERNODE_PUBLIC_IP, Public IP Address of Remote Linux Sanctuary Wallet_
  167.  
  168. 9. Sanctuary Masternode Linux Wallet - Restart BiblePay:
  169. ./biblepay-cli stop
  170. ./biblepayd -daemon
  171.  
  172. 10. Controller Windows Wallet - Start Masternode?
  173. masternode list
  174. masternode list-conf
  175. masternode start-alias MASTERNODE_NAME
  176. (Note: MASTERNODE_NAME is from Step 3. b when you added Masernode information to /testnet3/masternode.conf file)
  177.  
  178. mnsync status
  179. (Masternodes take a few minutes to sync(
  180.  
  181. masternode start-alias MASTERNODE_NAME
  182.  
  183. masternode help
  184. masternode debug
  185.  
  186. 11. Sanctuary Masternode Linux Wallet, Check Status:
  187. masternode status
  188.  
  189. ==========
  190.  
  191. PART 6 - Watchman
  192. How to install Watchman on the Wall
  193. https://github.com/biblepay/biblepay/blob/master/BuildBiblePay.txt
  194. https://github.com/biblepay/watchman
  195.  
  196. 1, Clone & Install Watchman
  197. sudo apt update
  198. sudo apt install git python-virtualenv virtualenv
  199. cd ~/.biblepaycore
  200. git clone https://github.com/biblepay/watchman.git
  201. cd watchman
  202. virtualenv venv
  203. venv/bin/pip install -r requirements.txt
  204.  
  205. 2. Set Watchman Config
  206. nano watchman.conf
  207. - Ensure the 'watchman.conf' file (in the watchman dir) is pointed to testnet and not mainnet (by putting a # in front of the main and unpounding the testnet)
  208. [For nano editor, ctrl+O to save file, ctrl+X quit]
  209.  
  210. 3. Run Watchman
  211. venv/bin/python bin/watchman.py
  212.  
  213. 4. Setup Watchman in Cron:
  214. crontab -e
  215. Add this line:
  216. * * * * * cd /home/YOURUSERNAME/.biblepaycore/watchman && ./venv/bin/python bin/watchman.py >/dev/null 2>&1
  217.  
  218. ===========
  219.  
  220. Wallet GUI PROTIP
  221. Settings >> Options >> Wallet >> Show Masternodes Tab >> OK
  222.  
  223. References:
  224. https://www.reddit.com/r/BiblePay/comments/6ummuj/how_to_mine_biblepay_on_linux/
  225. https://github.com/biblepay/biblepay/blob/master/BuildBiblePay.txt
  226. https://github.com/biblepay/watchman
  227. http://wiki.biblepay.org/Create_Masternode
  228. https://www.youtube.com/watch?v=Lybtz7iucVs
  229.  
  230. Dash Masternode Guides:
  231. https://dashpay.atlassian.net/wiki/spaces/DOC/pages/1867820/TAO+S+SETUP+GUIDE+FOR+DUMMIES+12.1
  232. https://dashpay.atlassian.net/wiki/spaces/DOC/pages/1867877/Start+multiple+masternodes+from+one+wallet+start-many
  233. https://dashpay.atlassian.net/wiki/spaces/DOC/pages/24019061/Newcomer+Section+-+What+is+...+and+how+do+I+set+one+up
  234.  
  235. More References:
  236. https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#JSON-RPC
  237. https://bitcoin.org/en/developer-reference#remote-procedure-calls-rpcs
  238. https://github.com/dashpay/dash/blob/master/contrib/debian/examples/dash.conf
Add Comment
Please, Sign In to add comment