Giter Club home page Giter Club logo

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

Watchers

 avatar  avatar  avatar

cpuminer-multi's Issues

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

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 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

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

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?

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.