Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
solo: switch to getwork on unhandled gbt versions
Browse files Browse the repository at this point in the history
version seen: 1024 (Neos), 6 (Mist in PoW phase)
  • Loading branch information
tpruvot committed Nov 2, 2014
1 parent d0a018a commit f5b2e50
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ fork of [pooler](//github.com/pooler)'s cpuminer (see AUTHORS for list of contri
Algorithms
==========
#### Currently supported
*__scrypt__ (Litecoin, Dogecoin, Feathercoin, etc..)
*__scrypt__ (Litecoin, Dogecoin, Feathercoin, ...)
*__scrypt:N__ (Vertcoin [VTC])
*__sha256d__ (Bitcoin, Freicoin, Peercoin/PPCoin, Terracoin, etc..)
*__blake__ (Neos/Saffron Blake-256)
*__sha256d__ (Bitcoin, Freicoin, Peercoin/PPCoin, Terracoin, ...)
*__blake__ (Neos/Saffron [SFR] Blake-256)
*__cryptonight__ (Bytecoin [BCN], Monero)
*__fresh__ (FreshCoin)
*__neoscrypt__ (Feathercoin)
*__nist5__ (TalkCoin [TAC], [UPM])
*__nist5__ (MistCoin [MIC], TalkCoin [TAC], ...)
*__pentablake__ (Joincoin)
*__qubit__ (MyriadCoin [MYR])
*__s3__ (OneCoin)
*__x11__ (Darkcoin [DRK], Hirocoin, Limecoin)
*__x13__ (Sherlockcoin, [ACE], [B2B], [GRC], [XHC], etc..)
*__x11__ (Darkcoin [DRK], Hirocoin, Limecoin, ...)
*__x13__ (Sherlockcoin, [ACE], [B2B], [GRC], [XHC], ...)
*__x14__ (X14, Webcoin [WEB])
*__x15__ (RadianceCoin [RCE])

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([cpuminer-multi], [1.0.7])
AC_INIT([cpuminer-multi], [1.0.8])

AC_PREREQ([2.59c])
AC_CANONICAL_SYSTEM
Expand Down
5 changes: 3 additions & 2 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ static bool gbt_work_decode(const json_t *val, struct work *work)
goto out;
}
work->height = json_integer_value(tmp);
applog(LOG_BLUE, "Current block is %d", work->height);

tmp = json_object_get(val, "version");
if (!tmp || !json_is_integer(tmp)) {
Expand All @@ -692,8 +693,8 @@ static bool gbt_work_decode(const json_t *val, struct work *work)
if (version > 2) {
if (version_reduce) {
version = 2;
} else if (have_gbt && allow_getwork && !version_force && version == 1024) {
applog(LOG_DEBUG, "Switching to getwork");
} else if (have_gbt && allow_getwork && !version_force) {
applog(LOG_DEBUG, "Switching to getwork (gbt version: %d)", version);
have_gbt = false;
goto out;
} else if (!version_force) {
Expand Down

0 comments on commit f5b2e50

Please sign in to comment.