Skip to content

Commit 3d8e79c

Browse files
committed
chore: return None for TPU fields and update tests
Signed-off-by: AvhiMaz <[email protected]>
1 parent c59a4ac commit 3d8e79c

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

rpc/src/rpc.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3661,15 +3661,11 @@ pub mod rpc_full {
36613661
tvu: contact_info
36623662
.tvu(Protocol::UDP)
36633663
.filter(|addr| socket_addr_space.check(addr)),
3664-
tpu: contact_info
3665-
.tpu(Protocol::QUIC)
3666-
.filter(|addr| socket_addr_space.check(addr)),
3664+
tpu: None,
36673665
tpu_quic: contact_info
36683666
.tpu(Protocol::QUIC)
36693667
.filter(|addr| socket_addr_space.check(addr)),
3670-
tpu_forwards: contact_info
3671-
.tpu_forwards(Protocol::QUIC)
3672-
.filter(|addr| socket_addr_space.check(addr)),
3668+
tpu_forwards: None,
36733669
tpu_forwards_quic: contact_info
36743670
.tpu_forwards(Protocol::QUIC)
36753671
.filter(|addr| socket_addr_space.check(addr)),
@@ -5179,9 +5175,9 @@ pub mod tests {
51795175
"gossip": "127.0.0.1:8000",
51805176
"shredVersion": 0u16,
51815177
"tvu": "127.0.0.1:8001",
5182-
"tpu": "127.0.0.1:8003",
5178+
"tpu": null,
51835179
"tpuQuic": "127.0.0.1:8009",
5184-
"tpuForwards": "127.0.0.1:8004",
5180+
"tpuForwards": null,
51855181
"tpuForwardsQuic": "127.0.0.1:8010",
51865182
"tpuVote": "127.0.0.1:8005",
51875183
"serveRepair": "127.0.0.1:8008",
@@ -5194,9 +5190,9 @@ pub mod tests {
51945190
"gossip": "127.0.0.1:1235",
51955191
"shredVersion": 0u16,
51965192
"tvu": "127.0.0.1:1236",
5197-
"tpu": "127.0.0.1:1234",
5193+
"tpu": null,
51985194
"tpuQuic": "127.0.0.1:1240",
5199-
"tpuForwards": "127.0.0.1:1239",
5195+
"tpuForwards": null,
52005196
"tpuForwardsQuic": "127.0.0.1:1245",
52015197
"tpuVote": "127.0.0.1:1241",
52025198
"serveRepair": "127.0.0.1:1242",

test-validator/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,11 +1363,6 @@ impl TestValidator {
13631363
panic!("Timeout waiting for program to become usable");
13641364
}
13651365

1366-
/// Return the validator's TPU address
1367-
pub fn tpu(&self) -> &SocketAddr {
1368-
&self.tpu_quic
1369-
}
1370-
13711366
/// Return the validator's TPU QUIC address
13721367
pub fn tpu_quic(&self) -> &SocketAddr {
13731368
&self.tpu_quic

0 commit comments

Comments
 (0)