Fix seeding

This commit is contained in:
Zach Fox 2017-11-08 12:52:53 -08:00
parent 3190fe1f32
commit 7995f50fab
2 changed files with 3 additions and 3 deletions

View file

@ -111,7 +111,7 @@ bool Ledger::receiveAt(const QString& hfc_key, const QString& old_key, const QSt
}
QJsonObject transaction;
transaction["hfc_key"] = hfc_key;
transaction["public_key"] = hfc_key;
transaction["machine_fingerprint"] = machine_fingerprint;
QJsonDocument transactionDoc{ transaction };
auto transactionString = transactionDoc.toJson(QJsonDocument::Compact);

View file

@ -333,8 +333,8 @@ Wallet::Wallet() {
<< _mustRegenerateKeypair << "keyFilePath:" << getKeyFilePath();
_mustRegenerateKeypair = false;
resetKeysOnly();
ledger->reset();
generateKeyPair();
ledger->reset(); // Hits `reset_user_hfc_account` endpoint
generateKeyPair(); // Hits `receive_at` endpoint
}
if (wallet->getKeyFilePath() == "" || !wallet->getSecurityImage()) {