configs/testnet: sync genesis.cChainGenesis to A-form, scrub upgrade.json

Two related fixes, both validated live on do-sfo3-lux-k8s lux-testnet:

genesis.json:
  Replaced the embedded cChainGenesis field with the canonical 2-alloc
  A-form (matches standalone configs/testnet/cchain.json per 14b85b2).
  Old: gasLimit 0x3b9aca00, warpConfig blockTimestamp:0, embedded
  genesisHash + stateRoot annotations.
  New: gasLimit 0xb71b00, warpConfig blockTimestamp:1730517266,
  skipPostMergeFields:true. Empirically produces block 0 hash
  0x1c5fe37764b8bc146dc88bc1c2e0259cd8369b07a06439bcfa1782b5d4fb0995 —
  the canonical RLP-matching hash from lux-testnet-96368.rlp.

upgrade.json:
  Dropped two entries that were breaking luxd boot:
    - warpConfig {blockTimestamp:0, requirePrimaryNetworkSigners:true}
      Fails luxd validation: "invalid precompile upgrades: PrecompileUpgrade
      (warpConfig) at [0]: disable should be [true]". Warp is already
      pre-allocated in the C-Chain genesis alloc at address 0x02..05
      (code:0x01, nonce:1), so an explicit upgrade entry is redundant and
      breaks block 0 identity if it touches state.
    - feeManagerConfig at blockTimestamp:900000000 (Sep 1998!)
      Fails luxd validation: "config block timestamp (900000000) <
      previous timestamp (1766708400)". The list is required to be
      monotonically non-decreasing; 900000000 placed mid-list between
      strictPQ entries at 1766708400 broke that. Mainnet doesn't have
      this entry; testnet inherited it as drift and it's never
      activated cleanly. Drop and re-introduce later via a properly
      ordered timestamp if/when fee admin is needed.

Live verification:
  - all 5 lux-testnet pods boot to block 0 = 0x1c5fe377…
  - RLP imports cleanly to h=218 (0xda)
  - external eth_blockNumber at api.lux-test.network/ext/bc/C/rpc → 0xda
This commit is contained in:
Hanzo AI
2026-06-05 14:41:19 -07:00
parent 26e6de4734
commit cfd473d50d
2 changed files with 2 additions and 18 deletions
+2 -2
View File
@@ -11058,7 +11058,7 @@
}
],
"bChainGenesis": "{\n \"description\": \"Cross-chain bridge + MPC signing\",\n \"initialSigners\": [],\n \"message\": \"Lux B-Chain Genesis\",\n \"name\": \"B-Chain\",\n \"networkId\": 2,\n \"signerThreshold\": 0,\n \"timestamp\": 1730531602,\n \"version\": 1,\n \"vm\": \"BridgeVM\"\n}\n",
"cChainGenesis": "{\n \"alloc\": {\n \"0200000000000000000000000000000000000005\": {\n \"balance\": \"0x0\",\n \"code\": \"0x01\",\n \"nonce\": \"0x1\"\n },\n \"9011E888251AB053B7bD1cdB598Db4f9DEd94714\": {\n \"balance\": \"0x193e5939a08ce9dbd480000000\"\n }\n },\n \"baseFeePerGas\": \"0x5d21dba00\",\n \"coinbase\": \"0x0000000000000000000000000000000000000000\",\n \"config\": {\n \"arrowGlacierBlock\": 0,\n \"berlinBlock\": 0,\n \"byzantiumBlock\": 0,\n \"cancunTime\": 0,\n \"chainId\": 96368,\n \"constantinopleBlock\": 0,\n \"eip150Block\": 0,\n \"eip155Block\": 0,\n \"eip158Block\": 0,\n \"evmTimestamp\": 0,\n \"feeConfig\": {\n \"baseFeeChangeDenominator\": 36,\n \"blockGasCostStep\": 200000,\n \"gasLimit\": 1000000000,\n \"maxBlockGasCost\": 1000000,\n \"minBaseFee\": 25000000000,\n \"minBlockGasCost\": 0,\n \"targetBlockRate\": 2,\n \"targetGas\": 500000000\n },\n \"grayGlacierBlock\": 0,\n \"homesteadBlock\": 0,\n \"istanbulBlock\": 0,\n \"londonBlock\": 0,\n \"mergeNetsplitBlock\": 0,\n \"muirGlacierBlock\": 0,\n \"petersburgBlock\": 0,\n \"shanghaiTime\": 0,\n \"terminalTotalDifficulty\": 0,\n \"warpConfig\": {\n \"blockTimestamp\": 0,\n \"quorumNumerator\": 67,\n \"requirePrimaryNetworkSigners\": false\n }\n },\n \"difficulty\": \"0x0\",\n \"extraData\": \"0x\",\n \"gasLimit\": \"0x3b9aca00\",\n \"gasUsed\": \"0x0\",\n \"genesisHash\": \"0x1c5fe37764b8bc146dc88bc1c2e0259cd8369b07a06439bcfa1782b5d4fb0995\",\n \"mixHash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"nonce\": \"0x0\",\n \"number\": \"0x0\",\n \"parentHash\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"stateRoot\": \"0x2d1cedac263020c5c56ef962f6abe0da1f5217bdc6468f8c9258a0ea23699e80\",\n \"timestamp\": \"0x67259912\"\n}\n",
"cChainGenesis": "{\"config\":{\"chainId\":96368,\"homesteadBlock\":0,\"eip150Block\":0,\"eip155Block\":0,\"eip158Block\":0,\"byzantiumBlock\":0,\"constantinopleBlock\":0,\"petersburgBlock\":0,\"istanbulBlock\":0,\"muirGlacierBlock\":0,\"berlinBlock\":0,\"londonBlock\":0,\"arrowGlacierBlock\":0,\"grayGlacierBlock\":0,\"mergeNetsplitBlock\":0,\"terminalTotalDifficulty\":0,\"shanghaiTime\":0,\"cancunTime\":0,\"evmTimestamp\":0,\"blobSchedule\":{\"cancun\":{\"baseFeeUpdateFraction\":3338477,\"max\":6,\"target\":3}},\"feeConfig\":{\"gasLimit\":12000000,\"targetBlockRate\":2,\"minBaseFee\":25000000000,\"targetGas\":500000000,\"baseFeeChangeDenominator\":36,\"minBlockGasCost\":0,\"maxBlockGasCost\":1000000,\"blockGasCostStep\":200000},\"warpConfig\":{\"blockTimestamp\":1730517266,\"quorumNumerator\":67,\"requirePrimaryNetworkSigners\":false}},\"nonce\":\"0x0\",\"timestamp\":\"0x67259912\",\"extraData\":\"0x\",\"gasLimit\":\"0xb71b00\",\"difficulty\":\"0x0\",\"mixHash\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"coinbase\":\"0x0000000000000000000000000000000000000000\",\"alloc\":{\"0200000000000000000000000000000000000005\":{\"balance\":\"0x0\",\"code\":\"0x01\",\"nonce\":\"0x1\"},\"0x9011E888251AB053B7bD1cdB598Db4f9DEd94714\":{\"balance\":\"0x193e5939a08ce9dbd480000000\"}},\"baseFeePerGas\":\"0x5d21dba00\",\"number\":\"0x0\",\"gasUsed\":\"0x0\",\"parentHash\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"skipPostMergeFields\":true}",
"dChainGenesis": "{\n \"description\": \"Decentralized Exchange \\u2014 native CLOB + AMM + perpetuals\",\n \"feeConfig\": {\n \"makerFeeBps\": 2,\n \"takerFeeBps\": 5\n },\n \"liquidityPools\": [],\n \"message\": \"Lux D-Chain Genesis\",\n \"name\": \"D-Chain\",\n \"networkId\": 2,\n \"perpetualMarkets\": [],\n \"timestamp\": 1730531602,\n \"tradingPairs\": [],\n \"version\": 1,\n \"vm\": \"DexVM\"\n}\n",
"gChainGenesis": "{\n \"description\": \"Graph database (GraphQL/Dgraph)\",\n \"message\": \"Lux G-Chain Genesis\",\n \"name\": \"G-Chain\",\n \"networkId\": 2,\n \"timestamp\": 1730531602,\n \"version\": 1,\n \"vm\": \"GraphVM\"\n}\n",
"initialStakeDuration": 31536000,
@@ -11129,4 +11129,4 @@
"tChainGenesis": "{\n \"aliases\": [\n \"F\",\n \"fhe\",\n \"fhevm\"\n ],\n \"description\": \"Threshold FHE encrypted compute (ring N=1024 q=12289)\",\n \"dkgParties\": 10,\n \"dkgThreshold\": 7,\n \"message\": \"Lux T-Chain Genesis\",\n \"name\": \"T-Chain\",\n \"networkId\": 2,\n \"ringDegreeN\": 1024,\n \"ringModulusQ\": 12289,\n \"timestamp\": 1730531602,\n \"version\": 1,\n \"vm\": \"ThresholdVM\"\n}\n",
"xChainGenesis": "{\"symbol\":\"LUX\",\"name\":\"Lux\",\"denomination\":9}\n",
"zChainGenesis": "{\n \"description\": \"Zero-knowledge proofs + private state\",\n \"message\": \"Lux Z-Chain Genesis\",\n \"name\": \"Z-Chain\",\n \"networkId\": 2,\n \"timestamp\": 1730531602,\n \"version\": 1,\n \"vm\": \"ZKVM\"\n}\n"
}
}
-16
View File
@@ -8,7 +8,6 @@
"strictPQTimestamp": 1766708400
},
"precompileUpgrades": [
{"warpConfig": {"blockTimestamp": 0, "quorumNumerator": 67, "requirePrimaryNetworkSigners": true}},
{"aiMiningConfig": {"blockTimestamp": 1766708400}},
{"blake3Config": {"blockTimestamp": 1766708400}},
{"cggmp21Verify": {"blockTimestamp": 1766708400}},
@@ -39,21 +38,6 @@
{"ringConfig": {"blockTimestamp": 1766708400}},
{"slhdsaVerify": {"blockTimestamp": 1766708400}},
{"zkConfig": {"blockTimestamp": 1766708400}},
{"feeManagerConfig": {
"blockTimestamp": 900000000,
"adminAddresses": ["0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC"],
"enabledAddresses": [],
"initialFeeConfig": {
"gasLimit": 20000000,
"minBaseFee": 25000000000,
"targetGas": 15000000,
"baseFeeChangeDenominator": 36,
"minBlockGasCost": 0,
"maxBlockGasCost": 10000000,
"targetBlockRate": 2,
"blockGasCostStep": 500000
}
}},
{"pulsarVerify": {"blockTimestamp": 1766708400}},
{"magnetarVerify": {"blockTimestamp": 1766708400}},
{"p3qVerify": {"blockTimestamp": 1766708400}},