stratum: add missing keccakc variant

This commit is contained in:
Tanguy Pruvot 2018-02-28 11:08:23 +01:00
parent 4120ee7d62
commit 0287896b0a
3 changed files with 23 additions and 3 deletions

View file

@ -0,0 +1,16 @@
[TCP]
server = yaamp.com
port = 5134
password = tu8tu5
[SQL]
host = yaampdb
database = yaamp
username = root
password = patofpaq
[STRATUM]
algo = keccakc
difficulty = 2
max_ttf = 4000000

View file

@ -142,8 +142,8 @@ YAAMP_ALGO g_algos[] =
{"myr-gr", groestlmyriad_hash, 1, 0, 0}, /* groestl + sha 64 */ {"myr-gr", groestlmyriad_hash, 1, 0, 0}, /* groestl + sha 64 */
{"skein", skein_hash, 1, 0, 0}, {"skein", skein_hash, 1, 0, 0},
{"tribus", tribus_hash, 1, 0, 0}, {"tribus", tribus_hash, 1, 0, 0},
{"a5a", a5a_hash, 0x10000, 0, 0},
{"keccak", keccak256_hash, 0x80, 0, sha256_hash_hex }, {"keccak", keccak256_hash, 0x80, 0, sha256_hash_hex },
{"keccakc", keccak256_hash, 0x100, 0, 0},
{"phi", phi_hash, 1, 0, 0}, {"phi", phi_hash, 1, 0, 0},
{"polytimos", polytimos_hash, 1, 0, 0}, {"polytimos", polytimos_hash, 1, 0, 0},
{"skunk", skunk_hash, 1, 0, 0}, {"skunk", skunk_hash, 1, 0, 0},
@ -157,6 +157,7 @@ YAAMP_ALGO g_algos[] =
{"yescryptR16", yescryptR16_hash, 0x10000, 0, 0 }, {"yescryptR16", yescryptR16_hash, 0x10000, 0, 0 },
{"zr5", zr5_hash, 1, 0, 0}, {"zr5", zr5_hash, 1, 0, 0},
{"a5a", a5a_hash, 0x10000, 0, 0},
{"hive", hive_hash, 0x10000, 0, 0}, {"hive", hive_hash, 0x10000, 0, 0},
{"m7m", m7m_hash, 0x10000, 0, 0}, {"m7m", m7m_hash, 0x10000, 0, 0},
{"veltor", veltor_hash, 1, 0, 0}, {"veltor", veltor_hash, 1, 0, 0},
@ -410,8 +411,8 @@ void *stratum_thread(void *p)
stratumlog("%s socket accept() error %d\n", g_stratum_algo, error); stratumlog("%s socket accept() error %d\n", g_stratum_algo, error);
failcount++; failcount++;
usleep(50000); usleep(50000);
if (error == 24 && failcount > 16) { if (error == 24 && failcount > 5) {
g_exiting = true; g_exiting = true; // happen when max open files is reached (see ulimit)
stratumlogdate("%s too much socket failure, exiting...\n", g_stratum_algo); stratumlogdate("%s too much socket failure, exiting...\n", g_stratum_algo);
exit(error); exit(error);
} }

View file

@ -18,6 +18,7 @@ function yaamp_get_algos()
'deep', 'deep',
'hmq1725', 'hmq1725',
'keccak', 'keccak',
'keccakc',
'jha', 'jha',
'hsr', 'hsr',
'lbry', 'lbry',
@ -151,6 +152,7 @@ function getAlgoColors($algo)
'hmq1725' => '#ffa0a0', 'hmq1725' => '#ffa0a0',
'hsr' => '#aa70ff', 'hsr' => '#aa70ff',
'keccak' => '#c0f0c0', 'keccak' => '#c0f0c0',
'keccakc' => '#c0f0c0',
'lbry' => '#b0d0e0', 'lbry' => '#b0d0e0',
'luffa' => '#a0c0c0', 'luffa' => '#a0c0c0',
'm7m' => '#d0a0a0', 'm7m' => '#d0a0a0',
@ -223,6 +225,7 @@ function getAlgoPort($algo)
'skein' => 4933, 'skein' => 4933,
'sib' => 5033, 'sib' => 5033,
'keccak' => 5133, 'keccak' => 5133,
'keccakc' => 5134,
'skein2' => 5233, 'skein2' => 5233,
//'groestl' => 5333, //'groestl' => 5333,
'dmd-gr' => 5333, 'dmd-gr' => 5333,