Worker Setup - VidPool
TODO provide a centralized place for production configuration.
Below is the example of the configuration file.
"KeyFile": "<PROVIDE PATH TO THE WORKER KEY>",
"Password": "<PASSWORD FOR WORKER KEY>",
"ClientID": "<PROVIDE CLIENT ID FROM VIDEOCOIN CONSOLE>",
Pull image using:
docker pull registry.videocoin.net/vidpool/vidpool:latest
The application requires directory for persisting state for the safety and correctness of the application. Make sure to mount a directory from your local machine to docker instance, such as:
In the example below I created a directory
/var/vidstateon my local machine. You can also put a config as
config.jsoninside this directory, and application will pick it up.
docker run -ti -v /var/vidstate:/state -w /state registry.videocoin.net/vidpool/vidpool payout
VideoCoin pool software keeps track of the executed payouts. It does it by tracking last processed block. In the default configuration last processed block is stored on your file system. If it will be lost - manual intervention will be required to avoid processing same rewards twice.
In order to make it more robust you can deploy a simple smart contract on VideoCoin blockchain, the sole responsibility of this contract is to keep last processed block.
docker run -ti -v /tmp/vidconf:/state -w /state registry.videocoin.net/vidpool/vidpool deploy
After the contract is deployed, please update configuration parameter