Skip to content

Commit

Permalink
avoid cyclebase name clash
Browse files Browse the repository at this point in the history
  • Loading branch information
tromp committed Aug 31, 2018
1 parent 969f9b2 commit 9153030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simple_miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class cuckoo_ctx {
cb.reset();
}

void cyclebase() {
void cycle_base() {
for (node_t nonce = 0; nonce < easiness; nonce++) {
node_t u = sipnode(&sip_keys, nonce, 0);
node_t v = sipnode(&sip_keys, nonce, 1);
Expand Down Expand Up @@ -104,7 +104,7 @@ int main(int argc, char **argv) {
gettimeofday(&time0, 0);
ctx.setheadernonce(header, sizeof(header), nonce + r);
printf("nonce %d k0 k1 k2 k3 %llx %llx %llx %llx\n", nonce+r, ctx.sip_keys.k0, ctx.sip_keys.k1, ctx.sip_keys.k2, ctx.sip_keys.k3);
ctx.cyclebase();
ctx.cycle_base();
ctx.cb.cycles();
gettimeofday(&time1, 0);
timems = (time1.tv_sec-time0.tv_sec)*1000 + (time1.tv_usec-time0.tv_usec)/1000;
Expand Down

0 comments on commit 9153030

Please sign in to comment.