File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/discovery/bootstrap Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
def test_validate_addresses ():
13
13
"""Test validation with a mix of valid and invalid addresses in one list."""
14
14
addresses = [
15
- # Valid
16
- "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SznbYGzPwp8qDrq " ,
15
+ # Valid - using proper peer IDs
16
+ "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ " ,
17
17
"/ip4/104.236.179.241/tcp/4001/p2p/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM" ,
18
18
# Invalid
19
19
"invalid-address" ,
@@ -22,7 +22,7 @@ def test_validate_addresses():
22
22
"/ip4/127.0.0.1/tcp/4001/p2p/InvalidPeerID" , # Bad peer ID
23
23
]
24
24
valid_expected = [
25
- "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SznbYGzPwp8qDrq " ,
25
+ "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ " ,
26
26
"/ip4/104.236.179.241/tcp/4001/p2p/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM" ,
27
27
]
28
28
validated = validate_bootstrap_addresses (addresses )
You can’t perform that action at this time.
0 commit comments