Added possibility to overrule the PoW

Added PoW adaptions for upcoming AEON PoW changes
This commit is contained in:
Ben Gräf 2018-03-16 15:49:17 +01:00
parent 353a39dade
commit 77cb5b1196
6 changed files with 53 additions and 28 deletions

View file

@ -462,7 +462,7 @@ public:
}
}
inline static void hashV7(const void* __restrict__ input,
inline static void hashPowV2(const void* __restrict__ input,
size_t size,
void* __restrict__ output,
cryptonight_ctx* __restrict__ ctx)
@ -537,7 +537,7 @@ public:
extra_hashes[ctx->state[0][0] & 3](ctx->state[0], 200, static_cast<char*>(output));
}
inline static void hashV7(const void* __restrict__ input,
inline static void hashPowV2(const void* __restrict__ input,
size_t size,
void* __restrict__ output,
cryptonight_ctx* __restrict__ ctx)
@ -705,7 +705,7 @@ public:
extra_hashes[ctx->state[1][0] & 3](ctx->state[1], 200, static_cast<char*>(output) + 32);
}
inline static void hashV7(const void* __restrict__ input,
inline static void hashPowV2(const void* __restrict__ input,
size_t size,
void* __restrict__ output,
cryptonight_ctx* __restrict__ ctx)
@ -948,7 +948,7 @@ public:
extra_hashes[ctx->state[2][0] & 3](ctx->state[2], 200, static_cast<char*>(output) + 64);
}
inline static void hashV7(const void* __restrict__ input,
inline static void hashPowV2(const void* __restrict__ input,
size_t size,
void* __restrict__ output,
cryptonight_ctx* __restrict__ ctx)
@ -1266,7 +1266,7 @@ public:
extra_hashes[ctx->state[3][0] & 3](ctx->state[3], 200, static_cast<char*>(output) + 96);
}
inline static void hashV7(const void* __restrict__ input,
inline static void hashPowV2(const void* __restrict__ input,
size_t size,
void* __restrict__ output,
cryptonight_ctx* __restrict__ ctx)
@ -1656,7 +1656,7 @@ public:
extra_hashes[ctx->state[4][0] & 3](ctx->state[4], 200, static_cast<char*>(output) + 128);
}
inline static void hashV7(const void* __restrict__ input,
inline static void hashPowV2(const void* __restrict__ input,
size_t size,
void* __restrict__ output,
cryptonight_ctx* __restrict__ ctx)