Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
699822d
fix: prevent handshake race condition causing ConnectionClosed failures
diegomrsantos Oct 1, 2025
3aeda78
refactor: make handshake behaviour self-contained and auto-initiating
diegomrsantos Oct 2, 2025
0cbbd6f
refactor: improve handshake API ergonomics and test readability
diegomrsantos Oct 2, 2025
194c116
refactor: remove logging-only SwarmEvent handlers and fix SwarmBuilder
diegomrsantos Oct 2, 2025
b8ba1d5
implement copilot comments
diegomrsantos Oct 2, 2025
37f5e0e
refactor: restore semantic event emission in handshake behaviour
diegomrsantos Oct 2, 2025
ac6f471
with_bandwidth_metrics(metrics_registry) doesnt exist
diegomrsantos Oct 2, 2025
2d60d3e
test: fix concurrent_dials test to actually verify no duplicate hands…
diegomrsantos Oct 2, 2025
f8aa962
Merge branch 'unstable'
diegomrsantos Oct 15, 2025
5656604
fix: remove unused debug import in handshake module
diegomrsantos Oct 15, 2025
b6e8c82
feat: add bandwidth metrics to SwarmBuilder
diegomrsantos Oct 15, 2025
1b82a0c
refactor: keep unreachable!() in map_out with better documentation
diegomrsantos Oct 15, 2025
78dbbaf
Merge branch 'unstable' into fix/handshake-connection-closed-race
diegomrsantos Oct 15, 2025
df10f13
change log level to debug
diegomrsantos Oct 16, 2025
c13b6a0
Merge branch 'unstable' into fix/handshake-connection-closed-race
diegomrsantos Oct 16, 2025
2b9af25
Merge branch 'unstable' into fix/handshake-connection-closed-race
diegomrsantos Oct 16, 2025
15edef7
docs: update idle_connection_timeout comment to remove outdated Ident…
diegomrsantos Oct 16, 2025
3cac64b
Merge branch 'unstable' into fix/handshake-connection-closed-race
diegomrsantos Oct 17, 2025
3b4e2a3
Merge branch 'unstable' into fix/handshake-connection-closed-race
diegomrsantos Oct 20, 2025
fefa57b
Merge branch 'unstable' into fix/handshake-connection-closed-race
diegomrsantos Oct 23, 2025
b7fd2d7
Merge branch 'unstable' into fix/handshake-connection-closed-race
diegomrsantos Nov 3, 2025
5b1e240
refactor: simplify handshake event handling
diegomrsantos Nov 3, 2025
fca0502
fix: restore connection error logging for network diagnostics
diegomrsantos Nov 3, 2025
21f80ce
fix: log handshake response send failures
diegomrsantos Nov 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion anchor/network/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,19 @@ impl AnchorBehaviour {
PeerManager::new(network_config, one_epoch_duration)
};

let handshake = handshake::create_behaviour(local_keypair);
let handshake = {
let domain_type: String = network_config.domain_type.into();
let node_info = handshake::node_info::NodeInfo::new(
domain_type,
Some(handshake::node_info::NodeMetadata {
node_version: version_with_platform(),
execution_node: "geth/v1.10.8".to_string(),
consensus_node: "lighthouse/v1.5.0".to_string(),
subnets: "00000000000000000000000000000000".to_string(),
}),
);
handshake::Behaviour::new(local_keypair, node_info)
};

Ok(AnchorBehaviour {
identify,
Expand Down
Loading
Loading