@@ -1990,7 +1990,9 @@ def test_node_init_can_restore_snapshot_from_manifest(self) -> None:
19901990 "--genesis-source" ,
19911991 str (genesis_source ),
19921992 "--snapshot-url" ,
1993- "https://example.invalid/snapshot.tar.gz" ,
1993+ "https://example.invalid/snapshot-manifest.json" ,
1994+ "--snapshot-signing-key" ,
1995+ "a" * 64 ,
19941996 "--output" ,
19951997 str (
19961998 base_dir
@@ -2052,14 +2054,16 @@ def test_node_init_can_restore_snapshot_from_manifest(self) -> None:
20522054
20532055 self .assertEqual (exit_code , 0 )
20542056 snapshot_mock .assert_called_once_with (
2055- "https://example.invalid/snapshot.tar.gz " ,
2057+ "https://example.invalid/snapshot-manifest.json " ,
20562058 home ,
2059+ trusted_manifest_public_keys = ["a" * 64 ],
2060+ expected_chain_id = "xian-testnet-12" ,
20572061 )
20582062 result = json .loads (stdout .getvalue ())
20592063 self .assertTrue (result ["snapshot_restored" ])
20602064 self .assertEqual (
20612065 result ["effective_snapshot_url" ],
2062- "https://example.invalid/snapshot.tar.gz " ,
2066+ "https://example.invalid/snapshot-manifest.json " ,
20632067 )
20642068 self .assertEqual (
20652069 result ["snapshot" ]["snapshot_archive_name" ],
@@ -3169,7 +3173,9 @@ def test_snapshot_restore_uses_effective_snapshot_url(self) -> None:
31693173 "--chain-id" ,
31703174 "xian-local-1" ,
31713175 "--snapshot-url" ,
3172- "https://example.invalid/network-snapshot.tar.gz" ,
3176+ "https://example.invalid/network-snapshot-manifest.json" ,
3177+ "--snapshot-signing-key" ,
3178+ "b" * 64 ,
31733179 "--output" ,
31743180 str (
31753181 base_dir
@@ -3219,14 +3225,16 @@ def test_snapshot_restore_uses_effective_snapshot_url(self) -> None:
32193225
32203226 self .assertEqual (exit_code , 0 )
32213227 snapshot_mock .assert_called_once_with (
3222- "https://example.invalid/network-snapshot.tar.gz " ,
3228+ "https://example.invalid/network-snapshot-manifest.json " ,
32233229 home ,
3230+ trusted_manifest_public_keys = ["b" * 64 ],
3231+ expected_chain_id = "xian-local-1" ,
32243232 )
32253233 result = json .loads (stdout .getvalue ())
32263234 self .assertEqual (result ["home" ], str (home ))
32273235 self .assertEqual (
32283236 result ["snapshot_url" ],
3229- "https://example.invalid/network-snapshot.tar.gz " ,
3237+ "https://example.invalid/network-snapshot-manifest.json " ,
32303238 )
32313239 self .assertEqual (
32323240 result ["snapshot_archive_name" ],
0 commit comments