Skip to content

Commit

Permalink
Merge pull request #72 from junnmm/merge-upstream-v1.10.19
Browse files Browse the repository at this point in the history
Merge upstream v1.10.19
  • Loading branch information
viaweb3 authored Feb 19, 2023
2 parents 0d94002 + e1b510f commit 059665c
Show file tree
Hide file tree
Showing 512 changed files with 131,377 additions and 153,828 deletions.
5 changes: 3 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ consensus @karalabe
core/ @karalabe @holiman @rjl493456442
eth/ @karalabe @holiman @rjl493456442
eth/catalyst/ @gballet
graphql/ @gballet
eth/tracers/ @s1na
graphql/ @gballet @s1na
les/ @zsfelfoldi @rjl493456442
light/ @zsfelfoldi @rjl493456442
mobile/ @karalabe @ligi
node/ @fjl @renaynay
node/ @fjl
p2p/ @fjl @zsfelfoldi
rpc/ @fjl @holiman
p2p/simulations @fjl
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
name: hive
run-name: hive simulations
on:
workflow_dispatch:
inputs:
hive_extra_flags:
description: Extra flags passed to hive
required: false
default: ""
type: string
pull_request:
env:
HIVE_REPO: kcc-community/hive
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/hive_ts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

name: hive-trouble-shooting
run-name: hive simulations (manually)
on:
workflow_dispatch:
inputs:
hive_extra_flags:
description: Extra flags passed to hive
required: false
default: ""
type: string
env:
HIVE_REPO: kcc-community/hive
jobs:
hive-smoke-tests:
runs-on: ubuntu-latest
steps:
- name: checkout kcc's repo into kcc/
uses: actions/checkout@v3
with:
path: kcc
- name: checkout hive's repo into hive/
uses: actions/checkout@v3
with:
path: hive
repository: ${{ env.HIVE_REPO }}
ref: master
- name: Install golang
uses: actions/setup-go@v3
with:
go-version: '>=1.18.0'
- name: build kcc docker image
run: cd $GITHUB_WORKSPACE/kcc && docker build -t kucoincommunitychain/kcc:latest .
- name: build hive
run: cd $GITHUB_WORKSPACE/hive && go build -v .
- name: run smoke simulator
run: |
cd $GITHUB_WORKSPACE/hive && ./hive --panic --client kcc_latest --sim 'kcc/(smoke|gas-block-limit)' \
${{ inputs.hive_extra_flags }}
51 changes: 36 additions & 15 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,53 @@ linters:
- govet
- ineffassign
- misspell
# - staticcheck
- unconvert
# - unused
- varcheck
- typecheck
- unused
- staticcheck
- bidichk
- durationcheck
- exportloopref
- gosec

#- structcheck # lots of false positives
#- errcheck #lot of false positives
# - contextcheck
# - errchkjson # lots of false positives
# - errorlint # this check crashes
# - exhaustive # silly check
# - makezero # false positives
# - nilerr # several intentional

linters-settings:
gofmt:
simplify: true
goconst:
min-len: 3 # minimum length of string constant
min-occurrences: 6 # minimum number of occurrences
gosec:
excludes:
- G404 # Use of weak random number generator - lots of FP
- G107 # Potential http request -- those are intentional
- G306 # G306: Expect WriteFile permissions to be 0600 or less

issues:
exclude-rules:
- path: crypto/blake2b/
linters:
- deadcode
- path: crypto/bn256/cloudflare
linters:
- deadcode
- path: p2p/discv5/
linters:
- deadcode
- path: core/vm/instructions_test.go
linters:
- goconst
- path: cmd/faucet/
- path: crypto/bn256/cloudflare/optate.go
linters:
- deadcode
- staticcheck
- path: internal/build/pgp.go
text: 'SA1019: package golang.org/x/crypto/openpgp is deprecated'
- path: core/vm/contracts.go
text: 'SA1019: package golang.org/x/crypto/ripemd160 is deprecated'
- path: accounts/usbwallet/trezor.go
text: 'SA1019: package github.com/golang/protobuf/proto is deprecated'
- path: accounts/usbwallet/trezor/
text: 'SA1019: package github.com/golang/protobuf/proto is deprecated'
exclude:
- 'SA1019: event.TypeMux is deprecated: use Feed'
- 'SA1019: strings.Title is deprecated'
- 'SA1029: should not use built-in type string as key for value'
- 'G306: Expect WriteFile permissions to be 0600 or less'
Loading

0 comments on commit 059665c

Please sign in to comment.