Skip to content

Commit

Permalink
Add yespowerinter algo for Intercoin
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu-pool authored Dec 25, 2019
1 parent 6b5b782 commit 04aea8f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions algo/yespower/yespower.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ void yespower_hash( const char *input, char *output, uint32_t len )
static const yespower_params_t v5 = {YESPOWER_0_9, 2048, 32, "LITBpower: The number of LITB working or available for proof-of-work mining", 73};
yespower_tls( (yespower_binary_t*)input, len, &v5, (yespower_binary_t*)output );
}
if (verstring==6)
{
static const yespower_params_t v6 = {YESPOWER_0_9, 2048, 32, "InterITC", 8};
yespower_tls( (yespower_binary_t*)input, len, &v6, (yespower_binary_t*)output );
}
}

int scanhash_yespower( int thr_id, struct work *work, uint32_t max_nonce,
Expand Down Expand Up @@ -153,3 +158,14 @@ bool register_yespowerlitb_algo( algo_gate_t* gate )
verstring=5;
return true;
};

bool register_yespowerinter_algo( algo_gate_t* gate )
{
gate->optimizations = SSE2_OPT | SHA_OPT;
gate->get_max64 = (void*)&yespower_get_max64;
gate->scanhash = (void*)&scanhash_yespower;
gate->hash = (void*)&yespower_hash;
gate->set_target = (void*)&scrypt_set_target;
verstring=6;
return true;
};

0 comments on commit 04aea8f

Please sign in to comment.