merkel generation + render

This commit is contained in:
enx01
2025-11-27 18:32:56 +01:00
parent 8859846d8b
commit 74869221e0
5 changed files with 203 additions and 167 deletions

View File

@@ -61,15 +61,23 @@ pub fn start_p2p_executor(
if let Ok(cmd) = cmd_rx.try_recv() {
match cmd {
NetworkCommand::ConnectPeer(addr) => {
println!("Attempting to connect to: {}", addr);
println!("[Network] ConnectPeer() called");
println!("[Network] Attempting to connect to: {}", addr);
// Network logic to connect...
// If successful, send an event back:
// event_tx.send(NetworkEvent::PeerConnected(addr)).unwrap();
},
NetworkCommand::RequestFileTree(_) => todo!(),
NetworkCommand::RequestFileTree(_) => {
println!("[Network] RequestFileTree() called");
},
// ... handle other commands
NetworkCommand::RequestDirectoryContent(_, _) => todo!(),
NetworkCommand::RequestChunk(_, _) => todo!(),
NetworkCommand::RequestDirectoryContent(_, _) => {
println!("[Network] RequestDirectoryContent() called");
},
NetworkCommand::RequestChunk(_, _) => {
println!("[Network] RequestChunk() called");
},
}
}