deploy: mainnet bring-up patches (env-override genesis + host/network)

shared: VECTOR_ZERO_TIME now reads VECTOR_ZERO_TIME_MS from env, defaults
to testnet genesis (1_752_057_484_000 ms). Mainnet deploys set
VECTOR_ZERO_TIME_MS=1756485600000. Existing testnet deployments unaffected
since env unset → testnet default. Patched in both lucidContext.ts (lucid
slot config override) and liveCbor.ts buildLiveTxForSubmit (submitted_at
slot-alignment).

deploy/mainnet: buyer host changed mp.vector.* → marketplace.vector.* per
operator-owned DNS. Indexer compose drops apex-net network (we point at
the hosted mainnet ogmios over public WSS, not via apex-dashboard-mainnet
which is not deployed on this box).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
david
2026-05-14 12:32:26 +02:00
parent 8249fd3c67
commit dcab0ba5b5
4 changed files with 3 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=dashboard_default" - "traefik.docker.network=dashboard_default"
- "traefik.http.routers.mp-buyer-mainnet.entrypoints=web" - "traefik.http.routers.mp-buyer-mainnet.entrypoints=web"
- "traefik.http.routers.mp-buyer-mainnet.rule=Host(`mp.vector.apexfusion.org`)" - "traefik.http.routers.mp-buyer-mainnet.rule=Host(`marketplace.vector.apexfusion.org`)"
- "traefik.http.services.mp-buyer-mainnet.loadbalancer.server.port=8070" - "traefik.http.services.mp-buyer-mainnet.loadbalancer.server.port=8070"
logging: logging:
driver: json-file driver: json-file

View File

@@ -34,7 +34,6 @@ services:
start_period: 20s start_period: 20s
networks: networks:
- marketplace-mainnet-net - marketplace-mainnet-net
- apex-net
- traefik-net - traefik-net
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@@ -52,9 +51,6 @@ networks:
marketplace-mainnet-net: marketplace-mainnet-net:
external: true external: true
name: marketplace-mainnet-net name: marketplace-mainnet-net
apex-net:
external: true
name: apex-dashboard-mainnet_mainnet-net
traefik-net: traefik-net:
external: true external: true
name: dashboard_default name: dashboard_default

View File

@@ -489,7 +489,7 @@ export async function buildLiveTxForSubmit(params: LiveSubmitParams): Promise<Bu
// because no slot in [tip, tip] could hold it. Push stamp forward to give // because no slot in [tip, tip] could hold it. Push stamp forward to give
// the chain SUBMIT_WINDOW_MS of headroom for inclusion, capped at // the chain SUBMIT_WINDOW_MS of headroom for inclusion, capped at
// deliver_by so deadline_ok stays satisfied. // deliver_by so deadline_ok stays satisfied.
const VECTOR_ZERO_TIME = 1_752_057_484_000; // ms const VECTOR_ZERO_TIME = Number(process.env.VECTOR_ZERO_TIME_MS) || 1_752_057_484_000; // ms (env override for mainnet; default = testnet genesis)
const SLOT_LENGTH = 1_000; // ms const SLOT_LENGTH = 1_000; // ms
const SUBMIT_WINDOW_MS = 120_000; // 2-minute inclusion window const SUBMIT_WINDOW_MS = 120_000; // 2-minute inclusion window
const tipMs = params.tipMs; const tipMs = params.tipMs;

View File

@@ -41,7 +41,7 @@ const HEX64_RE = /^[0-9a-fA-F]{64}$/;
// idempotent — repeated calls leave the values identical. createLucidContext // idempotent — repeated calls leave the values identical. createLucidContext
// invokes it before constructing the Lucid instance. // invokes it before constructing the Lucid instance.
const VECTOR_ZERO_TIME = 1_752_057_484_000; const VECTOR_ZERO_TIME = Number(process.env.VECTOR_ZERO_TIME_MS) || 1_752_057_484_000;
const VECTOR_ZERO_SLOT = 0; const VECTOR_ZERO_SLOT = 0;
const VECTOR_SLOT_LENGTH = 1000; const VECTOR_SLOT_LENGTH = 1000;