Files
zeekay 546ed00dcf The Hanzo explorer asks no P-Chain questions
Hanzo mainnet runs hanzod with its own committee and no P-Chain, so every
platform.* read the explorer sent through /v1/node/p-chain came back "no such
chain: P", and the validators and chains pages rendered reads that could never
answer.

ChainEntry.pChain says whether a chain's node runs a P-Chain: true for Lux and
Zoo, false for Hanzo, true for white-label hosts as before. Where it is false,
the P-Chain hooks send nothing, the Chains and Validators nav entries and the
stats page's network panel are gone, and /validators, /chains and
/chains/<slug> answer 404. Lux and Zoo are unchanged.

gate.spec.tsx asserts each hook sends nothing without a P-Chain and reads it
with one; chainRegistry.spec.ts pins which hosts have one. The
useNetworkValidators mock gains the predicates the hook now imports; its six
cases had been failing since the hook first called isPrimaryNetworkExplorer.

Claude-Session: https://claude.ai/code/session_011Ge9UnfkEK37Lapx5nfPQK
2026-09-23 19:20:09 -07:00

19 lines
409 B
TypeScript

import type { NextPage } from 'next';
import React from 'react';
import PageNextJs from 'nextjs/PageNextJs';
import ValidatorsPage from 'ui/validators/lux/ValidatorsPage';
const Page: NextPage = () => {
return (
<PageNextJs pathname="/validators">
<ValidatorsPage/>
</PageNextJs>
);
};
export default Page;
export { pChain as getServerSideProps } from 'nextjs/getServerSideProps/main';