Skip to content

Commit 356dc2c

Browse files
committed
fix(rpc/test): addnode/disconnectnode smoke uses host:port after strict validation
Commit 5acb363 added SocketAddr::from_str validation; smoke loop still passed bare "127.0.0.1" which now correctly errors. Update to the full "127.0.0.1:8333" form. Op: correct Restores: test:all_required_handlers_return_core_shapes
1 parent 5acb363 commit 356dc2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/rpc/tests/handler_smoke.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ fn all_required_handlers_return_core_shapes() -> Result<(), Box<dyn std::error::
5151
("estimaterawfee", json!([6])),
5252
("getnetworkinfo", json!([])),
5353
("getpeerinfo", json!([])),
54-
("addnode", json!(["127.0.0.1", "onetry"])),
55-
("disconnectnode", json!(["127.0.0.1"])),
54+
("addnode", json!(["127.0.0.1:8333", "onetry"])),
55+
("disconnectnode", json!(["127.0.0.1:8333"])),
5656
("getconnectioncount", json!([])),
5757
("getnettotals", json!([])),
5858
("getblocktemplate", json!([{}])),

0 commit comments

Comments
 (0)