little fixes

This commit is contained in:
Dario 2019-12-18 19:44:53 +01:00
parent ad971d8cd5
commit 987c820a5b
3 changed files with 3 additions and 2 deletions

View File

@ -53,6 +53,7 @@ bool KeyPair::generateFromPassphrase(const char* passphrase, Mnemonic* word_sour
unsigned char word_cursor = 0;
for (size_t i = 0; i < pass_phrase_size; i++) {
if (passphrase[i] == ' ') {
if(buffer_cursor < 3) continue;
if (word_source->isWordExist(acBuffer)) {
word_indices[word_cursor] = word_source->getWordIndex(acBuffer);
}

View File

@ -1014,7 +1014,7 @@ bool User::setPrivKey(const MemoryBin* privKey)
auto encyrptedPrivKey = encrypt(privKey);
lock("User::setPrivKey");
mState = USER_COMPLETE;
mPrivateKey = encrypt(privKey);
mPrivateKey = encyrptedPrivKey;// encrypt(privKey);
unlock();
return true;

View File

@ -184,7 +184,7 @@ int SigningTransaction::run() {
}
catch (Poco::Exception& e) {
addError(new ParamError("SigningTransaction", "connect error to php server", e.displayText().data()));
printf("url: %s\n", ServerConfig::g_php_serverHost);
printf("url: %s\n", ServerConfig::g_php_serverHost.data());
sendErrorsAsEmail();
return -8;
}