Mining

File Path: shared/config.mining.lua

Here you will find the most important information related to crypto mining. You should carefully read through the comments below to understand what each thing does and configure it correctly depending on your server needs.


Config File

Config["Mining"] = {
    -- Base stuff
    MaxMinersPerComputer = 10,
    MinernameStartsWith = "bd_miner_",
    GPUGainAmount = 0.34, -- The amount a single gpu adds to the total gain amount of the mining rig.

    /** Default mining values
        * @@ DefaultAmountPer24h - !!IMPORTANT!!
        * DefaultAmountPer24h is the amount of coins a computer will generate in 24 hours.
        * When you connect a server the value the server generates will be be added to this value.
        * The amount a computer generates is calculated using the UpdateTime value below and the amount of miners the computer has.

        * @@ DegradeValue - !!IMPORTANT!!
        * DegradeValue is the value that will be used to degrade the computer parts and the gpus in a server on each Update.
        * Basically every XX time (Given in the UpdateTime below) the computer parts and the gpus will degrade by this value.
        * Their total health at the beginning is 100, so if you set this value to 0.1, the computer parts and the gpus will degrade by -1 health every XX time.
    **/
    DefaultAmountPer24h = 1,
    DegradeValue = 0.5,

    /** Mining times and things related to it
        * @@ UpdateTime - !!IMPORTANT!!
        * UpdateTime is the time in minutes that the mining will update the values of the miners and the new amount of coins a computer has.
        * The lower the number the more the server will be used, so be careful with this value.
        * I would recommend to keep it at 10 minutes the least. Do not go below that.

        * @@ UpdateSimuoltaneously - !!IMPORTANT!!
        * UpdateSimuoltaneously is a boolean value that will determine if the mining will update all the miners at the same time or not.
        * If you set it to true, all the miners will update at the same time, if you set it to false, the miners will update one by one with wait time in between them.
        * I would recommend to keep it at false, so the server will not be used all at once.

        * @@ UpdateSimuoltaneouslyWaitTime - !!IMPORTANT!!
        * UpdateSimuoltaneouslyWaitTime is the time in milliseconds that the mining will wait between each miner update if UpdateSimuoltaneously is set to false.
        * I would recomment to keep it anywhere between 500 and 1000ms.
    **/
    UpdateTime = 1,                      -- In minutes
    UpdateSimuoltaneously = false,       -- Recommended to leave to false for better performance
    UpdateSimuoltaneouslyWaitTime = 500, -- In milliseconds
}

Last updated