10 Commits
Author SHA1 Message Date
Hanzo AI 28e094732b canonical: drop SubnetEVMTimestamp alias — single evmTimestamp field
Lux EVM activation is gated by a single canonical chain config field:
  EVMTimestamp / json:'evmTimestamp'

The legacy 'SubnetEVMTimestamp' / 'subnetEVMTimestamp' field was a duplicate
alias for the same activation. Removed:
  - geth/params/config.go: ChainConfig.SubnetEVMTimestamp field
  - geth/params/config.go: IsEVM() now checks EVMTimestamp only
  - geth/params/config.go: isLuxL2Chain check uses EVMTimestamp only
  - all genesis JSON configs (mainnet/testnet/devnet × all chains)
  - all helm chart genesis files (charts/lux/genesis/*.json)
  - all docs (LLM.md, *.mdx)

One field, one way.
2026-05-05 21:30:05 -07:00
Zach Kelling e563572e63 chore: remove deprecated migration code, use admin API
Removed:
- eth/api_migrate.go - replaced by admin_exportChain/admin_importChain
- core/replay/ - unused replay infrastructure
- core/types/quantum_block.go - experimental, unused
- cmd/dump_subnetevm_state/ - obsolete export tool
- cmd/export_subnetevm_blocks/ - obsolete export tool
- cmd/rlpverify/ - debugging tool
- test_*.go, verify_hash.go - temp debugging scripts

The standard admin API (admin_exportChain, admin_importChain) provides:
- Cryptographic validation (parent hash chain, state roots)
- RLP format with optional gzip compression
- Same interface used by EVM and coreth via luxfi/geth
2025-12-16 11:31:45 -08:00
Zach Kelling a149dfd4ff feat(migrate): cross-VM block replay API for disaster recovery
Adds migrate_replayBlocks RPC for importing blocks from SubnetEVM to geth:
- Re-executes transactions with geth's EVM
- Creates new blocks with geth's computed state roots
- Handles trie encoding differences between VMs
- Persists migration state for resumable imports
- Supports both Zoo and Lux block formats

Also includes:
- ResetWithGenesisBlock for chain reinitialization
- Lux/Zoo mainnet chain configs
- EIP-1559 base fee validation bypass for migration
- Block validator adjustments for cross-VM compatibility
2025-12-16 11:11:35 -08:00
Zach Kelling 7ba38fd20e docs(LLM.md): comprehensive RLP header format management documentation
Document the Lux C-chain header format system including:
- Format table (15-24 fields) with usage descriptions
- rlpFormat field tracking mechanism
- ExtDataHash value vs pointer type encoding differences
- Format detection logic for new headers
- Step-by-step guide for activating format upgrades
- Block import/export workflow
- Migration mode for disaster recovery
2025-12-15 06:03:32 -08:00
Zach Kelling e8d93c8a51 Externalize crypto to github.com/luxfi/crypto
- Add crypto wrapper functions in common/types.go:
  - CreateAddress, CreateAddress2, PubkeyToAddress
  - Keccak256, Keccak256Hash, HashData, NewKeccakState
  - KeccakState type alias
- Replace crypto.* calls with common.* across codebase
- Remove duplicate crypto implementations (blake2b, bn256, ecies,
  secp256r1, signify, pqcrypto, keccak, signatures)
- Type compatibility: common.Address = crypto.Address

All crypto functions now use external luxfi/crypto package.
2025-12-13 05:22:43 +00:00
Zach Kelling bb098a37d0 docs: update LLM.md with December 2025 upstream merge details 2025-12-12 16:41:11 -08:00
Hanzo Dev b025c9b6f7 fix: update import paths in bintrie_witness_test.go
Post-merge fix for verkle tree witness test file that was using
upstream go-ethereum imports instead of luxfi/geth paths.

Changes:
- Fixed 12 import paths from github.com/ethereum/go-ethereum to github.com/luxfi/geth
- Imports fixed: common, consensus/beacon, consensus/ethash, core/rawdb,
  core/state, core/tracing, core/types, core/vm, crypto, params, triedb
- Build now succeeds: go build ./core/...

Resolves compilation errors introduced in upstream merge 1cb1948ad.
2025-11-22 14:56:35 -08:00
Hanzo Dev 5578ed4b6a docs: update LLM.md with upstream merge details 2025-11-22 14:50:32 -08:00
Zach Kelling 2d004bafb9 test: fix test timeouts and achieve 100% core test pass rate
- Added short mode support for long tests
- Fixed goroutine leaks in snapshot generation
- Disabled sender cacher during tests
- Added proper test cleanup
- All core packages now pass with -short flag
2025-09-19 19:11:04 +00:00
Zach Kelling b8af46f4d5 Sync with evm v1.16.16 - Lux compatibility update 2025-08-18 17:47:27 +00:00