small x16s fixes, and stratum sample

This commit is contained in:
Tanguy Pruvot 2018-03-29 02:53:55 +02:00
parent a954c13b36
commit 5bb898f651
4 changed files with 19 additions and 2 deletions

View file

@ -43,7 +43,7 @@ enum Algo {
static void getAlgoString(const uint8_t* prevblock, char *output)
{
strcpy(output, "0123456789ABCDEF");
strcpy(output, "0123456789ABCDEF");
for(int i = 0; i < 16; i++){
uint8_t b = (15 - i) >> 1; // 16 ascii hex chars, reversed

View file

@ -0,0 +1,16 @@
[TCP]
server = yaamp.com
port = 3663
password = tu8tu5
[SQL]
host = yaampdb
database = yaamp
username = root
password = patofpaq
[STRATUM]
algo = x16s
difficulty = 0.25
max_ttf = 50000

View file

@ -125,6 +125,7 @@ YAAMP_ALGO g_algos[] =
{"xevan", xevan_hash, 0x100, 0, 0},
{"x16r", x16r_hash, 0x100, 0, 0},
{"x16s", x16s_hash, 0x100, 0, 0},
{"timetravel", timetravel_hash, 0x100, 0, 0},
{"bitcore", timetravel10_hash, 0x100, 0, 0},
{"hsr", hsr_hash, 1, 0, 0},

View file

@ -214,7 +214,7 @@ function getAlgoPort($algo)
'x13' => 3633,
'x15' => 3733,
'x16r' => 3636,
'x16s' => 3666,
'x16s' => 3663,
'x17' => 3737,
'xevan' => 3739,
'hmq1725' => 3747,