From a65bd8fbaf2f2e609cb23aca20046f3e9e55d11d Mon Sep 17 00:00:00 2001 From: Warlock-Dalbaeb Date: Tue, 15 Aug 2017 01:03:17 +0700 Subject: [PATCH] vanity --- vanity.hpp | 10 ++++++++-- vanitygen.cpp | 7 +++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/vanity.hpp b/vanity.hpp index b1032a2..619c6c8 100644 --- a/vanity.hpp +++ b/vanity.hpp @@ -11,6 +11,9 @@ #include #include + + + static std::mutex thread_mutex; static i2p::data::SigningKeyType type; //static i2p::data::PrivateKeys keys; @@ -24,5 +27,8 @@ static uint8_t * KeyBuf; //static uint8_t * PaddingBuf; static unsigned long long hashescounter; -unsigned short count_cpu __attribute__((__mode__(QI))); // 1 byte - +#ifdef MODES +unsigned short count_cpu __attribute__((__mode__(QI))); // 1 byte i think don't usefful +#else +unsigned short count_cpu; +#endif diff --git a/vanitygen.cpp b/vanitygen.cpp index 3f351ce..e6219fd 100644 --- a/vanitygen.cpp +++ b/vanitygen.cpp @@ -67,8 +67,11 @@ For idea and example ^-^ Orignal is sensei of crypto ;) */ std::cout << "Thread " << id_thread << " binded" << std::endl; - - uint8_t b[391]; __attribute__((__mode__(SI))); // 4 byte == 32 bits, not usefull. i think. +#ifdef MODES + uint8_t b[391] __attribute__((__mode__(SI))); // 4 byte == 32 bits, not usefull. i think. +#else + uint8_t b[391]; +#endif memcpy (b, buf, 391); int len = strlen (prefix);