Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NOTES (Work In Progress)
- We are testing Masternodes functionality on the Testnet chain, using Test Biblepay (tBiblePay) coins
- Requirements
- 2 machines with 2 separate IP addresses
- you are setting up a Masternode on a remote Linux server,
- and storing tBiblePay coins on a local Windows PC
- PART 1 - Home Wallet (Windows) TestNet
- On local/home Windows PC:
- 1. Download & Install latest version of BiblePay:
- http://biblepay.org/
- 2. Enable and Run Wallet in Testnet Mode (a or b)
- a. Find and Edit biblepay.conf file in %appdata%/BiblePayCore folder,
- Add line below and Save:
- testnet=1
- -or-
- b. On command line you can pass the -testnet flag to the executable file
- C:\Program Files (x86)\BiblePayCore\biblepay-qt.exe -testnet
- 3. Run BiblePay
- 4. See Green Background on loading screen and on Icon, also See tBiblePay name for coins
- On command line, use ./biblepay-cli getinfo command and check for: "testnet": true
- 5. After Loading, Close Wallet
- 6. By running Biblepay in Testnet mode, it has now created a new folder /testnet3
- Find and Go to /testnet3 folder in %appdata%/BiblePayCore folder using File Explorer
- 7. Edit biblepay.conf file, add lines below and save:
- addnode=node.biblepay.org
- addnode=vultr4.biblepay.org
- addnode=vultr5.biblepay.org
- QUESTION: Do both root and /testnet3 biblepay.conf files need to have the above addnode lines?
- QUESTION: How do you know which biblepay.conf is being used? do both get used? Is it hierarchical?
- 8. Run BiblePay
- 9. Ask in this Forum for someone to send you 500,000 tBiblePay (Test Biblepay coins)
- Post your Receiving Address:
- Wallet Menu >> File >>> Receiving Addresses >> Right Click >> Copy Address
- ==========
- PART 2 - Rent Linux Cloud Machine
- 1. Research and Choose Cloud Provider (AWS, Google, Azure, [Vultur], etc) and Create Account
- 2. Choose Machine to Rent (Recommend: Ubuntu 16.04, 2GB RAM)
- 3. Payment Method
- 4. Connect to it / SSH (Putty http://www.putty.org/ SSH Client for Windows)
- ==========
- PART 3 - Install Linux Wallet
- https://www.reddit.com/r/BiblePay/comments/6ummuj/how_to_mine_biblepay_on_linux/
- ==========
- PART 4 - Run Linux Wallet Testnet
- On remote Linux machine:
- 1. Enable & Run Wallet in Testnet mode:
- a. Edit biblepay.conf file and add testnet=1
- cd ~/.biblepaycore
- vi biblepay.conf
- testnet=1
- ESC + : + w + q
- -or-
- (NOTE: Im not sure if this command works, stalls for me)
- Pass -testnet flag directly to exe
- ./biblepayd -daemon -testnet
- 2. Close wallet:
- ./biblepay-cli stop
- -or if stuck-
- ps -ef #view processes
- kill PID
- 3. Add addnode lines below to biblepay.conf in new /tesetnet3 folder:
- cd ~/.biblepaycore/testnet3
- vi biblepay.conf
- addnode=node.biblepay.org
- addnode=vultr4.biblepay.org
- addnode=vultr5.biblepay.org
- ESC + : + w + q
- 4. Run BiblePay:
- ./biblepayd -daemon
- 5. Check that blocks number matches home Windows wallet and that testnet=true:
- ./biblepay-cli getinfo
- ===========
- PART 5 - Financing your Masternode
- http://wiki.biblepay.org/Create_Masternode
- 1. Generate private key on Masternode Linux machine
- masternode genkey
- This is your masternode private key, copy and paste it for later use
- 2. Home Wallet - Show Proof of Coins?
- getaccountaddress MASTERNODE_NAME
- sendtoaddress MASTERNODE_ADDRESS 500000 "" ""
- QUESTION: Are we sending coins to ourself?
- QUESTION: Which node is the Masternode?
- QUESTION: Does the Masternode actually hold coins?
- QUESTION: Is there a certain label that should be used for getaccountaddress?
- QUESTION: How to deal with fees when sending? Does amount have to be 500,000 exactly?
- 3.a. Wait for 15? confirmations
- (Note: Testnet chain mines blocks every 1 minute,
- turn on miner if no one else is mining so confirmations can go through: setgenerate true 1)
- 3.b. Home Wallet - Edit masternode.conf:
- cd ~/.biblepaycore/testnet3/
- vi masternode.conf
- Add line below and Save:
- ALIAS IP:40001 MASTERNODEPRIVKEY TRANSACTIONHASH INDEX
- ALIAS: Any name/label that you want to call your masternode
- IP: Your masternode IP (Your masternode VPS's IP)
- MASTERNODEPRIVKEY: This is the private key that you placed in your remote configuration
- TRANSACTIONHASH: This is the transaction hash for the transaction in which you got your 500000 BBP deposited.
- INDEX: This is the Index of your transaction for that address I'll show you how to get it in a bit.
- QUESTION: Why port 51472? And does it need to be changed in any firewalls?
- 3.b.1 Get TRANSACTIONHASH and INDEX from running this command:
- masternode outputs
- You will get a string that looks like this:
- {
- "06e38868bb8f9958e34d5155437d009b72dff33fc28874c87fd42e51c0f74fdb" : "0",
- }
- The long string is your transaction hash, and the last number is the index.
- 4. Home Wallet - Edit biblepay.conf:
- Find and Open: %appdata%/BiblePayCore/testnet3/biblepay.conf
- Decide on RandomUsername and RandomPassword to use for RPC credentials
- Add Lines below and Save:
- rpcuser=RandomUsername
- rpcpassword=RandomPassword
- rpcallowip=127.0.0.1
- listen=0
- server=1
- daemon=1
- logtimestamps=1
- maxconnections=256
- 5. Restart Home Wallet
- 6. Linux Machine, Run Firewall/Port commands:
- sudo apt-get update
- sudo apt-get install ufw
- sudo ufw allow ssh/tcp
- sudo ufw limit ssh/tcp
- sudo ufw allow 40001/tcp
- sudo ufw logging on
- sudo ufw enable
- sudo ufw status
- 7. Linux Masternode Wallet - Edit biblepay.conf:
- cd ~/.biblepaycore/tesetnet3/
- vi biblepay.conf
- rpcuser=RandomUsername
- rpcpassword=RandomPassword
- rpcallowip=127.0.0.1
- listen=1
- server=1
- daemon=1
- logtimestamps=1
- externalip=your_public_ip
- maxconnections=256
- masternode=1
- masternodeprivkey=MASTERNODE_PRIVATE_KEY
- QUESTION: What IP address goes in this part of the config? "externalip=your_public_ip"
- "externalip is your VPS's IP."
- QUESTION: What are these config settings doing? Can the Home Wallet now control the Linux Wallet? or reverse of that?
- 8. Masternode Linux Wallet - Restart BiblePay:
- ./biblepay-cli stop
- ./biblepayd -daemon
- 9. Home Windows Wallet - Start Masternode?
- masternode list-conf
- masternode start-alias ALIAS
- (Note: ALIAS is from Step 3. when you added Masernode information to /testnet3/masternode.conf file)
- masternode list
- My txHash is listed and changed to: "PRE_ENABLED"
- mnsync status
- QUESTION: Im stuck, help! :)
- I opened /testnet3 debug.log with baretail and I see action happening, is their a syncing Period?
- masternode help
- masternode debug
- 10. Home Windows Wallet? Masternode Linux Wallet? - Check Masternode working?
- masternode status
- ==========
- PART X? - Watchman
- QUESTION: Where does Watchman fit in the process? What is Watchman? what is it doing?
- How to install Watchman on the Wall
- https://github.com/biblepay/biblepay/blob/master/BuildBiblePay.txt
- https://github.com/biblepay/watchman
- 1, Clone & Install Watchman
- sudo apt update
- sudo apt install git python-virtualenv virtualenv
- cd ~/.biblepaycore
- git clone https://github.com/biblepay/watchman.git
- cd watchman
- virtualenv venv
- venv/bin/pip install -r requirements.txt
- 2. Set Watchman Config
- nano watchman.conf
- - 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)
- [For nano editor, ctrl+O to save file, ctrl+X quit]
- 3. Run Watchman
- venv/bin/python bin/watchman.py
- [Errno 111] Connection refused
- Cannot connect to biblepayd. Please ensure biblepayd is running and the JSONRPC port is open to watchman.
- STUCK: What am I doing wrong here?
- --- uncommented (deleted #) in watchman.conf file
- biblepay_conf=/home/YOURUSERNAME/.biblepaycore/biblepay.conf
- no noticeable change
- 4. Setup Watchman in Cron:
- crontab -e
- Add this line:
- * * * * * cd /home/YOURUSERNAME/.biblepaycore/watchman && ./venv/bin/python bin/watchman.py >/dev/null 2>&1
- ===========
- Wallet GUI PROTIP
- Settings >> Options >> Wallet >> Show Masternodes Tab >> OK
- References:
- https://www.reddit.com/r/BiblePay/comments/6ummuj/how_to_mine_biblepay_on_linux/
- https://github.com/biblepay/biblepay/blob/master/BuildBiblePay.txt
- https://github.com/biblepay/watchman
- http://wiki.biblepay.org/Create_Masternode
- https://www.youtube.com/watch?v=Lybtz7iucVs
- Other References:
- https://dashpay.atlassian.net/wiki/spaces/DOC/pages/1867820/TAO+S+SETUP+GUIDE+FOR+DUMMIES+12.1
- https://dashpay.atlassian.net/wiki/spaces/DOC/pages/1867877/Start+multiple+masternodes+from+one+wallet+start-many
- https://dashpay.atlassian.net/wiki/spaces/DOC/pages/24019061/Newcomer+Section+-+What+is+...+and+how+do+I+set+one+up
- https://github.com/dashpay/dash/blob/master/contrib/debian/examples/dash.conf
- QUESTION: What is "hot" and "cold" wallets/masternodes?
- QUESTION: What is the whole masternode process in laymens terms?
Add Comment
Please, Sign In to add comment