configs(mainnet): revert cchain.json to RLP-matching 2-alloc form + forward-date upgrade.json

Empirically verified 2026-06-02 via ~/work/lux/state/cmd/genesis-hash-empirical:

  Block 0 hash: 0x3f4fa2a0b0ce089f52bf0ae9199c75ffdd76ecafc987794050cb0d286f1ec61e
  RLP parent:   0x3f4fa2a0b0ce089f52bf0ae9199c75ffdd76ecafc987794050cb0d286f1ec61e
  Result:       MATCH

cchain.json reverted from 1-alloc HEAD form (which produced 0x2f4ae11a — does NOT
match historical RLP) back to the canonical 2-alloc form: treasury 0x9011E888 +
warp precompile pre-alloc at 0200000000000000000000000000000000000005 with
code:0x01, nonce:1, skipPostMergeFields:true, timestamp 0x672485c2,
baseFeePerGas 0x5d21dba00, feeConfig.targetGas 500000000.

upgrade.json: all non-warp precompile activations moved from blockTimestamp:0 to
blockTimestamp:1766708400 (Dec 25 2025 16:20 PST per LP-9xxx fork). This stops
core.ApplyPrecompileActivations from running at genesis time and mutating the
state root away from 0x2d1ceda.... Only warpConfig stays at blockTimestamp:0
because the alloc already pre-bakes its address.

cchain.canonical.json: annotated documentation companion preserving genesisHash
and stateRoot fields for human readers.

Authoritative empirical study + tooling: ~/work/lux/state/LLM.md section
"RLP <-> Genesis <-> Upgrade — Canonical Migration Contract (2026-06-02, empirically verified)".

Unblocks: #131 (mainnet C-Chain RLP repro), #177 (Phase E retry), #167 cascade.
This commit is contained in:
Hanzo AI
2026-06-02 03:35:50 -07:00
parent 7a829a9d3f
commit ae7f530184
3 changed files with 114 additions and 28 deletions
+69
View File
@@ -0,0 +1,69 @@
{
"alloc": {
"0200000000000000000000000000000000000005": {
"balance": "0x0",
"code": "0x01",
"nonce": "0x1"
},
"0x9011E888251AB053B7bD1cdB598Db4f9DEd94714": {
"balance": "0x193e5939a08ce9dbd480000000"
}
},
"baseFeePerGas": "0x5d21dba00",
"coinbase": "0x0000000000000000000000000000000000000000",
"config": {
"arrowGlacierBlock": 0,
"berlinBlock": 0,
"blobSchedule": {
"cancun": {
"baseFeeUpdateFraction": 3338477,
"max": 6,
"target": 3
}
},
"byzantiumBlock": 0,
"cancunTime": 0,
"chainId": 96369,
"constantinopleBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"evmTimestamp": 0,
"feeConfig": {
"baseFeeChangeDenominator": 36,
"blockGasCostStep": 200000,
"gasLimit": 12000000,
"maxBlockGasCost": 1000000,
"minBaseFee": 25000000000,
"minBlockGasCost": 0,
"targetBlockRate": 2,
"targetGas": 500000000
},
"grayGlacierBlock": 0,
"homesteadBlock": 0,
"istanbulBlock": 0,
"londonBlock": 0,
"mergeNetsplitBlock": 0,
"muirGlacierBlock": 0,
"petersburgBlock": 0,
"shanghaiTime": 0,
"terminalTotalDifficulty": 0,
"warpConfig": {
"blockTimestamp": 1730446786,
"quorumNumerator": 67,
"requirePrimaryNetworkSigners": false
}
},
"difficulty": "0x0",
"extraData": "0x",
"gasLimit": "0xb71b00",
"gasUsed": "0x0",
"genesisHash": "0x3f4fa2a0b0ce089f52bf0ae9199c75ffdd76ecafc987794050cb0d286f1ec61e",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0",
"number": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"skipPostMergeFields": true,
"stateRoot": "0x2d1cedac263020c5c56ef962f6abe0da1f5217bdc6468f8c9258a0ea23699e80",
"timestamp": "0x672485c2"
}
+27 -10
View File
@@ -12,39 +12,56 @@
"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": 60000000,
"targetGas": 500000000,
"baseFeeChangeDenominator": 36,
"minBlockGasCost": 0,
"maxBlockGasCost": 1000000,
"blockGasCostStep": 200000
},
"warpConfig": {
"blockTimestamp": 1750805381,
"quorumNumerator": 67
"blockTimestamp": 1730446786,
"quorumNumerator": 67,
"requirePrimaryNetworkSigners": false
}
},
"nonce": "0x0",
"timestamp": "0x685b2b85",
"timestamp": "0x672485c2",
"extraData": "0x",
"gasLimit": "0xb71b00",
"difficulty": "0x0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"0200000000000000000000000000000000000005": {
"balance": "0x0",
"code": "0x01",
"nonce": "0x1"
},
"0x9011E888251AB053B7bD1cdB598Db4f9DEd94714": {
"balance": "0x193e5939a08ce9dbd480000000"
}
},
"airdropHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"airdropAmount": null,
"baseFeePerGas": "0x5d21dba00",
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"baseFeePerGas": null,
"excessBlobGas": null,
"blobGasUsed": null
}
"skipPostMergeFields": true
}
+18 -18
View File
@@ -9,36 +9,36 @@
},
"precompileUpgrades": [
{"warpConfig": {"blockTimestamp": 0, "quorumNumerator": 67, "requirePrimaryNetworkSigners": true}},
{"aiMiningConfig": {"blockTimestamp": 0}},
{"blake3Config": {"blockTimestamp": 0}},
{"cggmp21Verify": {"blockTimestamp": 0}},
{"deadZeroConfig": {"blockTimestamp": 0}},
{"deadConfig": {"blockTimestamp": 0}},
{"deadFullConfig": {"blockTimestamp": 0}},
{"aiMiningConfig": {"blockTimestamp": 1766708400}},
{"blake3Config": {"blockTimestamp": 1766708400}},
{"cggmp21Verify": {"blockTimestamp": 1766708400}},
{"deadZeroConfig": {"blockTimestamp": 1766708400}},
{"deadConfig": {"blockTimestamp": 1766708400}},
{"deadFullConfig": {"blockTimestamp": 1766708400}},
{"dexConfig": {
"blockTimestamp": 0,
"blockTimestamp": 1766708400,
"protocolFeeController": "0x9011E888251AB053B7bD1cdB598Db4f9DEd94714",
"maxPools": 10000,
"enableFlashLoans": true,
"enableHooks": true
}},
{"routerConfig": {
"blockTimestamp": 0,
"blockTimestamp": 1766708400,
"v3QuoterAddress": "0x0000000000000000000000000000000000000000",
"v3FactoryAddress": "0x0000000000000000000000000000000000000000",
"v2RouterAddress": "0x0000000000000000000000000000000000000000",
"v2FactoryAddress": "0x0000000000000000000000000000000000000000"
}},
{"fheConfig": {"blockTimestamp": 0}},
{"frostVerify": {"blockTimestamp": 0}},
{"graphConfig": {"blockTimestamp": 0}},
{"hpkeConfig": {"blockTimestamp": 0}},
{"mldsaVerify": {"blockTimestamp": 0}},
{"mlkemConfig": {"blockTimestamp": 0}},
{"pqcryptoConfig": {"blockTimestamp": 0}},
{"ringConfig": {"blockTimestamp": 0}},
{"slhdsaVerify": {"blockTimestamp": 0}},
{"zkConfig": {"blockTimestamp": 0}},
{"fheConfig": {"blockTimestamp": 1766708400}},
{"frostVerify": {"blockTimestamp": 1766708400}},
{"graphConfig": {"blockTimestamp": 1766708400}},
{"hpkeConfig": {"blockTimestamp": 1766708400}},
{"mldsaVerify": {"blockTimestamp": 1766708400}},
{"mlkemConfig": {"blockTimestamp": 1766708400}},
{"pqcryptoConfig": {"blockTimestamp": 1766708400}},
{"ringConfig": {"blockTimestamp": 1766708400}},
{"slhdsaVerify": {"blockTimestamp": 1766708400}},
{"zkConfig": {"blockTimestamp": 1766708400}},
{"feeManagerConfig": {
"blockTimestamp": 900000000,
"adminAddresses": ["0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC"],