unknownids: use pk bytes
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
1 parent
7b1ace328f
commit
4992e25b3a
1 file changed
+2
-2
@@ -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
|
||||
if ndb.get_profile_by_pubkey(txn, pubkey).is_ok() {
|
||||
return;
|
||||
}
|
||||
|
||||
let unknown_id = UnknownId::Pubkey(*pubkey);
|
||||
let unknown_id = UnknownId::Pubkey(Pubkey::new(*pubkey));
|
||||
if self.ids.contains_key(&unknown_id) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user