add pubkey cache

This commit is contained in:
DenioD
2020-06-01 22:32:38 +02:00
parent 74de61d265
commit 875d1a16a1

View File

@@ -957,6 +957,8 @@ void Controller::refreshTransactions() {
publickey = main->getPubkeyByAddress(address); publickey = main->getPubkeyByAddress(address);
qDebug()<<"Pubkey outgoing found"<<publickey;
}else{ }else{
publickey = ""; publickey = "";
} }
@@ -1187,7 +1189,10 @@ void Controller::refreshTransactions() {
chatModel->addCid(txid, cid); chatModel->addCid(txid, cid);
chatModel->addrequestZaddr(txid, requestZaddr); chatModel->addrequestZaddr(txid, requestZaddr);
chatModel->addHeader(txid, headerbytes); chatModel->addHeader(txid, headerbytes);
if (publickey.length() > 0){
main->addPubkey(requestZaddr, publickey); main->addPubkey(requestZaddr, publickey);
}
} }
@@ -1336,7 +1341,7 @@ void Controller::refreshTransactions() {
DataStore::getChatDataStore()->setData(ChatIDGenerator::getInstance()->generateID(item), item); DataStore::getChatDataStore()->setData(ChatIDGenerator::getInstance()->generateID(item), item);
} }
}
} }
} }
} }