Skip to content

Mining Guide

StoneJobs edited this page Jan 14, 2021 · 20 revisions

Introduction Of Mining

XMRig is a high performance RandomX and CryptoNight miner,and his is the CPU-mining version.Since the pow hash algorithm used by our BigBang is cryptonight, so xmrig can also be used for mining of it.

Minimum Requirements

System:ubuntu 16.04  
CPU:Inter core i3  
Memory:4GB  
Hard disk:20G  
Bandwidth:200Kbps  

Source Code

address:https://github.com/BigBang-Foundation/miner  
download:git clone https://github.com/BigBang-Foundation/miner.git  

build

sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev  
git clone https://github.com/BigBang-Foundation/miner.git  
cd xmrig && mkdir build && cd build  
cmake ..  
make  

Executable Programe Download

address:https://github.com/BigBang-Foundation/miner/releases  

Modify Your Configuration File

The preferred way to start mining is to use the configuration file JSON config file, which is more flexible and user-friendly. Although you can start a program using the command line,but it does not cover all features. For example, setting configuration files for different algorithms, and important options can be completed by modifying the configuration files or executing API calls during program running without restarting miner. The contents of the configuration file are as follows:

{
    "api": {
        "id": null,
        "worker-id": null
    },
    "http": {
        "enabled": false,
        "host": "127.0.0.1",
        "port": 0,
        "access-token": null,
        "restricted": true
    },
    "autosave": true,
    "version": 1,
    "background": false,
    "colors": true,
    "randomx": {
        "init": -1,
        "numa": true
    },
    "cpu": {
        "enabled": true,
        "huge-pages": true,
        "hw-aes": null,
        "priority": null,
        "asm": true,
        "argon2-impl": null,
        "cn/bbc": [
            0,
            1,
            2,
            3
        ]
    },
    "donate-level": 1,
    "donate-over-proxy": 1,
    "log-file": null,
    "pools": [
        {
            "algo": "cn/bbc",
            "url": "bbc01.bbcpool.io:3333",
            "user": "1dtxf4e89n52eyttgnwhrjwgesez3edk8k9gfcjfq94yas0qb4j67vqz7",
            "pass": "x",
            "rig-id": "my name",
            "nicehash": true,
            "keepalive": true,
            "enabled": true,
            "tls": false,
            "tls-fingerprint": null,
            "daemon": false
        }
    ],
    "print-time": 60,
    "retries": 5,
    "retry-pause": 5,
    "syslog": false,
    "user-agent": null,
    "watch": true
}

modify param:

"background": false, # Run in background or not
"cn/bbc": [ # multi-thread config
  0, # cpu 0
  1, # cpu 1
  2, # cpu 2
  3  # cpu 3
]
"user": "1tp1qxcytshfdyn64yxd5hra6bx2f5qzbxnhvwhgchggwnxzkp29k29ee", # Fill in the address to receive the BBC
"rig-id": "my name", # Fill in your name

Options

  -a, --algo=ALGO               specify the algorithm to use
                                  cn/r, cn/2, cn/1, cn/0, cn/double, cn/half, cn/fast,
                                  cn/rwz, cn/zls, cn/xao, cn/rto, cn/gpu,
                                  cn-lite/1,
                                  cn-heavy/xhv, cn-heavy/tube, cn-heavy/0,
                                  cn-pico,
                                  rx/wow, rx/loki
  -o, --url=URL                 URL of mining server
  -O, --userpass=U:P            username:password pair for mining server
  -u, --user=USERNAME           username for mining server
  -p, --pass=PASSWORD           password for mining server
      --rig-id=ID               rig identifier for pool-side statistics (needs pool support)
  -t, --threads=N               number of miner threads
  -v, --av=N                    algorithm variation, 0 auto select
  -k, --keepalive               send keepalived packet for prevent timeout (needs pool support)
      --nicehash                enable nicehash.com support
      --tls                     enable SSL/TLS support (needs pool support)
      --tls-fingerprint=F       pool TLS certificate fingerprint, if set enable strict certificate pinning
      --daemon                  use daemon RPC instead of pool for solo mining
      --daemon-poll-interval=N  daemon poll interval in milliseconds (default: 1000)
  -r, --retries=N               number of times to retry before switch to backup server (default: 5)
  -R, --retry-pause=N           time to pause between retries (default: 5)
      --cpu-affinity            set process affinity to CPU core(s), mask 0x3 for cores 0 and 1
      --cpu-priority            set process priority (0 idle, 2 normal to 5 highest)
      --no-huge-pages           disable huge pages support
      --no-color                disable colored output
      --donate-level=N          donate level, default 5% (5 minutes in 100 minutes)
      --user-agent              set custom user-agent string for pool
  -B, --background              run the miner in the background
  -c, --config=FILE             load a JSON-format configuration file
  -l, --log-file=FILE           log all output to a file
      --asm=ASM                 ASM optimizations, possible values: auto, none, intel, ryzen, bulldozer.
      --print-time=N            print hashrate report every N seconds
      --api-worker-id=ID        custom worker-id for API
      --api-id=ID               custom instance ID for API
      --http-enabled            enable HTTP API
      --http-host=HOST          bind host for HTTP API (default: 127.0.0.1)
      --http-port=N             bind port for HTTP API
      --http-access-token=T     access token for HTTP API
      --http-no-restricted      enable full remote access to HTTP API (only if access token set)
      --randomx-init=N          threads count to initialize RandomX dataset
      --randomx-no-numa         disable NUMA support for RandomX
      --export-topology         export hwloc topology to a XML file and exit
      --dry-run                 test configuration and exit
  -h, --help                    display this help and exit
  -V, --version                 output version information and exit

Start Work

If your profile is in the same directory as the executable program,you should start work like this:

./xmrig -c config.json

View Your Rewards

You can click here log in to the pool, select worker statistics, and then enter your wallet address, your can view the data of rewards.

Clone this wiki locally