add decred algo port + sample conf

This commit is contained in:
Tanguy Pruvot 2016-02-13 10:47:35 +01:00
parent 984cb266cf
commit 1c230f4d60
3 changed files with 22 additions and 3 deletions

View file

@ -30,9 +30,9 @@ void decred_hash(const char* input, char* output, uint32_t len)
sph_blake256_set_rounds(14);
uint32_t* in = (uint32_t*) input;
fprintf(stderr, "decred input len=%u n=%08x %08x %08x %08x\n",
len, in[35], in[36], in[37], in[38]);
//uint32_t* in = (uint32_t*) input;
//fprintf(stderr, "decred input len=%u n=%08x %08x %08x %08x\n",
// len, in[35], in[36], in[37], in[38]);
if (len > 180) len = 180;
//char hex[512];

View file

@ -0,0 +1,16 @@
[TCP]
server = yaamp.com
port = 5744
password = tu8tu5
[SQL]
host = yaampdb
database = yaamp
username = root
password = patofpaq
[STRATUM]
algo = decred
difficulty = 0.5
max_ttf = 1000000000

View file

@ -9,6 +9,7 @@ function yaamp_get_algos()
'scryptn',
'argon2',
'blake',
'decred',
'keccak',
'luffa',
'lyra2',
@ -82,6 +83,7 @@ function getAlgoColors($algo)
'neoscrypt' => '#a0d0f0',
'scryptn' => '#d0d0d0',
'c11' => '#a0a0d0',
'decred' => '#f0f0f0',
'x11' => '#f0f0a0',
'x13' => '#ffd880',
'x14' => '#a0f0c0',
@ -150,6 +152,7 @@ function getAlgoPort($algo)
'zr5' => 5533,
// 5555 to 5683 reserved
'blake' => 5733,
'decred' => 5744,
'vanilla' => 5755,
'penta' => 5833,
'luffa' => 5933,