rpc: /ext/ -> /v1/ on our own hosts

luxd serves /v1/*; /ext/* 404s. Third-party chains keep their own paths.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-08-03 21:01:59 -07:00
co-authored by Hanzo Dev
parent ef9cc4e869
commit 7d827e2b85
+2 -2
View File
@@ -62,7 +62,7 @@ func (r *ChainRegistry) probeNode(host string, port int, brand string) {
base := fmt.Sprintf("http://%s:%d", host, port)
// Query node info
info, err := rpcCall(base+"/ext/info", "info.getNodeID", nil)
info, err := rpcCall(base+"/v1/info", "info.getNodeID", nil)
if err != nil {
log.Printf("[mdns] probe %s failed: %v", base, err)
return
@@ -73,7 +73,7 @@ func (r *ChainRegistry) probeNode(host string, port int, brand string) {
// Use info.getChains — returns ONLY chains this node is actively tracking.
// One RPC call, no probing. Added in luxd v1.24.28+.
chains, err := rpcCall(base+"/ext/info", "info.getChains", nil)
chains, err := rpcCall(base+"/v1/info", "info.getChains", nil)
if err != nil {
// Fallback: older nodes without info.getChains — probe each chain
log.Printf("[mdns] %s: info.getChains not available, falling back to platform probe", base)