forked from 0xPolygon/polygon-edge
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hardfork] Add a new pos hard fork detroit (#252)
# Description The PR merges detroit hard fork back to `dev` branch. The hard fork is well tested in `DevNet`, and time to bump another release for the whole `MainNet` network. # Changes include - [x] New feature (non-breaking change that adds functionality) - [x] Breaking change (change that is not backwards-compatible and/or changes current functionality) # Breaking changes Nodes should upgrade to the current version, and update its `genesis.json` to accept the new `detroit` hard fork. Otherwise, its block syncing would stop. ## Testing - [x] I have tested this code with the official test suite # Documentation update The documentation would be updated when new version bumped. Co-authored-by: 0xcb9ff9 <[email protected]> Co-authored-by: 0xcb9ff9 <[email protected]> Co-authored-by: abrahamcruise321 <[email protected]>
- Loading branch information
1 parent
a977703
commit 4205200
Showing
92 changed files
with
3,743 additions
and
1,226 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,34 +1,65 @@ | ||
run: | ||
timeout: 3m | ||
tests: true | ||
# default is true. Enables skipping of directories: | ||
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
skip-dirs-use-default: true | ||
|
||
service: | ||
golangci-lint-version: 1.49.0 | ||
|
||
linters: | ||
# default false | ||
disable-all: true | ||
# Enable specific linter | ||
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters | ||
enable: | ||
- dogsled | ||
- dupl | ||
- errname | ||
- errorlint | ||
- forcetypeassert | ||
- goconst | ||
- gofmt | ||
- gosec | ||
- importas | ||
- lll | ||
- makezero | ||
- misspell | ||
- nlreturn | ||
- nolintlint | ||
- prealloc | ||
- predeclared | ||
- stylecheck | ||
- thelper | ||
- tparallel | ||
- unconvert | ||
- wastedassign | ||
- whitespace | ||
- wsl | ||
- dogsled # Checks assignments with too many blank identifiers (e.g. x, , , _, := f()) | ||
- dupl # Code clone detection | ||
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error | ||
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13 | ||
- forcetypeassert # Finds forced type assertions | ||
- goconst # Repeated strings that could be replaced by a constant | ||
- gofmt # Whether the code was gofmt-ed | ||
- goimports # Unused imports | ||
- gosec # Security problems | ||
- importas # Enforces consistent import aliases | ||
- lll # Long lines | ||
- makezero # Finds slice declarations with non-zero initial length | ||
- misspell # Misspelled English words in comments | ||
- nlreturn # Checks for a new line before return and branch statements to increase code clarity | ||
- nolintlint # Ill-formed or insufficient nolint directives | ||
- prealloc # Finds slice declarations that could | ||
- predeclared # Finds code that shadows one of Go's predeclared identifiers | ||
- stylecheck # Stylecheck is a replacement for golint | ||
- thelper # Detects golang test helpers without t.Helper() call and checks the consistency of test helpers | ||
- tparallel # Detects inappropriate usage of t.Parallel() method in your Go test codes | ||
- unconvert # Unnecessary type conversions | ||
- wastedassign # Finds wasted assignment statements | ||
- whitespace # Tool for detection of leading and trailing whitespace | ||
- wsl # Forces you to use empty lines | ||
|
||
linters-settings: | ||
gofmt: | ||
simplify: true | ||
goconst: | ||
min-len: 3 | ||
min-occurrences: 3 | ||
|
||
issues: | ||
# new-from-rev: origin/dev # report only new issues with reference to dev branch | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- gosec | ||
- unparam | ||
- lll | ||
- linters: | ||
- staticcheck | ||
path: "state/runtime/precompiled/base.go" | ||
text: "SA1019:" | ||
include: | ||
- EXC0012 # Exported (.+) should have comment( \(or a comment on this block\))? or be unexported | ||
- EXC0013 # Package comment should be of the form "(.+)... | ||
- EXC0014 # Comment on exported (.+) should be of the form "(.+)..." | ||
- EXC0015 # Should have a package comment |
This file contains 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 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 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 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 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.