- Docker
- Docker compose version 1.29.2, build 1110ad01
git clone https://github.com/crypt0inf0/avalon_docker.git
cd avalon_docker
Start avalon node docker container with sudo ./avalon.sh build
avalon_docker$sudo ./avalon.sh -h
Usage: ./avalon.sh [OPTIONS] COMMAND [arg...]
./avalon.sh [ -h | --help ]
Options:
-h, --help Prints usage.
Commands:
build - Build and Run avalon node.
drop - Remove MongoDB avalon database.
delete - Delete avalon node.
log - Display the avalon docker container log.
start - Start avalon node in background.
restart - Restart avalon node in background.
stop - Stop avalon node.
Start avalon node docker container with .\avalon.bat build
on PowerShell
Usage: .\avalon.bat [OPTIONS] COMMAND [arg...]
.\avalon.bat [ -h ]
Options:
-h Prints usage.
Commands:
build - Build and Run avalon node.
drop - Remove MongoDB avalon database.
delete - Delete avalon node.
log - Display the avalon docker container log.
start - Start avalon node in background.
restart - Restart avalon node in background.
stop - Stop avalon node.
Open PowerShell & Run the following commands,
git clone https://github.com/crypt0inf0/avalon_docker.git
cd avalon_docker
curl -o .\mongo_seed\genesis\genesis.zip https://backup.d.tube/genesis.zip
Expand-Archive .\mongo_seed\genesis\genesis.zip -DestinationPath .\mongo_seed\genesis
Build avalon node images,
docker-compose build
Run avalon node (Press Ctrl+C
to stop)
docker-compose up
OR
Run avalon node in background,
docker-compose up -d
To stop avalon node in background,
docker-compose down
To view docker avalon node log use (Press Ctrl+C
to exit)
docker-compose logs -f avalon
- Run by leader brishtiteveja0595: [https://dtube.club/explorer/#/]
- Run by leader fasolo97: [https://dtube.fso.ovh/explorer/#/]
- Run and created by leader techcoderx: [https://blocks.oneloved.tube/]
Once the avalon node sync completely, Now we can setup the leader node by executing the follwing command.
Generate leader key,
docker exec avalon node src/cli key > leader-key.json
Enter your newly generated leader public/private key here
Restart the avalon node,
./avalon.sh restart
Enable avalon node as a leader node,
docker exec avalon node src/cli enable-node YOUR_LEADER_PUB_KEY -M YOUR_USERNAME -K YOUR_PRIVATE_KEY
This transaction must be signed with your master key, or a custom key that allows this transaction. Once this step is done, you can head to the leader election page and vote yourself. If your leader key is properly associated to your account, you should see yourself uncrossed.
Once enough votes for your account come in, and you reach the top leaders, your node will start regularly mining blocks.