Worker Setup - VidPool
Configuration
TODO provide a centralized place for production configuration.
Below is the example of the configuration file.
Image
Pull image using:
Persistent state
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/vidstate
on my local machine. You can also put a config as config.json
inside this directory, and application will pick it up.
Execution safety
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.
After the contract is deployed, please update configuration parameter BlockContractAddress
.
Last updated