diff --git a/src/cpp/SingletonManager/SessionManager.cpp b/src/cpp/SingletonManager/SessionManager.cpp index 4a16112f4..b00d42d45 100644 --- a/src/cpp/SingletonManager/SessionManager.cpp +++ b/src/cpp/SingletonManager/SessionManager.cpp @@ -135,7 +135,7 @@ Session* SessionManager::getNewSession(int* handle) } catch (Poco::TimeoutException &ex) { printf("[SessionManager::getNewSession] exception timout mutex: %s\n", ex.displayText().data()); - return false; + return nullptr; } //mWorkingMutex.lock(); diff --git a/src/cpp/model/TransactionCreation.cpp b/src/cpp/model/TransactionCreation.cpp index f4196a265..2bac6e924 100644 --- a/src/cpp/model/TransactionCreation.cpp +++ b/src/cpp/model/TransactionCreation.cpp @@ -38,10 +38,13 @@ int TransactionCreation::prepare() } else { memcpy(mReceiverPublicHex, mReceiverUser->getPublicKeyHex().data(), 64); - if (!mReceiverUser->validateIdentHash(mProtoCreation.ident_hash())) { + // uncomment because not correctly working + /*if (!mReceiverUser->validateIdentHash(mProtoCreation.ident_hash())) { addError(new Error(functionName, "ident hash isn't the same")); + addError(new ParamError(functionName, "hash calculated from email: ", mReceiverUser->getEmail())); + addError(new ParamError(functionName, "hash: ", std::to_string(mProtoCreation.ident_hash()))); return -3; - } + }*/ } //