Running on Docker
Last updated
Was this helpful?
Last updated
Was this helpful?
We provide a docker containerized distribution of the Quanta Core which can be used to run on Linux, OSX, or Windows platform. Docker nicely runs the linux environment required for the quanta-core instance, in an isolated environment.
Docker image: https://hub.docker.com/r/quantalabs/quanta-core
The image opens two ports 1) 8090 which is the websocket RPC service, and 2) 1776 a p2p service to communicate with other nodes.
On windows, install docker from docker official page, https://docs.docker.com/docker-for-windows/install/ , or from download.docker.com.
NOTE: It will ask you to logout and log back into the system. Next it will enable Hyper-V which is a windows technology that powers the virtual machine. You may get an error about BIOS not enabled for virtualization. You need to enter your BIOS typically with DEL, ESC, or F10 when the machine boots up. From inside the bios you need to find a Virtualization Technology (VTx) and enable it. For my HP machine, this visual guide was helpful.
Next, download our pre-built docker-compose configuration and quanta configuration file. Dropbox link. Now, unzip the content to a directory where you will store the data for the quanta chain, where preferably you have 100GB+ in free space. Next, click on the Docker icon on the system tray, settings, and enable the drive where the folder is located to be shared with the docker. This allows docker to write the data back to your drive for persistent storage.
Open up Terminal (from search / Terminal). Change directory to where your data directory. For example this is change directory command for C:\quanta
Next, let's run the node. This command below will start the quanta-node in the background (-d parameter for detached). It's going to download the latest docker image from the cloud and boot up.
Let's verify whether the node ran properly. You should see it trying to fetch the blocks from the beginning. This will take 30-60 minutes to fetch all the blocks from the network.
After it gets all the blocks, you will see it receiving individual blocks and network transactions, which means the system is operating properly, like so:
To stop the node, run
This runs the wallet in a separate VM environment. The wallet file points to the same location as you config directory.
The first time you create a wallet, you will need set the password.
Unlocking the password
Query global properties: very useful to see active witnesses, prices, etc.
Query on object. Every piece of data such as account, witness, block have object ids. Anything that has x.y.z (eg. 1.3.0) can be query with:
Query an account
Importing your key
To Transfer 10 QDEX from alpha to charlie
Registering a new account with quanta_foundation paying for the registration of the account and quanta_foundation receiving the referral fee. You would need to replace at least the registration account that you can unlock to pay for the fee.
For more commands:
Please see Wallet API on Graphene.
Instructions to switch to mainnet
create a new directory eg. C:/quanta-mainnet
unzip the prepare files
edit docker-compose.yml
change out quantalabs/quanta-core:latest with the latest image name ending with "m" for mainnet from https://hub.docker.com/r/quantalabs/quanta-core/tags
edit the config.ini
seed-nodes = ["54.203.105.154:4600","54.203.105.154:4600"]
If you're a block producer, change the witness-id and the private-key fields.
docker-compose up -d
docker-compose logs -f
you should see that we have a new chain id: 9809209586f5aef6c4c8f5c24ee2d7c4104b64f951b1c32355e3d7d93fe16daa
First step is to update the image version to the target version. In this case the version is 1.83-mainnet, and make sure REPLAY is o
Next run retrieve the image:
Then, restart the node, and force it to use the same new image.