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:
@@ -36,7 +36,7 @@ services:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=dashboard_default"
|
||||
- "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"
|
||||
logging:
|
||||
driver: json-file
|
||||
|
||||
@@ -34,7 +34,6 @@ services:
|
||||
start_period: 20s
|
||||
networks:
|
||||
- marketplace-mainnet-net
|
||||
- apex-net
|
||||
- traefik-net
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
@@ -52,9 +51,6 @@ networks:
|
||||
marketplace-mainnet-net:
|
||||
external: true
|
||||
name: marketplace-mainnet-net
|
||||
apex-net:
|
||||
external: true
|
||||
name: apex-dashboard-mainnet_mainnet-net
|
||||
traefik-net:
|
||||
external: true
|
||||
name: dashboard_default
|
||||
|
||||
@@ -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
|
||||
// the chain SUBMIT_WINDOW_MS of headroom for inclusion, capped at
|
||||
// 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 SUBMIT_WINDOW_MS = 120_000; // 2-minute inclusion window
|
||||
const tipMs = params.tipMs;
|
||||
|
||||
@@ -41,7 +41,7 @@ const HEX64_RE = /^[0-9a-fA-F]{64}$/;
|
||||
// idempotent — repeated calls leave the values identical. createLucidContext
|
||||
// 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_SLOT_LENGTH = 1000;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user