Skip to content

Commit 4474281

Browse files
authored
chore: backport remove genesis persistence from state (#1969)
This avoids saving the genesisDoc to database. When using goleveldb and ~4GiB+ genesis files, it causes a panic during snappy encoding (panic: snappy: decoded block is too large).
1 parent 27b4e67 commit 4474281

File tree

24 files changed

+386
-142
lines changed

24 files changed

+386
-142
lines changed

.golangci.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@ issues:
22
exclude:
33
- comment on exported (method|function|type|const|var)
44
exclude-use-default: true
5-
6-
# Skip generated k8s code
7-
run:
8-
skip-dirs:
9-
- pkg/client
5+
exclude-dirs:
106
- ".*/mocks"
11-
127
# Skip vendor/ etc
138
skip-dirs-use-default: true
9+
linters:
10+
disable-all: true
11+
enable:
12+
- misspell
13+
- unused
14+
- gofmt
15+
- gocritic
16+
- goconst
17+
- ineffassign
18+
- unparam
19+
- staticcheck
20+
- prealloc

.goreleaser-docker.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
version: 2
13
project_name: node
24
env:
35
- GO111MODULE=on
@@ -75,4 +77,3 @@ dockers:
7577

7678
archives:
7779
- format: binary
78-
rlcp: true

.goreleaser.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
version: 2
13
project_name: node
24
dist: ./.cache/goreleaser
35
env:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include make/init.mk
1212

1313
DOCKER_RUN := docker run --rm -v $(shell pwd):/workspace -w /workspace
1414
GOLANGCI_LINT_RUN := $(GOLANGCI_LINT) run
15-
LINT = $(GOLANGCI_LINT_RUN) ./... --disable-all --deadline=5m --enable
15+
LINT = $(GOLANGCI_LINT_RUN) ./... --disable-all --timeout=5m --enable
1616

1717
GORELEASER_CONFIG ?= .goreleaser.yaml
1818

go.mod

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module github.com/akash-network/node
22

3-
go 1.21
3+
go 1.22.0
4+
5+
toolchain go1.23.6
46

57
require (
6-
github.com/akash-network/akash-api v0.0.67
8+
github.com/akash-network/akash-api v0.0.73
79
github.com/blang/semver/v4 v4.0.0
810
github.com/boz/go-lifecycle v0.1.1
911
github.com/cosmos/cosmos-sdk v0.45.16
@@ -39,6 +41,7 @@ require (
3941
)
4042

4143
retract (
44+
v0.36.3-rc4
4245
v0.34.0
4346
v0.28.1
4447
v0.28.0
@@ -49,6 +52,7 @@ retract (
4952
replace (
5053
// use cosmos fork of keyring
5154
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
55+
github.com/cosmos/cosmos-sdk => github.com/akash-network/cosmos-sdk v0.45.16-akash.1
5256

5357
// use akash version of cosmos ledger api
5458
github.com/cosmos/ledger-cosmos-go => github.com/akash-network/ledger-go/cosmos v0.14.4
@@ -63,7 +67,8 @@ replace (
6367
// To be replaced by cosmos/gogoproto in future versions
6468
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
6569
// use cometBFT system fork of tendermint with akash patches
66-
github.com/tendermint/tendermint => github.com/akash-network/cometbft v0.34.27-akash
70+
github.com/tendermint/tendermint => github.com/akash-network/cometbft v0.34.27-akash.2
71+
6772
github.com/zondax/hid => github.com/troian/hid v0.13.2
6873
github.com/zondax/ledger-go => github.com/akash-network/ledger-go v0.14.3
6974
// latest grpc doesn't work with with cosmos-sdk modified proto compiler, so we need to enforce
@@ -116,11 +121,12 @@ require (
116121
github.com/fatih/color v1.14.1 // indirect
117122
github.com/felixge/httpsnoop v1.0.4 // indirect
118123
github.com/fsnotify/fsnotify v1.7.0 // indirect
124+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
119125
github.com/getsentry/sentry-go v0.17.0 // indirect
120126
github.com/go-kit/kit v0.12.0 // indirect
121127
github.com/go-kit/log v0.2.1 // indirect
122128
github.com/go-logfmt/logfmt v0.5.1 // indirect
123-
github.com/go-logr/logr v1.4.1 // indirect
129+
github.com/go-logr/logr v1.4.2 // indirect
124130
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
125131
github.com/gogo/gateway v1.1.0 // indirect
126132
github.com/golang/protobuf v1.5.4 // indirect
@@ -167,7 +173,7 @@ require (
167173
github.com/prometheus/procfs v0.10.1 // indirect
168174
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
169175
github.com/rivo/uniseg v0.2.0 // indirect
170-
github.com/rogpeppe/go-internal v1.10.0 // indirect
176+
github.com/rogpeppe/go-internal v1.12.0 // indirect
171177
github.com/rs/cors v1.8.2 // indirect
172178
github.com/russross/blackfriday/v2 v2.1.0 // indirect
173179
github.com/sagikazarmark/locafero v0.4.0 // indirect
@@ -181,29 +187,30 @@ require (
181187
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
182188
github.com/tendermint/go-amino v0.16.0 // indirect
183189
github.com/tidwall/btree v1.5.0 // indirect
190+
github.com/x448/float16 v0.8.4 // indirect
184191
github.com/zondax/hid v0.9.1 // indirect
185192
github.com/zondax/ledger-go v0.14.1 // indirect
186193
go.etcd.io/bbolt v1.3.6 // indirect
187194
go.uber.org/atomic v1.10.0 // indirect
188195
go.uber.org/multierr v1.9.0 // indirect
189-
golang.org/x/crypto v0.22.0 // indirect
196+
golang.org/x/crypto v0.24.0 // indirect
190197
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
191-
golang.org/x/net v0.24.0 // indirect
192-
golang.org/x/sys v0.19.0 // indirect
193-
golang.org/x/term v0.19.0 // indirect
194-
golang.org/x/text v0.14.0 // indirect
198+
golang.org/x/net v0.26.0 // indirect
199+
golang.org/x/sys v0.21.0 // indirect
200+
golang.org/x/term v0.21.0 // indirect
201+
golang.org/x/text v0.16.0 // indirect
195202
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect
196203
google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2 // indirect
197204
google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
198-
google.golang.org/protobuf v1.33.0 // indirect
205+
google.golang.org/protobuf v1.34.2 // indirect
199206
gopkg.in/inf.v0 v0.9.1 // indirect
200207
gopkg.in/ini.v1 v1.67.0 // indirect
201208
gopkg.in/yaml.v2 v2.4.0 // indirect
202-
k8s.io/api v0.26.1 // indirect
203-
k8s.io/apimachinery v0.26.1 // indirect
204-
k8s.io/klog/v2 v2.80.1 // indirect
205-
k8s.io/utils v0.0.0-20221107191617-1a15be271d1d // indirect
209+
k8s.io/api v0.31.5 // indirect
210+
k8s.io/apimachinery v0.31.5 // indirect
211+
k8s.io/klog/v2 v2.130.1 // indirect
212+
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
206213
nhooyr.io/websocket v1.8.6 // indirect
207-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
208-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
214+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
215+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
209216
)

0 commit comments

Comments
 (0)