@@ -128,12 +128,6 @@ impl Node {
128128 ) ;
129129 let tvu_addresses = Self :: get_socket_addrs ( & tvu_sockets) ;
130130
131- let ( tpu_port, tpu_socket) =
132- bind_in_range_with_config ( bind_ip_addr, port_range, socket_config)
133- . expect ( "tpu_socket primary bind" ) ;
134- let tpu_sockets =
135- bind_more_with_config ( tpu_socket, 32 , socket_config) . expect ( "tpu_sockets multi_bind" ) ;
136-
137131 let ( tpu_port_quic, tpu_quic) =
138132 bind_in_range_with_config ( bind_ip_addr, port_range, socket_config)
139133 . expect ( "tpu_quic primary bind" ) ;
@@ -147,11 +141,6 @@ impl Node {
147141 ) ;
148142 let tpu_quic_addresses = Self :: get_socket_addrs ( & tpu_quic) ;
149143
150- let ( tpu_forwards_port, tpu_forwards_socket) =
151- bind_in_range_with_config ( bind_ip_addr, port_range, socket_config)
152- . expect ( "tpu_forwards primary bind" ) ;
153- let tpu_forwards_sockets = bind_more_with_config ( tpu_forwards_socket, 8 , socket_config)
154- . expect ( "tpu_forwards multi_bind" ) ;
155144 let ( tpu_forwards_quic_port, tpu_forwards_quic) =
156145 bind_in_range_with_config ( bind_ip_addr, port_range, socket_config)
157146 . expect ( "tpu_forwards_quic primary bind" ) ;
@@ -290,14 +279,11 @@ impl Node {
290279 public_tvu_addr. unwrap_or_else ( || SocketAddr :: new ( advertised_ip, tvu_port) ) ,
291280 )
292281 . unwrap ( ) ;
293- info. set_tpu ( UDP , ( advertised_ip, tpu_port) ) . unwrap ( ) ;
294282 info. set_tpu (
295283 QUIC ,
296284 public_tpu_addr. unwrap_or_else ( || SocketAddr :: new ( advertised_ip, tpu_port_quic) ) ,
297285 )
298286 . unwrap ( ) ;
299- info. set_tpu_forwards ( UDP , ( advertised_ip, tpu_forwards_port) )
300- . unwrap ( ) ;
301287 info. set_tpu_forwards (
302288 QUIC ,
303289 public_tpu_forwards_addr
@@ -336,8 +322,6 @@ impl Node {
336322 alpenglow : Some ( alpenglow) ,
337323 gossip : gossip_sockets. into_iter ( ) . collect ( ) ,
338324 tvu : tvu_sockets,
339- tpu : tpu_sockets,
340- tpu_forwards : tpu_forwards_sockets,
341325 tpu_vote : tpu_vote_sockets,
342326 broadcast,
343327 repair,
@@ -525,10 +509,7 @@ pub use multihoming::*;
525509
526510#[ cfg( test) ]
527511mod tests {
528- use {
529- super :: * ,
530- crate :: contact_info:: Protocol :: { QUIC , UDP } ,
531- } ;
512+ use { super :: * , crate :: contact_info:: Protocol :: QUIC } ;
532513
533514 /// Regression test for fix where tpu_forwards_quic was incorrectly
534515 /// using tpu_forwards_port (UDP) instead of tpu_forwards_quic_port (QUIC)
@@ -538,7 +519,6 @@ mod tests {
538519 let node = Node :: new_localhost_with_pubkey ( & pubkey) ;
539520
540521 let tpu_forwards_quic = node. info . tpu_forwards ( QUIC ) . unwrap ( ) ;
541- let tpu_forwards_udp = node. info . tpu_forwards ( UDP ) . unwrap ( ) ;
542522
543523 let actual_quic_port = node. sockets . tpu_forwards_quic [ 0 ]
544524 . local_addr ( )
@@ -550,11 +530,5 @@ mod tests {
550530 actual_quic_port,
551531 "TPU forwards QUIC advertised port should match actual bound QUIC socket"
552532 ) ;
553-
554- assert_ne ! (
555- tpu_forwards_quic. port( ) ,
556- tpu_forwards_udp. port( ) ,
557- "TPU forwards QUIC and UDP should use different ports"
558- ) ;
559533 }
560534}
0 commit comments