Bitcoin/BFGMiner

From Omnia
(Redirected from Bfgminer)
Jump to navigation Jump to search

BFGMiner

BFGMiner - a modular ASIC/FPGA Bitcoin miner - http://bfgminer.org/

See also CGMiner

Installation

RHEL

Dependencies:

yum install  libcurl-devel
yum install  --enablerepo=epel  uthash-devel jansson-devel    # epel repo

See EPEL for repo information.

Source:

#BFGVERSION=4.5.0
BFGVERSION=4.10.1
wget http://luke.dashjr.org/programs/bitcoin/files/bfgminer/$BFGVERSION/bfgminer-$BFGVERSION.zip
unzip bfgminer-$BFGVERSION.zip
cd bfgminer-$BFGVERSION
#./autogen.sh  # only needed if building from git repo
#./configure
./configure --prefix=/opt/bfgminer
make
sudo make install

References:

Debian

Execution

bfgminer --config /path/my.conf
# BTC pool mining
LD_LIBRARY_PATH=/opt/bfgminer/lib /opt/bfgminer/bin/bfgminer --config /opt/bfgminer/conf/slush.conf -S icarus:all
#LD_LIBRARY_PATH=/opt/bfgminer/lib /opt/bfgminer/bin/bfgminer --config /opt/bfgminer/conf/slush.conf -S erupter:all
# BNCR pool mining
#LD_LIBRARY_PATH=/opt/bfgminer/lib /opt/bfgminer/bin/bfgminer --config /opt/bfgminer/conf/bancorcoin-pool.conf --set-device antminer:clock=x0981 -S antminer:all
# BNCR local mining
#LD_LIBRARY_PATH=/opt/bfgminer/lib /opt/bfgminer/bin/bfgminer --config /opt/bfgminer/conf/bancorcoin-mining.conf --set-device antminer:clock=x0981 -S antminer:all

If you compiled with prefix:

LD_LIBRARY_PATH=/opt/bfgminer/lib /opt/bfgminer/bin/bfgminer

Configuration

BTC bitcoin.cz slush example:

{
    "pools": [
        {
            "url": "http://api.bitcoin.cz:8332",
            "user": "myuser",
            "pass": "mypass"
        }
    ]
}

BNCR miningpools.tk example:

{
    "pools": [
        {
            "url": "stratum+tcp://miningpools.tk:8047",
            "user": "1PhiPScGSvucr9FXTeC2LCW8oK5Nr21fzb",
            "pass": "password"
        }
    ]
}

BNCR solo mining example: (running local BNCR server)

{
    "pools": [
        {
            "url": "http://localhost:9335",
            "user": "bancorcoin",
            "pass": "password123"
        }
    ],
    "api-port" : "4028",
    "expiry" : "120",
    "hotplug" : "5",
    "log" : "5",
    "no-pool-disable" : true,
    "queue" : "3",
    "scan-time" : "60",
    "shares" : "0",
    "intensity" : "12",
    "vectors" : "2",
    "worksize" : "256",
    "lookup-gap" : "2",
    "thread-concurrency" : "8192"
}

Output Explained

Stats:

  • "hashrates: 5s decaying / all-time average / all-time average (effective)"
  • exponentially decaying average over the opt_log_interval

source README:

Each column is as follows:
  The number of devices and processors currently mining
  Hottest temperature reported by any processor
  20 second exponentially decaying average hash rate (configurable with --log
      option)
  An all time average hash rate
  An all time average hash rate based on actual nonces found, adjusted for pool
      reject and stale rate
  The number of Accepted shares
  The number of Rejected shares and stale shares discarded (never submitted),
      and the percentage these are of total found.
  The number of HardWare errors, and percentage invalid of nonces returned

DOlCwYi.png

[1]

Notes

See Bitcoin/BFGMiner/Notes

keywords

bfgminer bitcoin bancorcoin BFGMiner asic mining