Skip to content

Configuration

jesus-nuco edited this page Jul 4, 2019 · 3 revisions
{
    "logging": {
      "level": "info",
      "enableConsoleLog": true,
      "enableConsoleColors": true,
        // Log file name (full log) - can be null in which case log events are written to console (stdout)
      "logFile": "aion-1.log",
        // Log file name for API-requests - can be null in which case log events are written to either main logFile or console (stdout)

      "logBaseDirectory": "",
      "perPoolLogFile": false
    },
  
    "banning": {
        // "integrated" or "iptables" (linux only - not yet implemented)
      "manager": "integrated",
      "banOnJunkReceive": true,
      "banOnInvalidShares": false
    },
  
    "notifications": {
      "enabled": true,
      "email": {
        "host": "smtp.example.com",
        "port": 587,
        "user": "user",
        "password": "password",
        "fromAddress": "[email protected]",
        "fromName": "pool support"
      },
  
      "admin": {
        "enabled": false,
        "emailAddress": "[email protected]",
        "notifyBlockFound": true
      }
    },
    // Where to persist shares and blocks to
    "persistence": {
      "postgres": {
        "host": "127.0.0.1",
        "port": 5432,
        "user": "miningcore",
        "password": "password", 
        "database": "miningcore"
      }
    },
      // Generate payouts for recorded shares and blocks
    "paymentProcessing": {
      "enabled": true,
        // How often to process payouts, in milliseconds
      "interval": 10,
        // Path to a file used to backup shares under emergency conditions, such as
        // database outage
      "shareRecoveryFile": "recovered-shares.txt"
    },
      // API Settings
    "api": {
      "enabled": true,
        // Binding address (Default: 127.0.0.1)
      "listenAddress": "127.0.0.1",
      "port": 4000
    },
  
    "pools": [{
    "id": "aion-1",
       "enabled": true,
       "coin": {
         "type": "AION"
       },
      // Address to where block rewards are given (pool wallet)
      "address": "0xa0...",
            // Block rewards go to the configured pool wallet address to later be paid out
            // to miners, except for a percentage that can go to, for examples,
            // pool operator(s) as pool fees or or to donations address. Addresses or hashed
            // public keys can be used. Here is an example of rewards going to the main pool
            // "op"
      "rewardRecipients": [
        {
        // Pool wallet
          "address": "0xa0...",
          "percentage": 1
        }
      ],
              // How often to poll RPC daemons for new blocks, in milliseconds

      "blockRefreshInterval": 500,

// Some miner apps will consider the pool dead/offline if it doesn't receive
            // anything new jobs for around a minute, so every time we broadcast jobs,
            // set a timeout to rebroadcast in this many seconds unless we find a new job.
            // Set to zero to disable. (Default: 0)  
      "jobRebroadcastTimeout": 10,

  // Remove workers that haven't been in contact for this many seconds.
            // Some attackers will create thousands of workers that use up all available
            // socket connections, usually the workers are zombies and don't submit shares
            // after connecting. This features detects those and disconnects them.
      "clientConnectionTimeout": 600,
   // If a worker is submitting a high threshold of invalid shares, we can
   // temporarily ban their IP to reduce system/network load.
      "banning": {
        "enabled": true,
         // How many seconds to ban worker for
        "time": 600,
       // What percent of invalid shares triggers ban
        "invalidPercent": 50,
      // Check invalid percent when this many shares have been submitted
        "checkThreshold": 50
      },
   // Each pool can have as many ports for your miners to connect to as you wish.
            // Each port can be configured to use its own pool difficulty and variable
            // difficulty settings. 'varDiff' is optional and will only be used for the ports
            // you configure it for.
      "ports": {
                // Binding port for your miners to connect to
        "3333": {
          "listenAddress": "0.0.0.0",
          "difficulty": 512,
// Variable difficulty is a feature that will automatically adjust difficulty
                    // for individual miners based on their hash rate in order to lower
                    // networking overhead
          "varDiff": {
            "minDiff": 128,
// Maximum difficulty. Network difficulty will be used if it is lower than
// this. Set to null to disable.
            "maxDiff": 1000000000000000000000000,
// Try to get 1 share per this many seconds
            "targetTime": 5,
// Check to see if we should retarget every this many seconds
            "retargetTime": 45,
// Allow time to very this % from target without retargeting
            "variancePercent": 30,
// Do not alter difficulty by more than this during a single retarget in
// either direction
            "maxDelta": 500
          }
        }
      },
            // Recommended to have at least two daemon instances running in case one drops
            // out-of-sync or offline. For redundancy, all instances will be polled for
            // block/transaction updates and be used for submitting blocks. Creating a backup
            // daemon involves spawning a daemon using the "-datadir=/backup" argument which
            // creates a new daemon instance with it's own RPC config. For more info on this,
            // visit: https:// en.bitcoin.it/wiki/Data_directory and
            // https:// en.bitcoin.it/wiki/Running_bitcoind  
      "daemons": [{
          "host": "127.0.0.1",
          "port": 8545,
          "user": "",
          "password": ""
        }
      ],
  
      "paymentProcessing": {
        "enabled": true,
        "minimumPayment": 0.1,
        "payoutScheme": "PPLNS",
        "payoutSchemeConfig": {
          "factor": 2.0
        },
        "accountPassword": "asd",
        "keepTransactionFees": false,
        "minimumConfirmations": 30,
        "nrgFee": 0.0001,
        "minimumPeerCount": 1        
      }
    }]
  }
Clone this wiki locally