How to create and use a configuration file?

Setting up a configuration file can be quite useful. This is particularly true when the command line is very long and you want to modify it often, then it is easier to create and edit a simple file where the information can be more organised.

To create a configuration file with miniZ, you can write it from scratch, however you can also write the long command line once , adding --write-config  to it, and run. Ex:

 miniz.exe --algo=150,5,3 --url=ssl://WalletAddress.Worker@beam-eu.leafpool.com:3333 --pass x1 --url=ssl://YourPublicAPIKey@beam.sunpool.top:3333 --pass x2 --write-config

miniZ will create miniZ.conf file. If you want to give it a different name add filename.conf to command line, right after the --write-config:

miniz.exe --algo=150,5,3 --url=ssl://WalletAddress.Worker@beam-eu.leafpool.com:3333 --pass x1 --url=ssl://YourPublicAPIKey@beam.sunpool.top:3333 --pass x2 --write-config filename.conf

You can open the file with a text editor to see how it looks like. You can also edit the file as needed.

Finally, you’ll only need to run miniZ with --read-config. 🙂

If you want to read from the default file name:

miniZ.exe --read-config

or if you want to read configurations from another file:

miniZ.exe --read-config filename.conf

 

Saving ocX best mode to configuration file.

In case you want to save the result of running ocX to the configuration file, you’ll need to proceed as above and write the command line with --write-config at the end (do not forget you can add a filename, read above):

miniz.exe --algo=150,5,3 --url=ssl://WalletAddress.Worker@beam-eu.leafpool.com:3333 --pass x1 --url=ssl://YourPublicAPIKey@beam.sunpool.top:3333 --pass x2 --ocX --write-config

However, now you will see the program run and start ocX. When ocX ends, miniZ will save the best mode to the configuration file. (It will also keep running with the best mode.)

If you run miniZ with that config file, it will start applying the saved mode to the GPU.

 

For other command line arguments check Usage page.

Happy mining!