Dogcoin Validator Node
is very easy to install and deploy in a Docker container. This requires Docker and Docker Compose to run.
sudo apt install docker && sudo apt install docker-compose
git clone https://github.com/dogcoin-network/Core-Blockchain.git
cd Core-Blockchain/
There are environment
& args
on the line number 5 & 12 respectively, There are fields in key: value
format
Simply copy paste your values save the file.
- Open the docker-compose.yml file
nano docker-compose.yml
or you can use any other editor as well. - Find the code snippet shown as below and add your wallet's private key and the password.
- To paste in the
nano
editor you'll need to use this keyboard shortcut -ctrl + shift + v
- Now to save and exit from
nano
editor please do it this way -ctrl + x
, pressy
and just hitenter
( For MAC users please use cmd instead of ctrl )
Add your wallet address in the environment as shown below
environment:
address=921343c8cfW30d8caa70488884d532Ece203c045
then add the private key and the password as shown below
args:
privatekey: f8fe0Fff5189aYYfd61fY753e8064E4fd6e6f8617b25MdcD7b4bD724f26f5
password: 123456
sudo docker-compose up --build
Now wait for the docker image to be built and up...
When the building process done successfully and the validator prompt running then you'll have to add the peer as shown below. Get the enode and use it here.
admin.addPeer("enode://2072370eb034a99113eb4c63c8exxxxxxxx42ff08040ed384c757fcaf9cc802702874072f7458cc50c7693b9fa8xxxxxxxxxc69cb@bootnodeIp:32668")
You can directly paste in the running terminal using ctrl + v
or cmd + v
(for mac) and hit enter
And that's all.