Merge branch 'master' into next

Forward-merge the fipstop routing-stats label flip and the three fixes
carried up from maint: drop the redundant parent_switched counter, keep
the tighter path_mtu on a LookupResponse, and reuse one shared secp256k1
context. Clean auto-merge into next's post-refactor structure.
This commit is contained in:
Johnathan Corgan
2026-07-12 16:55:50 +00:00
16 changed files with 118 additions and 69 deletions
+2 -2
View File
@@ -1251,7 +1251,7 @@ async fn test_tree_announce_self_root_promotion() {
let announce = TreeAnnounce::new(decl, TreeCoordinate::from_addrs(vec![l_addr]).unwrap());
let encoded = announce.encode().unwrap();
let switched_before = nodes[p_idx].node.metrics().tree.parent_switched.get();
let switched_before = nodes[p_idx].node.metrics().tree.parent_switches.get();
nodes[p_idx]
.node
.handle_tree_announce(&l_addr, &encoded[1..])
@@ -1263,7 +1263,7 @@ async fn test_tree_announce_self_root_promotion() {
);
assert_eq!(*nodes[p_idx].node.tree_state().root(), p_addr);
assert_eq!(
nodes[p_idx].node.metrics().tree.parent_switched.get(),
nodes[p_idx].node.metrics().tree.parent_switches.get(),
switched_before + 1
);