From 875d1a16a13bf3c744f30154f3e9191107263bea Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Mon, 1 Jun 2020 22:32:38 +0200 Subject: [PATCH] add pubkey cache --- src/controller.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controller.cpp b/src/controller.cpp index 0f5b4f3..f4475cd 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -957,6 +957,8 @@ void Controller::refreshTransactions() { publickey = main->getPubkeyByAddress(address); + qDebug()<<"Pubkey outgoing found"<addCid(txid, cid); chatModel->addrequestZaddr(txid, requestZaddr); chatModel->addHeader(txid, headerbytes); + + if (publickey.length() > 0){ main->addPubkey(requestZaddr, publickey); + } } @@ -1336,7 +1341,7 @@ void Controller::refreshTransactions() { DataStore::getChatDataStore()->setData(ChatIDGenerator::getInstance()->generateID(item), item); } - } + } } }