unknownids: use pk bytes

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-08-24 23:17:01 -04:00
parent 7b1ace328f
commit 4992e25b3a

View File

@@ -195,13 +195,13 @@ impl UnknownIds {
} }
} }
pub fn add_pubkey_if_missing(&mut self, ndb: &Ndb, txn: &Transaction, pubkey: &Pubkey) { pub fn add_pubkey_if_missing(&mut self, ndb: &Ndb, txn: &Transaction, pubkey: &[u8; 32]) {
// we already have this profile, skip // we already have this profile, skip
if ndb.get_profile_by_pubkey(txn, pubkey).is_ok() { if ndb.get_profile_by_pubkey(txn, pubkey).is_ok() {
return; return;
} }
let unknown_id = UnknownId::Pubkey(*pubkey); let unknown_id = UnknownId::Pubkey(Pubkey::new(*pubkey));
if self.ids.contains_key(&unknown_id) { if self.ids.contains_key(&unknown_id) {
return; return;
} }