Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor system contract upgrade. #422

Merged
merged 8 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
161 changes: 24 additions & 137 deletions core/system_contract_lookup.go

Large diffs are not rendered by default.

1,144 changes: 16 additions & 1,128 deletions core/systemcontracts/upgrade.go

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions erigon-lib/chain/chain_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,10 +703,11 @@ func (c *CliqueConfig) String() string {
}

type ParliaConfig struct {
DBPath string
InMemory bool
Period uint64 `json:"period"` // Number of seconds between blocks to enforce
Epoch uint64 `json:"epoch"` // Epoch length to update validatorSet
DBPath string
InMemory bool
Period uint64 `json:"period"` // Number of seconds between blocks to enforce
Epoch uint64 `json:"epoch"` // Epoch length to update validatorSet
BlockAlloc map[string]interface{} `json:"blockAlloc"` // For systemContract upgrade
}

// String implements the stringer interface, returning the consensus engine details.
Expand Down
178 changes: 177 additions & 1 deletion params/chainspecs/bsc.json

Large diffs are not rendered by default.

276 changes: 275 additions & 1 deletion params/chainspecs/chapel.json

Large diffs are not rendered by default.

Loading