Skip to content

Commit

Permalink
algo: case insensitive match + readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Aug 13, 2015
1 parent 322d153 commit 72c4c5e
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Version 1.2
- Add cryptonight-light (Aeon)

TODO:
- Lyra2v2, arm compat, multipool config
- Add Lyra2REv2 algo (Vertcoin)
- Algorithm parameter is now case insensitive
- Checkup on arm, tested ok on Tegra K1 (CyanogenMod 12.1)

version 1.1 (Tanguy Pruvot)
- Add basic API remote control (quit/seturl)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ Algorithms
*__dmd-gr__ (Diamond-Groestl)
*__fresh__ (FreshCoin)
*__groestl__ (Groestlcoin)
*__lyra2__ (Lyrabar, Cryptocoin)
*__lyra2RE__ (Lyrabar, Cryptocoin)
*__lyra2REv2__ (VertCoin [VTC])
*__myr-gr__ (Myriad-Groestl)
*__neoscrypt__ (Feathercoin)
@@ -81,7 +81,7 @@ Build
_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*"
* ./configure CFLAGS="*-march=native*" --with-crypto --with-curl
* # Use -march=native if building for a single machine
* make

4 changes: 2 additions & 2 deletions cpu-miner.c
Original file line number Diff line number Diff line change
@@ -267,7 +267,7 @@ Options:\n\
heavy Heavy\n\
keccak Keccak\n\
luffa Luffa\n\
lyra2 Lyra2RE\n\
lyra2re Lyra2RE\n\
lyra2rev2 Lyra2REv2 (Vertcoin)\n\
myr-gr Myriad-Groestl\n\
neoscrypt NeoScrypt(128, 2, 1)\n\
@@ -2465,7 +2465,7 @@ void parse_arg(int key, char *arg)
case 'a':
for (i = 0; i < ALGO_COUNT; i++) {
v = (int) strlen(algo_names[i]);
if (!strncmp(arg, algo_names[i], v)) {
if (v && !strncasecmp(arg, algo_names[i], v)) {
if (arg[v] == '\0') {
opt_algo = (enum algos) i;
break;
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
@@ -2045,7 +2045,7 @@ void print_hash_tests(void)
printpfx("luffa", hash);

lyra2_hash(&hash[0], &buf[0]);
printpfx("lyra2", hash);
printpfx("lyra2re", hash);

lyra2_hash(&hash[0], &buf[0]);
printpfx("lyra2rev2", hash);

0 comments on commit 72c4c5e

Please sign in to comment.