Guest User

Untitled

a guest
Oct 15th, 2017
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.68 KB | None | 0 0
  1. NOTES (Work In Progress)
  2.  
  3. We are testing Masternodes functionality on the Testnet chain, using Test Biblepay (tBiblePay) coins
  4.  
  5. Requirements
  6. 2 machines with 2 separate IP addresses
  7.  
  8. you are setting up a Masternode on a remote Linux server,
  9. and storing tBiblePay coins on a local Windows PC
  10.  
  11. PART 1 - Home Wallet (Windows) TestNet
  12.  
  13. On local/home Windows PC:
  14.  
  15. 1. Download & Install latest version of BiblePay:
  16. http://biblepay.org/
  17.  
  18. 2. Enable and Run Wallet in Testnet Mode (a or b)
  19.  
  20. a. Find and Edit biblepay.conf file in %appdata%/BiblePayCore folder,
  21. Add line below and Save:
  22. testnet=1
  23.  
  24. -or-
  25.  
  26. b. On command line you can pass the -testnet flag to the executable file
  27. C:\Program Files (x86)\BiblePayCore\biblepay-qt.exe -testnet
  28.  
  29. 3. Run BiblePay
  30.  
  31. 4. See Green Background on loading screen and on Icon, also See tBiblePay name for coins
  32. On command line, use ./biblepay-cli getinfo command and check for: "testnet": true
  33.  
  34. 5. After Loading, Close Wallet
  35.  
  36. 6. By running Biblepay in Testnet mode, it has now created a new folder /testnet3
  37. Find and Go to /testnet3 folder in %appdata%/BiblePayCore folder using File Explorer
  38.  
  39. 7. Edit biblepay.conf file, add lines below and save:
  40. addnode=node.biblepay.org
  41. addnode=vultr4.biblepay.org
  42. addnode=vultr5.biblepay.org
  43.  
  44. QUESTION: Do both root and /testnet3 biblepay.conf files need to have the above addnode lines?
  45. QUESTION: How do you know which biblepay.conf is being used? do both get used? Is it hierarchical?
  46.  
  47. 8. Run BiblePay
  48.  
  49. 9. Ask in this Forum for someone to send you 500,000 tBiblePay (Test Biblepay coins)
  50. Post your Receiving Address:
  51. Wallet Menu >> File >>> Receiving Addresses >> Right Click >> Copy Address
  52.  
  53. ==========
  54.  
  55. PART 2 - Rent Linux Cloud Machine
  56.  
  57. 1. Research and Choose Cloud Provider (AWS, Google, Azure, [Vultur], etc) and Create Account
  58. 2. Choose Machine to Rent (Recommend: Ubuntu 16.04, 2GB RAM)
  59. 3. Payment Method
  60. 4. Connect to it / SSH (Putty http://www.putty.org/ SSH Client for Windows)
  61.  
  62. ==========
  63.  
  64. PART 3 - Install Linux Wallet
  65. https://www.reddit.com/r/BiblePay/comments/6ummuj/how_to_mine_biblepay_on_linux/
  66.  
  67. ==========
  68.  
  69. PART 4 - Run Linux Wallet Testnet
  70.  
  71. On remote Linux machine:
  72.  
  73. 1. Enable & Run Wallet in Testnet mode:
  74.  
  75. a. Edit biblepay.conf file and add testnet=1
  76. cd ~/.biblepaycore
  77. vi biblepay.conf
  78.  
  79. testnet=1
  80.  
  81. ESC + : + w + q
  82.  
  83. -or-
  84. (NOTE: Im not sure if this command works, stalls for me)
  85. Pass -testnet flag directly to exe
  86. ./biblepayd -daemon -testnet
  87.  
  88.  
  89. 2. Close wallet:
  90. ./biblepay-cli stop
  91. -or if stuck-
  92. ps -ef #view processes
  93. kill PID
  94.  
  95. 3. Add addnode lines below to biblepay.conf in new /tesetnet3 folder:
  96. cd ~/.biblepaycore/testnet3
  97. vi biblepay.conf
  98.  
  99. addnode=node.biblepay.org
  100. addnode=vultr4.biblepay.org
  101. addnode=vultr5.biblepay.org
  102.  
  103. ESC + : + w + q
  104.  
  105. 4. Run BiblePay:
  106. ./biblepayd -daemon
  107.  
  108. 5. Check that blocks number matches home Windows wallet and that testnet=true:
  109. ./biblepay-cli getinfo
  110.  
  111. ===========
  112.  
  113. PART 5 - Financing your Masternode
  114.  
  115. http://wiki.biblepay.org/Create_Masternode
  116.  
  117. 1. Generate private key on Masternode Linux machine
  118.  
  119. masternode genkey
  120.  
  121. This is your masternode private key, copy and paste it for later use
  122.  
  123. 2. Home Wallet - Show Proof of Coins?
  124.  
  125. getaccountaddress MASTERNODE_NAME
  126. sendtoaddress MASTERNODE_ADDRESS 500000 "" ""
  127.  
  128. QUESTION: Are we sending coins to ourself?
  129. QUESTION: Which node is the Masternode?
  130. QUESTION: Does the Masternode actually hold coins?
  131.  
  132. QUESTION: Is there a certain label that should be used for getaccountaddress?
  133. QUESTION: How to deal with fees when sending? Does amount have to be 500,000 exactly?
  134.  
  135. 3.a. Wait for 15? confirmations
  136. (Note: Testnet chain mines blocks every 1 minute,
  137. turn on miner if no one else is mining so confirmations can go through: setgenerate true 1)
  138.  
  139. 3.b. Home Wallet - Edit masternode.conf:
  140. cd ~/.biblepaycore/testnet3/
  141. vi masternode.conf
  142. Add line below and Save:
  143.  
  144. ALIAS IP:40001 MASTERNODEPRIVKEY TRANSACTIONHASH INDEX
  145.  
  146. ALIAS: Any name/label that you want to call your masternode
  147. IP: Your masternode IP (Your masternode VPS's IP)
  148. MASTERNODEPRIVKEY: This is the private key that you placed in your remote configuration
  149. TRANSACTIONHASH: This is the transaction hash for the transaction in which you got your 500000 BBP deposited.
  150. INDEX: This is the Index of your transaction for that address I'll show you how to get it in a bit.
  151.  
  152. QUESTION: Why port 51472? And does it need to be changed in any firewalls?
  153.  
  154. 3.b.1 Get TRANSACTIONHASH and INDEX from running this command:
  155. masternode outputs
  156.  
  157. You will get a string that looks like this:
  158. {
  159. "06e38868bb8f9958e34d5155437d009b72dff33fc28874c87fd42e51c0f74fdb" : "0",
  160. }
  161. The long string is your transaction hash, and the last number is the index.
  162.  
  163. 4. Home Wallet - Edit biblepay.conf:
  164. Find and Open: %appdata%/BiblePayCore/testnet3/biblepay.conf
  165. Decide on RandomUsername and RandomPassword to use for RPC credentials
  166. Add Lines below and Save:
  167.  
  168. rpcuser=RandomUsername
  169. rpcpassword=RandomPassword
  170. rpcallowip=127.0.0.1
  171. listen=0
  172. server=1
  173. daemon=1
  174. logtimestamps=1
  175. maxconnections=256
  176.  
  177. 5. Restart Home Wallet
  178.  
  179. 6. Linux Machine, Run Firewall/Port commands:
  180. sudo apt-get update
  181. sudo apt-get install ufw
  182. sudo ufw allow ssh/tcp
  183. sudo ufw limit ssh/tcp
  184. sudo ufw allow 40001/tcp
  185. sudo ufw logging on
  186. sudo ufw enable
  187. sudo ufw status
  188.  
  189. 7. Linux Masternode Wallet - Edit biblepay.conf:
  190. cd ~/.biblepaycore/tesetnet3/
  191. vi biblepay.conf
  192.  
  193. rpcuser=RandomUsername
  194. rpcpassword=RandomPassword
  195. rpcallowip=127.0.0.1
  196. listen=1
  197. server=1
  198. daemon=1
  199. logtimestamps=1
  200. externalip=your_public_ip
  201. maxconnections=256
  202. masternode=1
  203. masternodeprivkey=MASTERNODE_PRIVATE_KEY
  204.  
  205. QUESTION: What IP address goes in this part of the config? "externalip=your_public_ip"
  206. "externalip is your VPS's IP."
  207.  
  208. QUESTION: What are these config settings doing? Can the Home Wallet now control the Linux Wallet? or reverse of that?
  209.  
  210.  
  211. 8. Masternode Linux Wallet - Restart BiblePay:
  212. ./biblepay-cli stop
  213. ./biblepayd -daemon
  214.  
  215.  
  216. 9. Home Windows Wallet - Start Masternode?
  217. masternode list-conf
  218. masternode start-alias ALIAS
  219. (Note: ALIAS is from Step 3. when you added Masernode information to /testnet3/masternode.conf file)
  220.  
  221. masternode list
  222. My txHash is listed and changed to: "PRE_ENABLED"
  223.  
  224. mnsync status
  225.  
  226. QUESTION: Im stuck, help! :)
  227.  
  228. I opened /testnet3 debug.log with baretail and I see action happening, is their a syncing Period?
  229.  
  230. masternode help
  231. masternode debug
  232.  
  233. 10. Home Windows Wallet? Masternode Linux Wallet? - Check Masternode working?
  234. masternode status
  235.  
  236. ==========
  237.  
  238. PART X? - Watchman
  239.  
  240. QUESTION: Where does Watchman fit in the process? What is Watchman? what is it doing?
  241.  
  242. How to install Watchman on the Wall
  243. https://github.com/biblepay/biblepay/blob/master/BuildBiblePay.txt
  244. https://github.com/biblepay/watchman
  245.  
  246.  
  247. 1, Clone & Install Watchman
  248. sudo apt update
  249. sudo apt install git python-virtualenv virtualenv
  250. cd ~/.biblepaycore
  251. git clone https://github.com/biblepay/watchman.git
  252. cd watchman
  253. virtualenv venv
  254. venv/bin/pip install -r requirements.txt
  255.  
  256. 2. Set Watchman Config
  257. nano watchman.conf
  258. - 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)
  259. [For nano editor, ctrl+O to save file, ctrl+X quit]
  260.  
  261.  
  262. 3. Run Watchman
  263. venv/bin/python bin/watchman.py
  264.  
  265. [Errno 111] Connection refused
  266. Cannot connect to biblepayd. Please ensure biblepayd is running and the JSONRPC port is open to watchman.
  267.  
  268. STUCK: What am I doing wrong here?
  269.  
  270. --- uncommented (deleted #) in watchman.conf file
  271. biblepay_conf=/home/YOURUSERNAME/.biblepaycore/biblepay.conf
  272. no noticeable change
  273.  
  274.  
  275. 4. Setup Watchman in Cron:
  276. crontab -e
  277. Add this line:
  278. * * * * * cd /home/YOURUSERNAME/.biblepaycore/watchman && ./venv/bin/python bin/watchman.py >/dev/null 2>&1
  279.  
  280.  
  281. ===========
  282.  
  283. Wallet GUI PROTIP
  284. Settings >> Options >> Wallet >> Show Masternodes Tab >> OK
  285.  
  286.  
  287. References:
  288. https://www.reddit.com/r/BiblePay/comments/6ummuj/how_to_mine_biblepay_on_linux/
  289. https://github.com/biblepay/biblepay/blob/master/BuildBiblePay.txt
  290. https://github.com/biblepay/watchman
  291. http://wiki.biblepay.org/Create_Masternode
  292. https://www.youtube.com/watch?v=Lybtz7iucVs
  293.  
  294. Other References:
  295. https://dashpay.atlassian.net/wiki/spaces/DOC/pages/1867820/TAO+S+SETUP+GUIDE+FOR+DUMMIES+12.1
  296. https://dashpay.atlassian.net/wiki/spaces/DOC/pages/1867877/Start+multiple+masternodes+from+one+wallet+start-many
  297. https://dashpay.atlassian.net/wiki/spaces/DOC/pages/24019061/Newcomer+Section+-+What+is+...+and+how+do+I+set+one+up
  298. https://github.com/dashpay/dash/blob/master/contrib/debian/examples/dash.conf
  299.  
  300. QUESTION: What is "hot" and "cold" wallets/masternodes?
  301. QUESTION: What is the whole masternode process in laymens terms?
Add Comment
Please, Sign In to add comment