go-ethereum/params
Daniel Liu ed95075f03
fix(params): accept legacy foudationwalletaddr in chain config, fix #2063 (#2141)
Add backward-compatible XDPoSConfig JSON decoding for the legacy key
"foudationWalletAddr" introduced before PR #2063 renamed it to
"foundationWalletAddr".

Without this compatibility layer, old on-disk chain configs are decoded with a
zero FoundationWalletAddr, causing XDPoSConfigEqual mismatch and startup rewind
("mismatching XDPoS not equal in database").

This patch:
- Implements custom UnmarshalJSON for XDPoSConfig that reads both keys.
- Prefers foundationWalletAddr when both keys are present.
- Keeps existing behavior for all other fields.
- Adds regression tests for legacy-key decoding and precedence.

Validation:
- go test ./params/...
2026-03-07 06:37:24 +08:00
..
bootnodes.go cicd, params: update bootnodes for testnet (#1110) 2025-06-17 13:35:28 +08:00
config.go fix(params): accept legacy foudationwalletaddr in chain config, fix #2063 (#2141) 2026-03-07 06:37:24 +08:00
config_test.go fix(params): accept legacy foudationwalletaddr in chain config, fix #2063 (#2141) 2026-03-07 06:37:24 +08:00
dao.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
denomination.go eth/gasprice: lighter gas price oracle for light client (#20409) 2024-06-20 15:52:32 +08:00
gas_table.go FIx Bad block error. 2021-09-17 17:59:06 +05:30
network_params.go core, eth, params: make indexer configurable (#17188) 2025-03-10 15:41:53 +08:00
protocol_params.go feat(core): implement EIP-2935 #29465 #30924 (#2033) 2026-02-12 09:01:26 +05:30