Connecting to mainnet
-
Open the appropriate shell window.
-
Run the following command to open firewall port. Make sure that the commands succeed.
If you are connecting from a cloud computer (such as AWS), you will need to additionally open the 30303 port under security rules, to allow incoming connections from 0.0.0.0/0.
If you are connecting from a home computer, you may need to additionally open the firewall port 30303 in your router.Windowsnetsh advfirewall firewall add rule name="TCP Port 30303" dir=in action=allow protocol=TCP localport=30303
1. Open System Preferences.
2. Click on Security & Privacy.
3. Click the Firewall tab.
4. Click the lock icon to unlock the firewall settings.
5. Click the Add (+) button.
6. Enter port 30303 in the Port field.
7. Enter "blockchain" in the Application field.
8. Click the Add button.
9. Click the Start button to enable the firewall.Note that in case you are SSH'd into this computer, you might get logged out when you run these commands. In this case, you will need to SSH again and re-run the applicable steps before this step.
The next command to open port 22 is required only if you are SSH'd into the computer. If you do not open this port but enable firewall in the next command, then you might get permanently get locked out of the machine. But if you are logged in locally, do not run this command.sudo ufw allow 30303/tcp
Run the following command to enable firewall.sudo ufw allow 22/tcp
sudo ufw enable
-
Create a folder named dp.
-
Change to the folder dp.
-
Download the updated CLI (command line interface) wallet by running the following command:
Windowscurl https://github.com/DogeProtocol/go-dp/releases/download/v2.0.47/dp-release-windows-v2.0.47.zip -o dp-release-windows-v2.0.47.zip
curl -Lo dp-release-mac-v2.0.47.tar.gz https://github.com/DogeProtocol/go-dp/releases/download/v2.0.47/dp-release-mac-v2.0.47.tar.gz
curl -Lo dp-release-ubuntu-v2.0.47.tar.gz https://github.com/DogeProtocol/go-dp/releases/download/v2.0.47/dp-release-ubuntu-v2.0.47.tar.gz
-
Extract the contents of the downloaded zip file to a folder.
-
This step is specific to Windows.
WindowsClose the Powershell window. Open a command prompt instead and change to the following folder.cd c:\dp
-
This step is specific to Mac and Linux. Set the environment variable to the required library path. Remember that if you open a new Terminal window anytime, you will need to run this command again, to set the environment variable. You might want to add this environment variable to your shell profile.
-
This command is just required the first time and you do not have to run it each time. Run the following command to configure the software to connect to the Quantum Coin blockchain. Do not run it more than once. Ensure that the command succeeds and no errors or warnings are reported.
-
Run the following command to connect to the mainnet. You may additionally have to add exclusion in your anti-virus software, if the software shows a prompt. If successful, you should see your node connecting to the blockchain and blocks getting created.
-
To stop the blockchain node client, do not close the window or logout or shutdown directly. Instead press CTRL+C.