GithubHelp home page GithubHelp logo

litecoincash-project / cpuminer-multi Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 35.0 17.4 MB

Features the Minotaur and MinotaurX hash algorithms, and segwit support, for Ring [RNG] and Litecoin Cash [LCC].

License: Other

Makefile 0.11% C 92.52% PHP 0.14% HTML 0.03% Assembly 5.42% Shell 0.05% M4 0.16% C++ 1.30% Roff 0.14% Perl 0.02% Objective-C 0.11%

cpuminer-multi's Introduction

CPUMiner-Multi

This is a multi-threaded CPU miner for Minotaur and MinotaurX. It supports SegWit.

It's a fork of tpruvot's cpuminer, in turn forked from pooler's miner.

See AUTHORS for list of contributors.

Table of contents

Algorithms

The main show

  • minotaur Minotaur (Ring [RNG])
  • minotaurx MinotaurX (Litecoin Cash [LCC], Ring [RNG])

Others currently supported

  • scrypt (Litecoin, Dogecoin, Feathercoin, ...)
  • scrypt:N
  • scrypt-jane:N
  • sha256d (Bitcoin, Freicoin, Peercoin/PPCoin, Terracoin, ...)
  • allium (Garlicoin, Tuxcoin)
  • axiom (Axiom Shabal-256 based MemoHash)
  • bastion (Joincoin [J])
  • bitcore Permuted serie of 10 algos (BitCore)
  • blake (Saffron [SFR] Blake-256)
  • blake2s (NevaCoin Blake2-S 256)
  • blake2b (Not SIA one)
  • bmw (Midnight [MDT] BMW-256)
  • cryptonight (Bytecoin [BCN], Monero [XMR])
  • cryptonight-light (Aeon)
  • decred (Blake256-14 [DCR])
  • dmd-gr (Diamond-Groestl)
  • fresh (FreshCoin)
  • geek (GeekCash [GEEK])
  • groestl (Groestlcoin)
  • jha (JackpotCoin, SweepStake)
  • lbry (LBRY Credits [LBC])
  • lyra2RE (Cryptocoin)
  • lyra2REv2
  • lyra2REv3 (VertCoin [VTC])
  • myr-gr Myriad-Groestl (MyriadCoin [MYR])
  • neoscrypt (Feathercoin)
  • nist5 (MistCoin [MIC], TalkCoin [TAC], ...)
  • pentablake (Joincoin)
  • pluck (Supcoin [SUP])
  • quark (Quarkcoin)
  • qubit (GeoCoin)
  • skein (Skeincoin, Myriadcoin, Xedoscoin, ...)
  • skein2 (Woodcoin)
  • s3 (OneCoin)
  • sia (Reversed Blake2B for SIA [SC])
  • sib X11 + gost streebog (SibCoin)
  • timetravel Permuted serie of 8 algos (MachineCoin [MAC])
  • tribus 3 of the top NIST5 algos (Denarius [DNR])
  • vanilla (Blake-256 8-rounds - double sha256 [VNL])
  • veltor (Veltor [VLT])
  • xevan x17 x 2 on bigger header (BitSend [BSD])
  • x11evo (Revolver [XRE])
  • x11 (Darkcoin [DRK], Hirocoin, Limecoin, ...)
  • x12 (GalaxyCash [GCH])
  • x13 (Sherlockcoin, [ACE], [B2B], [GRC], [XHC], ...)
  • x14 (X14, Webcoin [WEB])
  • x15 (RadianceCoin [RCE])
  • x16r (Ravencoin [RVN])
  • x16s (Pigeoncoin [PGN])
  • x17 (Verge [XVG])
  • x20r
  • zr5 (Ziftrcoin [ZRC])

Implemented, but untested

  • ? hefty1 (Heavycoin)
  • ? keccak (Maxcoin HelixCoin, CryptoMeth, Galleon, 365coin, Slothcoin, BitcointalkCoin)
  • ? keccakc (Creativecoin)
  • ? luffa (Joincoin, Doomcoin)
  • ? rainforest
  • ? shavite3 (INKcoin)

Planned support for

  • scrypt-jane (YaCoin, CopperBars, Pennies, Tickets, etc..)

Dependencies

Download

Build

Basic *nix build instructions:

  • just use ./build.sh OR
 ./autogen.sh	# only needed if building from git repo
 ./nomacro.pl	# only needed if building on Mac OS X or with Clang
 ./configure CFLAGS="*-march=native*" --with-crypto --with-curl
 # Use -march=native if building for a single machine
 make

Note for Debian/Ubuntu users:

 apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++

Note for OS X users:

 brew install openssl curl
 ./build.sh # if curl was installed to /usr/local/opt, else update build.sh paths in darwin section

Note for pi64 users:

 ./autogen.sh
 ./configure --disable-assembly CFLAGS="-Ofast -march=native" --with-crypto --with-curl

Notes for AIX users:

  • To build a 64-bit binary, export OBJECT_MODE=64
  • GNU-style long options are not supported, but are accessible via configuration file

Windows build (Cross-compiled from Ubuntu 20.04 on WSL2)

 # Get build tools
 sudo apt install git automake autoconf make mingw-w64-x86-64-dev mingw-w64-tools mingw-w64

 # Get dependencies
 wget http://curl.haxx.se/download/curl-7.40.0.tar.gz
 wget ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.tar.gz
 wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
 wget https://zlib.net/zlib-1.2.11.tar.gz
 tar zxf openssl-1.1.1k.tar.gz
 tar zxf zlib-1.2.11.tar.gz
 tar zxf pthreads-w32-2-9-1-release.tar.gz
 tar zxf curl-7.40.0.tar.gz
 mkdir win64_deps
 DEPS="${PWD}/win64_deps"

 # Build dependency: curl
 cd curl-7.40.0
 ./configure --with-winssl --enable-static --prefix=$DEPS --host=x86_64-w64-mingw32 --disable-shared --disable-ldap
 make install
 cd ..

 # Build dependency: pthreads
 cd pthreads-w32-2-9-1-release/
 cp config.h pthreads_win32_config.h
 make -f GNUmakefile CROSS="x86_64-w64-mingw32-" clean GC-static
 cp libpthreadGC2.a ${DEPS}/lib/libpthread.a
 cp pthread.h semaphore.h sched.h ${DEPS}/include
 cd ..

 # Build dependency: zlib
 cd zlib-1.2.11/
 make -f win32/Makefile.gcc BINARY_PATH=${DEPS}/bin INCLUDE_PATH=${DEPS}/include LIBRARY_PATH=${DEPS}/lib SHARED_MODE=1 PREFIX=x86_64-w64-mingw32- install
 cd ..

 # Build dependency: openssl
 cd openssl-1.1.1k
 ./Configure --prefix=${DEPS}/openssl --cross-compile-prefix=x86_64-w64-mingw32- no-idea no-mdc2 no-rc5 no-shared mingw64
 make depend && make && make install
 cd ..

 # Build the miner (NOTE: Add -march=native to CFLAGS if building on the target machine)
 autoreconf -fi -I${DEPS}/share/aclocal
 ./configure --host=x86_64-w64-mingw32 \
    CFLAGS="-DWIN32 -DCURL_STATICLIB -O3 -I${DEPS}/include -DPTW32_STATIC_LIB -DOPENSSL_NO_ASM -DUSE_ASM" \
    --with-crypto=${DEPS}/openssl --with-curl=${DEPS} \
    LDFLAGS="-static -L${DEPS}/lib" 
 make

Architecture-specific notes:

  • ARM:
    • No runtime CPU detection. The miner can take advantage of some instructions specific to ARMv5E and later processors, but the decision whether to use them is made at compile time, based on compiler-defined macros.
    • To use NEON instructions, add "-mfpu=neon" to CFLAGS.
  • x86:
    • The miner checks for SSE2 instructions support at runtime, and uses them if they are available.
  • x86-64:
    • The miner can take advantage of AVX, AVX2 and XOP instructions, but only if both the CPU and the operating system support them.
      • Linux supports AVX starting from kernel version 2.6.30.
      • FreeBSD supports AVX starting with 9.1-RELEASE.
      • Mac OS X added AVX support in the 10.6.8 update.
      • Windows supports AVX starting from Windows 7 SP1 and Windows Server 2008 R2 SP1.
    • The configure script outputs a warning if the assembler doesn't support some instruction sets. In that case, the miner can still be built, but unavailable optimizations are left off.

Usage instructions

Run "cpuminer --help" to see options.

Connecting through a proxy

Use the --proxy option.

To use a SOCKS proxy, add a socks4:// or socks5:// prefix to the proxy host
Protocols socks4a and socks5h, allowing remote name resolving, are also available since libcurl 7.18.0.

If no protocol is specified, the proxy is assumed to be a HTTP proxy.
When the --proxy option is not used, the program honors the http_proxy and all_proxy environment variables.

Donations

Donations for the work done in this fork are accepted :

Tanner :

  • LCC: CashCFfv8CmdWo6wyMGQWtmQnaToyhgsWr

Tanguy Pruvot :

  • BTC: 1FhDPLPpw18X4srecguG3MxJYe4a1JsZnd

Lucas Jones :

  • MRO: 472haywQKoxFzf7asaQ4XKBc2foAY4ezk8HiN63ifW4iAbJiLnfmJfhHSR9XmVKw2WYPnszJV9MEHj9Z5WMK9VCNHaGLDmJ
  • BTC: 139QWoktddChHsZMWZFxmBva4FM96X2dhE

Credits

CPUMiner-multi was forked from pooler's CPUMiner, and has been started by Lucas Jones.

  • tpruvot added all the recent features and newer algorythmns
  • Wolf9466 helped with Intel AES-NI support for CryptoNight
  • Tanner from LCC added SegWit support, Minotaur and MinotaurX
  • Neoncoin team helped with MinotaurX

License

GPLv2. See COPYING for details.

cpuminer-multi's People

Contributors

agx avatar axkuhta avatar bitbandi avatar caiotoledo avatar coldcity avatar dallemon avatar domob1812 avatar erkmos avatar g1itch avatar hashfaster avatar jeteon avatar litecoincash-project avatar lucasjones avatar madzebra avatar mahallon avatar mikemurdo avatar obtfx avatar orangejuicy avatar pooler avatar rst00 avatar tpruvot avatar wtarreau avatar xcoredev avatar yuzi-co avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cpuminer-multi's Issues

Its not building any more.

the output of ./build.sh

-lz -lssl -lcrypto -ljansson -lpthread
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:946: recipe for target 'cpuminer' failed
make[2]: *** [cpuminer] Error 1
make[2]: Leaving directory '/home/XXXX/cpuminer-multi'
Makefile:2757: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/XXXX/cpuminer-multi'
Makefile:584: recipe for target 'all' failed
make: *** [all] Error 2
strip: 'cpuminer': No such file

Does this work on Apple M1 chip??

After I run ./build.sh, it gives me this. i've been trouble shoot for hours but can't get a work around.
I'm pretty sure i have gcc installed and compiler worked.


Making clean in compat
Making clean in jansson
test -z "libjansson.a" || rm -f libjansson.a
rm -f *.o
make[2]: Nothing to be done for `clean-am'.
test -z "cpuminer" || rm -f cpuminer
rm -f *.o
rm -f algo/*.o
rm -f asm/*.o
rm -f compat/*.o
rm -f crypto/*.o
rm -f lyra2/*.o
rm -f sha3/*.o
rm -f yescrypt/*.o
configure.ac:4: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.
configure.ac:4: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.ac:4: the top level
configure.ac:15: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:15: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:15: the top level
configure.ac:23: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:23: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:23: the top level
checking build system type... aarch64-apple-darwin20.3.0
checking host system type... aarch64-apple-darwin20.3.0
checking target system type... aarch64-apple-darwin20.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/jacklin/Documents/min_bin/cpuminer-multi':
configure: error: C compiler cannot create executables
See `config.log' for more details
/bin/sh ./config.status --recheck
/bin/sh: ./config.status: No such file or directory
make: *** [config.status] Error 127
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: cpuminer (No such file or directory)

I've tried
./configure CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" --with-crypto=/opt/homebrew/opt/[email protected] --with-curl

I'm not sure this is right, i'm not familiar with c compiling. but this will give me

...
checking for EVP_DigestFinal_ex in -lcrypto... no
configure: error: OpenSSL crypto library required

OpenSSL is also installed... is there anything I can do?

crypto/blake2s.c: In function ‘blake2s’: crypto/blake2s.c:326:9: error: size of array element is not a multiple of its alignment 326 | blake2s_state S[1]; | ^~~~~~~~~~~~~

so this is the first time encountering this error I've configured this miner multiple times but never I encountered this error until today...while building I eventually saw some code saying it's obselete or the code is old and started seeing a lot of warnings way more before and suddenly appeared this error crypto/blake2s.c: In function ‘blake2s’:
crypto/blake2s.c:326:9: error: size of array element is not a multiple of its alignment
326 | blake2s_state S[1];
| ^~~~~~~~~~~~~t and aother one saying makefile all error and when I saw the code it says Im missing the libjansson libcurl dependencies but if i know I have it installed and other dependencies required for the cpuminer to run

minotaur.c:(.text+0xa08): undefined reference to `link_nodes'

I can't seem to figure out what's causing the error.
its a simple i5 cpu.
any help would be appreciated.

make error:
algo/yespower/yespower.c:55:2: warning: #warning "Note: AVX is enabled. That's OK." [-Wcpp]
#warning "Note: AVX is enabled. That's OK."
^~~~~~~
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[2]: *** [cpuminer] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
make-error.txt

Does not request block template well when using MinotaurX algorithm, lack of arguments in request.

Ok, checking why my mining processes only get blocks with SHA and not with MinX, I see that the problem is in the cpuminer; when it goes with the MinX algorithm to request the block template from the node, the template delivered is not correct, because it was not passed between the "minotaurx" arguments to obtain a template for MinX, therefore, the node delivers a template by default , which is the one corresponding to SHA-256d and the target between the algorithms are very different

cpuminer-multi/cpu-miner.c

Lines 1473 to 1475 in d9e61f9

static const char *gbt_req =
"{\"method\": \"getblocktemplate\", \"params\": [{\"capabilities\": "
GBT_CAPABILITIES ", \"rules\": " GBT_RULES "}], \"id\":0}\r\n";

cpuminer-multi/cpu-miner.c

Lines 1476 to 1478 in d9e61f9

static const char *gbt_lp_req =
"{\"method\": \"getblocktemplate\", \"params\": [{\"capabilities\": "
GBT_CAPABILITIES ", \"rules\": " GBT_RULES ", \"longpollid\": \"%s\"}], \"id\":0}\r\n";

TEMPLATE.- Requesting through the litecoincash-cli

litecoincash-cli getblocktemplate '{"powalgo":"minotaurx"}'

{
  "capabilities": [
    "proposal"
  ],
  "version": 65536,
  "rules": [
    "csv",
    "segwit",
    "hive",
    "hive_1_1",
    "minotaurx"
  ],
  "vbavailable": {
  },
  "vbrequired": 0,
  "previousblockhash": "21cd1a0d044cf63c288abebd5a79ca047108f7e73ce7b4fe2adafccc17f63b34",
  "transactions": [
  ],
  "coinbaseaux": {
    "flags": ""
  },
  "coinbasevalue": 5000000000,
  "longpollid": "21cd1a0d044cf63c288abebd5a79ca047108f7e73ce7b4fe2adafccc17f63b345",
  "target": "00000071a11e0000000000000000000000000000000000000000000000000000",
  "mintime": 1621670420,
  "mutable": [
    "time",
    "transactions",
    "prevblock"
  ],
  "noncerange": "00000000ffffffff",
  "sigoplimit": 80000,
  "sizelimit": 4000000,
  "weightlimit": 4000000,
  "curtime": 1621687310,
  "bits": "1d71a11e",
  "height": 2268
}

CPUMINER Algo MinotaurX

./cpuminer -a minotaurx -o http://127.0.0.1:62455 -O user:pass --threads=1 --coinbase-addr=t9dJdqruJ7XybguxLMTR3JK5yu2hgqZAFn --coinbase-sig=OBTfx_MTX_NX --api-bind 127.0.0.1:4049 -R 5 --no-longpoll --cpu-affinity 2 -PD

** cpuminer-multi 1.5 by Tanner^LCC **
LCC donation address: CashCFfv8CmdWo6wyMGQWtmQnaToyhgsWr

[2021-05-22 14:42:25] Binding process to cpu mask 2
[2021-05-22 14:42:25] 1 miner threads started, using 'minotaurx' algorithm.
[2021-05-22 14:42:25] Binding thread 0 to cpu mask 2
[2021-05-22 14:42:25] JSON protocol request:
{"method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "coinbasevalue", "longpoll", "workid"], "rules": ["segwit"]}], "id":0}


* Rebuilt URL to: http://127.0.0.1:62455/
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 62455 (#0)
* Server auth using Basic with user 'user'
> POST / HTTP/1.1
Host: 127.0.0.1:62455
Authorization: Basic dXNlcjpwYXNz
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 147
User-Agent: cpuminer-multi/1.5
X-Mining-Extensions: longpoll reject-reason
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Sat, 22 May 2021 12:42:25 GMT
< Content-Length: 797
< 
* Connection #0 to host 127.0.0.1 left intact
[2021-05-22 14:42:25] JSON protocol response:
{
   "result": {
      "capabilities": [
         "proposal"
      ],
      "version": 0,
      "rules": [
         "csv",
         "segwit",
         "hive",
         "hive_1_1",
         "minotaurx"
      ],
      "vbavailable": {},
      "vbrequired": 0,
      "previousblockhash": "21cd1a0d044cf63c288abebd5a79ca047108f7e73ce7b4fe2adafccc17f63b34",
      "transactions": [],
      "coinbaseaux": {
         "flags": ""
      },
      "coinbasevalue": 5000000000,
      "longpollid": "21cd1a0d044cf63c288abebd5a79ca047108f7e73ce7b4fe2adafccc17f63b345",
      "target": "00000000230c8f00000000000000000000000000000000000000000000000000",
      "mintime": 1621670420,
      "mutable": [
         "time",
         "transactions",
         "prevblock"
      ],
      "noncerange": "00000000ffffffff",
      "sigoplimit": 80000,
      "sizelimit": 4000000,
      "weightlimit": 4000000,
      "curtime": 1621687345,
      "bits": "1c230c8f",
      "height": 2268,
      "default_witness_commitment": "6a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf9"
   },
   "error": null,
   "id": 0
}
[2021-05-22 14:42:25] Current block is 2268
[2021-05-22 14:42:25] got new work in 1.42 ms
[2021-05-22 14:42:25] JSON protocol request:
{"method": "getmininginfo", "params": [], "id":8}


* Rebuilt URL to: http://127.0.0.1:62455/
* Found bundle for host 127.0.0.1: 0x7f166c014d60 [can pipeline]
* Re-using existing connection! (#0) with host 127.0.0.1
* Connected to 127.0.0.1 (127.0.0.1) port 62455 (#0)
* Server auth using Basic with user 'user'
> POST / HTTP/1.1
Host: 127.0.0.1:62455
Authorization: Basic dXNlcjpwYXNz
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 51
User-Agent: cpuminer-multi/1.5
X-Mining-Extensions: longpoll reject-reason
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Sat, 22 May 2021 12:42:25 GMT
< Content-Length: 235
< 
* Connection #0 to host 127.0.0.1 left intact
[2021-05-22 14:42:25] JSON protocol response:
{
   "result": {
      "blocks": 2267,
      "currentblockweight": 4000,
      "currentblocktx": 0,
      "difficulty": 0.00390625,
      "minotaurxdifficulty": 0.0058990711989584292,
      "networkhashps": 4709546.3935919385,
      "pooledtx": 0,
      "chain": "test",
      "warnings": ""
   },
   "error": null,
   "id": 8
}
[2021-05-22 14:42:26] CPU #0: 726.18 H/s
^C[2021-05-22 14:42:27] SIGINT received, exiting

TEMPLATE.- Requesting through the litecoincash-cli

litecoincash-cli getblocktemplate '{"powalgo":"sha256d"}'

{
  "capabilities": [
    "proposal"
  ],
  "version": 0,
  "rules": [
    "csv",
    "segwit",
    "hive",
    "hive_1_1",
    "minotaurx"
  ],
  "vbavailable": {
  },
  "vbrequired": 0,
  "previousblockhash": "21cd1a0d044cf63c288abebd5a79ca047108f7e73ce7b4fe2adafccc17f63b34",
  "transactions": [
  ],
  "coinbaseaux": {
    "flags": ""
  },
  "coinbasevalue": 5000000000,
  "longpollid": "21cd1a0d044cf63c288abebd5a79ca047108f7e73ce7b4fe2adafccc17f63b345",
  "target": "00000000230c8f00000000000000000000000000000000000000000000000000",
  "mintime": 1621670420,
  "mutable": [
    "time",
    "transactions",
    "prevblock"
  ],
  "noncerange": "00000000ffffffff",
  "sigoplimit": 80000,
  "sizelimit": 4000000,
  "weightlimit": 4000000,
  "curtime": 1621687303,
  "bits": "1c230c8f",
  "height": 2268
}

CPUMINER Algo SHA-256d

./cpuminer -a sha256d -o http://127.0.0.1:62455 -O user:pass --threads=1 --coinbase-addr=t7vGHuMvy18cXSaXngCDcj6sVyaL643kQZ --coinbase-sig=OBTfx_SHA_NX --api-bind 127.0.0.1:4050 -R 5 --no-longpoll --cpu-affinity 8 -PD

** cpuminer-multi 1.5 by Tanner^LCC **
LCC donation address: CashCFfv8CmdWo6wyMGQWtmQnaToyhgsWr

[2021-05-22 14:42:19] Binding process to cpu mask 8
[2021-05-22 14:42:19] 1 miner threads started, using 'sha256d' algorithm.
[2021-05-22 14:42:19] Binding thread 0 to cpu mask 8
[2021-05-22 14:42:19] JSON protocol request:
{"method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "coinbasevalue", "longpoll", "workid"], "rules": ["segwit"]}], "id":0}


* Rebuilt URL to: http://127.0.0.1:62455/
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 62455 (#0)
* Server auth using Basic with user 'user'
> POST / HTTP/1.1
Host: 127.0.0.1:62455
Authorization: Basic dXNlcjpwYXNz
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 147
User-Agent: cpuminer-multi/1.5
X-Mining-Extensions: longpoll reject-reason
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Sat, 22 May 2021 12:42:19 GMT
< Content-Length: 797
< 
* Connection #0 to host 127.0.0.1 left intact
[2021-05-22 14:42:19] JSON protocol response:
{
   "result": {
      "capabilities": [
         "proposal"
      ],
      "version": 0,
      "rules": [
         "csv",
         "segwit",
         "hive",
         "hive_1_1",
         "minotaurx"
      ],
      "vbavailable": {},
      "vbrequired": 0,
      "previousblockhash": "21cd1a0d044cf63c288abebd5a79ca047108f7e73ce7b4fe2adafccc17f63b34",
      "transactions": [],
      "coinbaseaux": {
         "flags": ""
      },
      "coinbasevalue": 5000000000,
      "longpollid": "21cd1a0d044cf63c288abebd5a79ca047108f7e73ce7b4fe2adafccc17f63b345",
      "target": "00000000230c8f00000000000000000000000000000000000000000000000000",
      "mintime": 1621670420,
      "mutable": [
         "time",
         "transactions",
         "prevblock"
      ],
      "noncerange": "00000000ffffffff",
      "sigoplimit": 80000,
      "sizelimit": 4000000,
      "weightlimit": 4000000,
      "curtime": 1621687339,
      "bits": "1c230c8f",
      "height": 2268,
      "default_witness_commitment": "6a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf9"
   },
   "error": null,
   "id": 0
}
[2021-05-22 14:42:19] Current block is 2268
[2021-05-22 14:42:19] got new work in 13.71 ms
[2021-05-22 14:42:19] JSON protocol request:
{"method": "getmininginfo", "params": [], "id":8}


* Rebuilt URL to: http://127.0.0.1:62455/
* Found bundle for host 127.0.0.1: 0x7f24a4014d60 [can pipeline]
* Re-using existing connection! (#0) with host 127.0.0.1
* Connected to 127.0.0.1 (127.0.0.1) port 62455 (#0)
* Server auth using Basic with user 'user'
> POST / HTTP/1.1
Host: 127.0.0.1:62455
Authorization: Basic dXNlcjpwYXNz
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 51
User-Agent: cpuminer-multi/1.5
X-Mining-Extensions: longpoll reject-reason
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Sat, 22 May 2021 12:42:19 GMT
< Content-Length: 235
< 
* Connection #0 to host 127.0.0.1 left intact
[2021-05-22 14:42:19] JSON protocol response:
{
   "result": {
      "blocks": 2267,
      "currentblockweight": 4000,
      "currentblocktx": 0,
      "difficulty": 0.00390625,
      "minotaurxdifficulty": 0.0058990711989584292,
      "networkhashps": 4709546.3935919385,
      "pooledtx": 0,
      "chain": "test",
      "warnings": ""
   },
   "error": null,
   "id": 8
}
[2021-05-22 14:42:19] CPU #0: 4575 kH/s
^C[2021-05-22 14:42:20] SIGINT received, exiting

ubuntu 20.04 /usr/bin/ld: algo/cpuminer-minotaur.o: in function `minotaurhash'

Hi all,
wondering what i can do to solve this error?
any help would be appreciated! want to compile for Avian.

/usr/bin/ld: algo/cpuminer-minotaur.o: in function `minotaurhash':
minotaur.c:(.text+0x98c): undefined reference to `link_nodes'
/usr/bin/ld: minotaur.c:(.text+0x9ba): undefined reference to `link_nodes'
/usr/bin/ld: minotaur.c:(.text+0x9e8): undefined reference to `link_nodes'
/usr/bin/ld: minotaur.c:(.text+0xa16): undefined reference to `link_nodes'
/usr/bin/ld: minotaur.c:(.text+0xa44): undefined reference to `link_nodes'
/usr/bin/ld: algo/cpuminer-minotaur.o:minotaur.c:(.text+0xa72): more undefined references to `link_nodes' follow
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1054: cpuminer] Error 1
make[2]: Leaving directory '/home/jadeskye/Mining/cpuminer-multi'
make[1]: *** [Makefile:2870: all-recursive] Error 1
make[1]: Leaving directory '/home/jadeskye/Mining/cpuminer-multi'
make: *** [Makefile:691: all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.