mirror of
https://github.com/jmcorgan/fips.git
synced 2026-08-09 08:14:42 +00:00
Restructure config to match sysctl-style paths
- Add NodeConfig wrapper: node.identity.nsec, node.leaf_only - YAML structure mirrors architecture documentation exactly - Move main.rs to src/bin/fips.rs (empty binary placeholder) - Add "Connection Model" section to fips-transports.md documenting connectionless vs connection-oriented transport categories - Fix clippy warnings (dead_code, clone_on_copy, assertions_on_constants)
This commit is contained in:
+2
-1
@@ -501,6 +501,7 @@ mod tests {
|
||||
Node::new(config).unwrap()
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn make_node_id(val: u8) -> NodeId {
|
||||
let mut bytes = [0u8; 32];
|
||||
bytes[0] = val;
|
||||
@@ -646,7 +647,7 @@ mod tests {
|
||||
|
||||
let peer_identity = Identity::generate();
|
||||
let peer_pub = crate::PeerIdentity::from_pubkey(peer_identity.pubkey());
|
||||
let peer1 = Peer::discovered(peer_pub.clone(), LinkId::new(1));
|
||||
let peer1 = Peer::discovered(peer_pub, LinkId::new(1));
|
||||
let peer2 = Peer::discovered(peer_pub, LinkId::new(2));
|
||||
|
||||
node.add_peer(peer1).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user