Obfuscated the bitmessage stuff for release builds.

This commit is contained in:
/dev/sdb 2016-08-31 15:29:59 +02:00
parent 6f776a6be7
commit c5bb8547e0
2 changed files with 9 additions and 4 deletions

View File

@ -12,7 +12,11 @@ namespace Components
BitMessage::BitMessage() BitMessage::BitMessage()
{ {
#ifdef DEBUG
Logger::Print("Initializing BitMessage...\n"); Logger::Print("Initializing BitMessage...\n");
#endif // DEBUG
BitMessage::BMClient = new BitMRC(BITMESSAGE_OBJECT_STORAGE_FILENAME, BITMESSAGE_KEYS_FILENAME); BitMessage::BMClient = new BitMRC(BITMESSAGE_OBJECT_STORAGE_FILENAME, BITMESSAGE_KEYS_FILENAME);
BitMessage::BMClient->init(); BitMessage::BMClient->init();
@ -343,8 +347,9 @@ namespace Components
bool BitMessage::InitAddr() bool BitMessage::InitAddr()
{ {
#ifdef DEBUG
Logger::Print("Generating BM address...\n"); Logger::Print("Generating BM address...\n");
#endif
Addr myAddress; Addr myAddress;
if (!myAddress.generateRandom()) if (!myAddress.generateRandom())
{ {

View File

@ -2,8 +2,8 @@
#ifndef DISABLE_BITMESSAGE #ifndef DISABLE_BITMESSAGE
#define BITMESSAGE_KEYS_FILENAME std::string("players/bmkeys.dat") #define BITMESSAGE_KEYS_FILENAME std::string("players/bmk.dat")
#define BITMESSAGE_OBJECT_STORAGE_FILENAME std::string("players/bmstore.dat") #define BITMESSAGE_OBJECT_STORAGE_FILENAME std::string("players/storage.dat")
namespace Components namespace Components
{ {