Commit ea5a95e
fix: add Ouroboros Genesis support for Cardano Node 10.5.1+ (#637)
Implement support for Cardano Node 10.5.1 which uses Ouroboros Genesis consensus protocol.
This replaces bootstrap peers with big ledger peer snapshots for better decentralization.
Changes:
- Add PeerSnapshotService to load peers from Genesis peer snapshot files
- Create model classes for BigLedgerPool, PeerSnapshotConfig, and Relay
- Update TopologyConfigServiceImpl to use peer snapshots with bootstrap fallback
- Add support for domain, IPv4, IPv6, and address relay formats
- Update mainnet, preprod, and preview topology.json to use peer-snapshot.json
- Add comprehensive unit tests (16 test cases) using mainnet peer snapshot
- Keep devkit with bootstrap peers for backward compatibility
The implementation maintains dynamic peer discovery priority:
1. Try dynamically discovered peers from yaci-indexer (when enabled)
2. Fallback to static peers from peer-snapshot.json (Genesis mode)
3. Fallback to bootstrap peers (legacy mode)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Mateusz Czeladka <mateusz.czeladka@cardanofoundation.org>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7cff2c3 commit ea5a95e
File tree
2 files changed
+22
-83
lines changed- api/src
- main/java/org/cardanofoundation/rosetta/api/network/service
- test/java/org/cardanofoundation/rosetta/api/network/service
2 files changed
+22
-83
lines changedLines changed: 1 addition & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 28 | | |
36 | 29 | | |
37 | 30 | | |
| |||
77 | 70 | | |
78 | 71 | | |
79 | 72 | | |
80 | | - | |
| 73 | + | |
81 | 74 | | |
82 | 75 | | |
83 | 76 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 77 | | |
94 | 78 | | |
95 | 79 | | |
| |||
Lines changed: 21 additions & 66 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
61 | | - | |
62 | 59 | | |
63 | 60 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
72 | 64 | | |
73 | 65 | | |
74 | 66 | | |
| |||
190 | 182 | | |
191 | 183 | | |
192 | 184 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
201 | 189 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 190 | + | |
| 191 | + | |
206 | 192 | | |
207 | 193 | | |
208 | 194 | | |
| |||
230 | 216 | | |
231 | 217 | | |
232 | 218 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
241 | 222 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
247 | 228 | | |
248 | 229 | | |
249 | 230 | | |
| |||
256 | 237 | | |
257 | 238 | | |
258 | 239 | | |
259 | | - | |
260 | | - | |
261 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
262 | 243 | | |
263 | 244 | | |
264 | 245 | | |
| |||
309 | 290 | | |
310 | 291 | | |
311 | 292 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | 293 | | |
339 | 294 | | |
0 commit comments