Refactor configuration by removing Pangaea network references - #5052
Refactor configuration by removing Pangaea network references#5052Frozen wants to merge 6 commits into
Conversation
|
@copilot remove reference github.com/harmony-one/harmony/cmd/config [github.com/harmony-one/harmony/cmd/config.test]cmd/config/flags_test.go:413:58: undefined: nodeconfig.Pangaea` |
... Updated in commit |
|
@copilot resolve the merge conflicts in this pull request |
Resolved the merge conflicts by merging |
|
@copilot resolve the merge conflicts in this pull request |
Resolved by merging the latest |
|
@copilot rebase on dev |
Rebased on |
|
@copilot fix error |
Fixed in |
|
@copilot fix error Error: vet: p2p/stream/protocols/sync/protocol_test.go:245:15: undefined: nodeconfig.Pangaea |
Fixed in |
This pull request removes all code, configuration, and references related to the "Pangaea" network from the codebase. This includes eliminating Pangaea from supported network types, bootnode and DNS configuration, sharding schedules, and genesis parameters. The changes help simplify the codebase by removing legacy support for a deprecated network.
The most important changes are:
Removal of Pangaea network support across the codebase:
internal/configs/sharding/pangaea.gofile, fully removing the Pangaea sharding schedule implementation.Pangaeanetwork type and all related logic from network type definitions, bootnode/DNS configuration, and chain config selection in files such asinternal/configs/node/config.go,internal/configs/node/network.go,internal/configs/bootnode/config.go, andinternal/configs/sharding/instance.go. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]cmd/config/flags.go,cmd/bootnode/main.go). [1] [2] [3]block/factory/factory.go,cmd/config/config.go,cmd/config/dumpdb.go,cmd/harmony/main.go,core/genesis.go). [1] [2] [3] [4] [5]Cleanup of legacy Pangaea-specific code:
core/blockchain_impl.go.These changes ensure that the codebase no longer contains any Pangaea-specific logic or configuration, reducing maintenance overhead and potential confusion.