From 3d4052fa50892e21f6409e606f7253daabfcb3e3 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Thu, 15 Jun 2023 17:02:21 +0800 Subject: [PATCH 1/5] remove depguard from gaia, bump golangci-lint --- .golangci.yml | 15 +++++++-------- Makefile | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 9b6e8ad4719..985731ce030 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,7 +6,6 @@ run: linters: disable-all: true enable: - - depguard - dogsled - errcheck - exportloopref @@ -31,25 +30,25 @@ linters: issues: exclude-rules: - - text: "Use of weak random number generator" + - text: 'Use of weak random number generator' linters: - gosec - - text: "comment on exported var" + - text: 'comment on exported var' linters: - golint - text: "don't use an underscore in package name" linters: - golint - - text: "ST1003:" + - text: 'ST1003:' linters: - stylecheck # FIXME: Disabled until golangci-lint updates stylecheck with this fix: # https://github.com/dominikh/go-tools/issues/389 - - text: "ST1016:" + - text: 'ST1016:' linters: - stylecheck - - path: "migrations" - text: "SA1019:" + - path: 'migrations' + text: 'SA1019:' linters: - staticcheck @@ -94,4 +93,4 @@ linters-settings: - name: empty-block - name: superfluous-else - name: unreachable-code - - name: redefines-builtin-id \ No newline at end of file + - name: redefines-builtin-id diff --git a/Makefile b/Makefile index 7a46418c1c7..98080ffc0ae 100644 --- a/Makefile +++ b/Makefile @@ -242,7 +242,7 @@ docker-build-all: docker-build-debug docker-build-hermes ### Linting ### ############################################################################### golangci_lint_cmd=golangci-lint -golangci_version=v1.52.2 +golangci_version=v1.53.1 lint: @echo "--> Running linter" From e97d2f2c32b0a06759689bf9259d580cb8d1a3c4 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Fri, 16 Jun 2023 15:10:41 +0800 Subject: [PATCH 2/5] use the actual latest version of golangci-lint --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 98080ffc0ae..b71a648a5b8 100644 --- a/Makefile +++ b/Makefile @@ -242,7 +242,7 @@ docker-build-all: docker-build-debug docker-build-hermes ### Linting ### ############################################################################### golangci_lint_cmd=golangci-lint -golangci_version=v1.53.1 +golangci_version=v1.53.2 lint: @echo "--> Running linter" From 2ad409c067d8f917c469375f46d05cbc0dad4210 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Fri, 16 Jun 2023 15:19:57 +0800 Subject: [PATCH 3/5] update state sync script to use sg1 cached endpoint --- contrib/statesync.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/statesync.bash b/contrib/statesync.bash index 634c5696a49..5e4d6d4a666 100644 --- a/contrib/statesync.bash +++ b/contrib/statesync.bash @@ -51,7 +51,7 @@ echo "trust_hash: $TRUST_HASH" # Export state sync variables. export GAIAD_STATESYNC_ENABLE=true export GAIAD_P2P_MAX_NUM_OUTBOUND_PEERS=200 -export GAIAD_STATESYNC_RPC_SERVERS="https://cosmos-rpc.polkachu.com:443,https://rpc-cosmoshub-ia.cosmosia.notional.ventures:443" +export GAIAD_STATESYNC_RPC_SERVERS="https://cached-rpc-cosmos.sg1.online/:443,https://cached-rpc-cosmos.sg1.online:443" export GAIAD_STATESYNC_TRUST_HEIGHT=$BLOCK_HEIGHT export GAIAD_STATESYNC_TRUST_HASH=$TRUST_HASH From 35c1733611817d8ea7deb5ee571ec3137d3549aa Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Sun, 9 Jul 2023 22:45:01 +0800 Subject: [PATCH 4/5] use 1.53.3 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ca02c21f3f9..d3fc89e4a37 100644 --- a/Makefile +++ b/Makefile @@ -242,7 +242,7 @@ docker-build-all: docker-build-debug docker-build-hermes ### Linting ### ############################################################################### golangci_lint_cmd=golangci-lint -golangci_version=v1.53.2 +golangci_version=v1.53.3 lint: @echo "--> Running linter" From 4426bafb36bed050c2af2b5018f7077238f0be3b Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Sun, 9 Jul 2023 22:46:07 +0800 Subject: [PATCH 5/5] revert changes to statesync script --- contrib/statesync.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/statesync.bash b/contrib/statesync.bash index 5e4d6d4a666..634c5696a49 100644 --- a/contrib/statesync.bash +++ b/contrib/statesync.bash @@ -51,7 +51,7 @@ echo "trust_hash: $TRUST_HASH" # Export state sync variables. export GAIAD_STATESYNC_ENABLE=true export GAIAD_P2P_MAX_NUM_OUTBOUND_PEERS=200 -export GAIAD_STATESYNC_RPC_SERVERS="https://cached-rpc-cosmos.sg1.online/:443,https://cached-rpc-cosmos.sg1.online:443" +export GAIAD_STATESYNC_RPC_SERVERS="https://cosmos-rpc.polkachu.com:443,https://rpc-cosmoshub-ia.cosmosia.notional.ventures:443" export GAIAD_STATESYNC_TRUST_HEIGHT=$BLOCK_HEIGHT export GAIAD_STATESYNC_TRUST_HASH=$TRUST_HASH