mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
Bug fix (closure-swarm v1.28.15 boot blocker): PQ gate at plugin/evm/vm.go was setting vm.chainConfig.PQ BEFORE vm.chainConfig was assigned from g.Config — chainConfig was nil at that point, panic on dereference. Moved the gate AFTER assignment. Repro: fresh-PVC bootstrap with chain-config.json pq:true caused "runtime error: invalid memory address or nil pointer dereference" in the EVM ZAP plugin → C-Chain never bootstraps. Discovered during localnet 1337 bring-up against v1.28.15. Fix: move the gate to AFTER `vm.chainConfig = g.Config`. PQ profile is now correctly installed on a non-nil chainConfig. Added: - cmd/rlp-verify/main.go — decodes C-Chain RLP export, verifies genesis hash matches genesis JSON, each block's ParentHash chains cleanly. What admin.importChain does sans state execution; sufficient proof that an RLP+genesis pair is wireable to a luxd boot. Indirect dep bumps: - github.com/ChainSafe/go-schnorrkel v1.1.0 (sr25519Verify precompile) - github.com/cosmos/go-bip39 v1.0.0 (bridgeRegistrarConfig precompile) - github.com/luxfi/ai v0.1.0 (aiMiningConfig precompile) Build tag: drop `gpu` tag on darwin gpu_bridge.go (parallel/gpu is one concept; the darwin gpu bridge always compiles when cgo+darwin).