diff --git a/libethcore/Ethasher.h b/libethcore/Ethasher.h index cfe0d1c82..469bbd723 100644 --- a/libethcore/Ethasher.h +++ b/libethcore/Ethasher.h @@ -29,6 +29,33 @@ #include #include #include // TODO: REMOVE once everything merged into this class and an opaque API can be provided. +#define ETHASH_REVISION REVISION +#define ETHASH_DATASET_BYTES_INIT DATASET_BYTES_INIT +#define ETHASH_DATASET_BYTES_GROWTH DATASET_BYTES_GROWTH +#define ETHASH_CACHE_BYTES_INIT CACHE_BYTES_INIT +#define ETHASH_CACHE_BYTES_GROWTH CACHE_BYTES_GROWTH +#define ETHASH_DAGSIZE_BYTES_INIT DAGSIZE_BYTES_INIT +#define ETHASH_DAG_GROWTH DAG_GROWTH +#define ETHASH_EPOCH_LENGTH EPOCH_LENGTH +#define ETHASH_MIX_BYTES MIX_BYTES +#define ETHASH_HASH_BYTES HASH_BYTES +#define ETHASH_DATASET_PARENTS DATASET_PARENTS +#define ETHASH_CACHE_ROUNDS CACHE_ROUNDS +#define ETHASH_ACCESSES ACCESSES +#undef REVISION +#undef DATASET_BYTES_INIT +#undef DATASET_BYTES_GROWTH +#undef CACHE_BYTES_INIT +#undef CACHE_BYTES_GROWTH +#undef DAGSIZE_BYTES_INIT +#undef DAG_GROWTH +#undef EPOCH_LENGTH +#undef MIX_BYTES +#undef HASH_BYTES +#undef DATASET_PARENTS +#undef CACHE_ROUNDS +#undef ACCESSES + #include "Common.h" #include "BlockInfo.h" diff --git a/libethcore/ProofOfWork.cpp b/libethcore/ProofOfWork.cpp index 3cbfb4905..1c2c4a023 100644 --- a/libethcore/ProofOfWork.cpp +++ b/libethcore/ProofOfWork.cpp @@ -32,6 +32,32 @@ #include #if ETH_ETHASHCL #include +#define ETHASH_REVISION REVISION +#define ETHASH_DATASET_BYTES_INIT DATASET_BYTES_INIT +#define ETHASH_DATASET_BYTES_GROWTH DATASET_BYTES_GROWTH +#define ETHASH_CACHE_BYTES_INIT CACHE_BYTES_INIT +#define ETHASH_CACHE_BYTES_GROWTH CACHE_BYTES_GROWTH +#define ETHASH_DAGSIZE_BYTES_INIT DAGSIZE_BYTES_INIT +#define ETHASH_DAG_GROWTH DAG_GROWTH +#define ETHASH_EPOCH_LENGTH EPOCH_LENGTH +#define ETHASH_MIX_BYTES MIX_BYTES +#define ETHASH_HASH_BYTES HASH_BYTES +#define ETHASH_DATASET_PARENTS DATASET_PARENTS +#define ETHASH_CACHE_ROUNDS CACHE_ROUNDS +#define ETHASH_ACCESSES ACCESSES +#undef REVISION +#undef DATASET_BYTES_INIT +#undef DATASET_BYTES_GROWTH +#undef CACHE_BYTES_INIT +#undef CACHE_BYTES_GROWTH +#undef DAGSIZE_BYTES_INIT +#undef DAG_GROWTH +#undef EPOCH_LENGTH +#undef MIX_BYTES +#undef HASH_BYTES +#undef DATASET_PARENTS +#undef CACHE_ROUNDS +#undef ACCESSES #endif #include "BlockInfo.h" #include "Ethasher.h"