Skip to content

feat(health-check): probe Aptos by ledger chain id and a recent transaction - #3964

Closed
haiyuechen-nearone wants to merge 1 commit into
3764-foreign-chain-health-hybrid-bitcoinfrom
3764-foreign-chain-health-hybrid-aptos
Closed

feat(health-check): probe Aptos by ledger chain id and a recent transaction#3964
haiyuechen-nearone wants to merge 1 commit into
3764-foreign-chain-health-hybrid-bitcoinfrom
3764-foreign-chain-health-hybrid-aptos

Conversation

@haiyuechen-nearone

@haiyuechen-nearone haiyuechen-nearone commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Part of #3764; rationale: #3969. Stacked on #3963, merge bottom-up:

  1. feat: probe Starknet by chain id and a recent transaction #3932 — Starknet: chain id + a recent L1-accepted tx
  2. feat(health-check): probe EVM chains by chain id and a recent finalized transaction #3962 — 6 EVM chains: eth_chainId + a recent finalized tx
  3. feat(health-check): probe Bitcoin by genesis hash and a recent transaction #3963 — Bitcoin: genesis hash + a recent tx
  4. feat(health-check): probe Aptos by ledger chain id and a recent transaction #3964 (this PR) — Aptos: ledger chain id + a recent tx

Replaces Aptos's pinned golden tx with the identity probe: verify the ledger chain_id (GET /v1), then inspect a committed tx 100 versions behind the tip.

The last golden chain: with every chain now identity-based, this deletes the Network enum, the --network flag, and network auto-detection (all only picked between built-in reference sets), and turns the golden module into a small parse module of identity decoders.

The node-startup stack (#3848#3849#3850) builds on this and closes #3764.

@haiyuechen-nearone
haiyuechen-nearone force-pushed the 3764-foreign-chain-health-hybrid-aptos branch from a135faf to 94fb0e1 Compare July 24, 2026 12:32
@haiyuechen-nearone
haiyuechen-nearone force-pushed the 3764-foreign-chain-health-hybrid-bitcoin branch from dfe9f22 to 2812e3a Compare July 24, 2026 12:32
@haiyuechen-nearone haiyuechen-nearone changed the title feat(health-check): Aptos ledger-chain-id + dynamic-tx probe (Option B prototype) feat(health-check): probe Aptos by ledger chain id and a recent transaction Jul 24, 2026
@haiyuechen-nearone
haiyuechen-nearone force-pushed the 3764-foreign-chain-health-hybrid-bitcoin branch from 2812e3a to 4cdf6cd Compare July 24, 2026 14:23
@haiyuechen-nearone
haiyuechen-nearone force-pushed the 3764-foreign-chain-health-hybrid-aptos branch 2 times, most recently from cd899ec to aff82d6 Compare July 27, 2026 10:31
@haiyuechen-nearone
haiyuechen-nearone force-pushed the 3764-foreign-chain-health-hybrid-bitcoin branch 2 times, most recently from 1e88265 to 3d15686 Compare July 27, 2026 11:02
@haiyuechen-nearone
haiyuechen-nearone force-pushed the 3764-foreign-chain-health-hybrid-aptos branch 2 times, most recently from 5e1e523 to bbcf4ca Compare July 27, 2026 11:19
@haiyuechen-nearone
haiyuechen-nearone force-pushed the 3764-foreign-chain-health-hybrid-bitcoin branch from 3d15686 to 95249bb Compare July 27, 2026 11:19
…action

Extend the identity-based probe to Aptos, the last golden-transaction chain:
verify the ledger chain_id (GET /v1; 1 = mainnet, 2 = testnet) against the
configured expected identity, then run the inspector over a committed transaction
100 ledger versions behind the tip.

With every chain now identity-based and configuration the sole source of expected
identities, the golden module's vectors and the entire network machinery are
deleted: the Network enum, the CLI's --network flag, and the chain-id/contract-id
auto-detection all existed only to pick between built-in reference sets. The
golden module becomes a small parse module of identity decoders.
@haiyuechen-nearone

Copy link
Copy Markdown
Contributor Author

Superseded by the #4003 stack, which reimplements chain-identity probing config-first: #4017 (config field) and #4013 (probe machinery, Starknet-first). Reopen if the per-chain hybrid approach is revived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant