diff --git a/stratum/algos/blake.c b/stratum/algos/blake.c index 310339c..381c6fb 100644 --- a/stratum/algos/blake.c +++ b/stratum/algos/blake.c @@ -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]; diff --git a/stratum/config.sample/decred.conf b/stratum/config.sample/decred.conf new file mode 100644 index 0000000..96c34f6 --- /dev/null +++ b/stratum/config.sample/decred.conf @@ -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 + diff --git a/web/yaamp/core/functions/yaamp.php b/web/yaamp/core/functions/yaamp.php index caa486c..9c0cc1b 100755 --- a/web/yaamp/core/functions/yaamp.php +++ b/web/yaamp/core/functions/yaamp.php @@ -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,