-
Notifications
You must be signed in to change notification settings - Fork 21.1k
params: Config2 #32224
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
Draft
fjl
wants to merge
32
commits into
ethereum:master
Choose a base branch
from
fjl:config2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
params: Config2 #32224
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
8cc54f2
params: WIP config2
fjl cab21e0
params: update
fjl 9268b84
consensus/misc/eip4844: port to config2
fjl d0a36a3
consensus/misc/eip1559: port to config2
fjl 46adeca
consensus/misc: update DAO fork for config2
fjl 3f128f6
consensus/ethash: port to config2
fjl f79354d
consensus/beacon: port to config2
fjl 8725dec
params: add BigInt to TerminalTotalDifficulty
fjl 31b6360
consensus: update for config2
fjl 74f62ce
params/forks: add After
fjl e3725af
params/presets: add TestChainConfig
fjl fcf3b43
core/types: port to config2
fjl 6b26791
core/rawdb: port to config2
fjl b25e44a
params: new param system
fjl 73710ff
params: move some code around
fjl c284949
params/presets: update for new system
fjl ca4ba1f
params: add SetParam
fjl 2a6cf8b
consensus/misc/eip4844: update
fjl d031689
consensus/misc/eip1559: update
fjl 3e675b1
consensus/misc: update
fjl c1954d2
consensus/beacon: update
fjl 8da6d37
params: new fork & parameter registry
fjl 57c395f
core/types: fix parameter access
fjl 13d14f5
params: add validation tests and remove LatestFork
fjl cf8af42
params: add DependencyOrder function
fjl 336a2da
params: fix param value decoding
fjl 7b5c169
params: add tests for blobschedule validation
fjl 11ac2cc
consensus/misc/eip4844: make it work
fjl ee78ae4
params: add Defined
fjl 0101ffe
core/vm: port to config2
fjl 1a63295
params: add Rules2 (WIP)
fjl 2157877
consensus/clique: partial port to config2
fjl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2025 The go-ethereum Authors | ||
// This file is part of the go-ethereum library. | ||
// | ||
// The go-ethereum library is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Lesser General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// The go-ethereum library is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
package clique | ||
|
||
import "github.com/ethereum/go-ethereum/params" | ||
|
||
var ConfigParam = params.Define(params.T[Config]{ | ||
Name: "clique", | ||
Optional: true, // optional says | ||
Default: Config{}, | ||
}) | ||
|
||
// Config is the consensus engine configs for proof-of-authority based sealing. | ||
type Config struct { | ||
Period uint64 `json:"period"` // Number of seconds between blocks to enforce | ||
Epoch uint64 `json:"epoch"` // Epoch length to reset votes and checkpoint | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing part of the comment here?