feat(net): server registry, bootstrap servers, peer discovery

This commit is contained in:
2026-06-11 11:27:14 +02:00
parent 34c588c6f4
commit 1c2dacc27c
5 changed files with 264 additions and 2 deletions
+9 -2
View File
@@ -34,8 +34,15 @@ public static class ChainProfiles
[ScriptKind.NativeSegwit] = new(0x04b2430c, 0x04b24746), // zprv / zpub
[ScriptKind.NativeSegwitMultisig] = new(0x02aa7a99, 0x02aa7ed3), // Zprv / Zpub
},
// TODO: popolare con i server reali prima della release (host:tcp:ssl).
BootstrapServers = [],
// Server di indicizzazione noti per il primo contatto (§3/§9); altri
// peer vengono scoperti via server.peers.subscribe.
BootstrapServers =
[
new ServerEndpoint("173.212.224.67", 50001, 50002),
new ServerEndpoint("144.91.120.225", 50001, 50002),
new ServerEndpoint("66.94.115.80", 50001, 50002),
new ServerEndpoint("89.117.149.130", 50001, 50002),
],
// TODO: popolare con [hash, bits] reali della catena (§7.3) prima della release.
Checkpoints = [],
};