mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
chore: migrate luxd HTTP routes /ext -> /v1
Drop the Avalanche-heritage /ext prefix; /v1 is the single canonical route surface (one way, no backward compat). The node's baseURL is the source of truth; clients, SDKs, CLI, indexer, maker, genesis, netrunner, and the k8s/compose/gateway/explorer configs are updated to match. Co-authored-by: Hanzo Dev <dev@hanzo.ai>
This commit is contained in:
@@ -72,7 +72,7 @@ echo ""
|
||||
# Wait for RPC to be ready
|
||||
echo -n "Waiting for RPC..."
|
||||
for _ in {1..30}; do
|
||||
if curl -s "http://127.0.0.1:$HTTP_PORT/ext/info" >/dev/null 2>&1; then
|
||||
if curl -s "http://127.0.0.1:$HTTP_PORT/v1/info" >/dev/null 2>&1; then
|
||||
echo " ready!"
|
||||
break
|
||||
fi
|
||||
@@ -83,10 +83,10 @@ done
|
||||
# Show status
|
||||
echo ""
|
||||
echo "=== Instance Ready ==="
|
||||
echo " C-Chain RPC: http://127.0.0.1:$HTTP_PORT/ext/bc/C/rpc"
|
||||
echo " X-Chain RPC: http://127.0.0.1:$HTTP_PORT/ext/bc/X"
|
||||
echo " P-Chain RPC: http://127.0.0.1:$HTTP_PORT/ext/bc/P"
|
||||
echo " Info API: http://127.0.0.1:$HTTP_PORT/ext/info"
|
||||
echo " C-Chain RPC: http://127.0.0.1:$HTTP_PORT/v1/bc/C/rpc"
|
||||
echo " X-Chain RPC: http://127.0.0.1:$HTTP_PORT/v1/bc/X"
|
||||
echo " P-Chain RPC: http://127.0.0.1:$HTTP_PORT/v1/bc/P"
|
||||
echo " Info API: http://127.0.0.1:$HTTP_PORT/v1/info"
|
||||
echo ""
|
||||
echo " Logs: tail -f $LOG_FILE"
|
||||
echo " Stop: kill $(cat "$PID_FILE")"
|
||||
|
||||
@@ -101,7 +101,7 @@ global:
|
||||
|
||||
scrape_configs:
|
||||
- job_name: "node"
|
||||
metrics_path: "/ext/metrics"
|
||||
metrics_path: "/v1/metrics"
|
||||
file_sd_configs:
|
||||
- files:
|
||||
- '${FILE_SD_PATH}/*.json'
|
||||
|
||||
Reference in New Issue
Block a user