Mining in 0.10+ codebase

Mining in 0.10+ codebase

Mining in 0.10+ codebase

UFO Core 0.10.0 works a bit differently from 0.9.0 and older versions.  UFO is actually the first coin of the NeoScrypt family to upgrade to 0.10.0, thus the NSGMiner had to be updated as well to work with 0.10+ clients. To solo mine please download and use NSGMiner 0.9.3. The Bitcoin 0.10 codebase removes getwork and relies on getblocktemplate for solo mining. When setting up the miner you need to provide it with an address to send newly minted coins to. Run “nsgminer –help” for more info.

https://github.com/ghostlander/nsgminer/releases/tag/nsgminer-v0.9.3

Instead of localhost please use 127.0.0.1. These are the changes to rpcallowip.

RPC access control changes

Subnet matching for the purpose of access control is now done by matching the binary network address, instead of with string wildcard matching. For the user this means that -rpcallowip takes a subnet specification, which can be

  • a single IP address (e.g. 1.2.3.4 or fe80::0012:3456:789a:bcde)
  • a network/CIDR (e.g. 1.2.3.0/24 or fe80::0000/64)
  • a network/netmask (e.g. 1.2.3.4/255.255.255.0 or fe80::0012:3456:789a:bcde/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff)

An arbitrary number of -rpcallow arguments can be given. An incoming connection will be accepted if its origin address matches one of them.

For example:

0.9.x and before 0.10.x
Code:
-rpcallowip=192.168.1.1
Code:
-rpcallowip=192.168.1.1

(unchanged)

Code:
-rpcallowip=192.168.1.*
Code:
-rpcallowip=192.168.1.0/24
Code:
-rpcallowip=192.168.*
Code:
-rpcallowip=192.168.0.0/16
Code:
-rpcallowip=*

(dangerous!)

Code:
-rpcallowip=::/0

(still dangerous!)

Using wildcards will result in the rule being rejected with the following error in debug.log:

Error: Invalid -rpcallowip subnet specification: *. Valid are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24).

Example configurations:

NSGMiner:

nsgminer --neoscrypt -w 128 -I 13 -o http://127.0.0.1:9888 -u username -p P4V5fgq3 --no-getwork --no-stratum --verbose --text-only --coinbase-addr BuWudvgPv9ni5iZR1yqSkqiPuvtESoLzqd

ufocoin.conf :

rpcuser=ufouser
rpcpassword=6bjlvC5KKSjVyig5
(should be a mixture of three classes of characters – lowercase, uppercase and numbers)
rpcallowip=127.0.0.1
server=0
rpcport=9888
port=9887

Use your own username, password and address!!!

Share this: