mirror of
https://github.com/stakwork/sphinx-key.git
synced 2026-02-03 23:04:24 +01:00
Restore node
This commit is contained in:
@@ -192,17 +192,16 @@ impl Persist for FsPersister {
|
||||
log::warn!("=> I am here");
|
||||
while std::ptr::null() != dir_ent {
|
||||
log::warn!("=> Good morning");
|
||||
let x = from_utf8(transmute((*dir_ent).d_name.as_slice()));
|
||||
log::warn!("{:?}", x);
|
||||
let y = x.unwrap();
|
||||
log::warn!("Good afternoon");
|
||||
/*
|
||||
if let Ok(pubkey) = self.pubkeys.get(&pk) {
|
||||
if let Ok(node) = self.nodes.get(&pk) {
|
||||
let result = from_utf8(transmute((*dir_ent).d_name.as_slice()));
|
||||
//log::warn!("{:?}", x);
|
||||
let pk = result.unwrap();
|
||||
log::warn!("I unwrapped the bomb! It has length: {}", pk.len());
|
||||
log::warn!("Key: {}", &pk[..8]);
|
||||
if let Ok(pubkey) = self.pubkeys.get(&pk[..8]) {
|
||||
if let Ok(node) = self.nodes.get(&pk[..8]) {
|
||||
res.push((pubkey, node.into()));
|
||||
}
|
||||
}
|
||||
*/
|
||||
dir_ent = readdir(dir);
|
||||
}
|
||||
closedir(dir);
|
||||
|
||||
Reference in New Issue
Block a user