diff --git a/scripts/build/build.mk b/scripts/build/build.mk index 5bf479d98933..72683022f398 100644 --- a/scripts/build/build.mk +++ b/scripts/build/build.mk @@ -14,8 +14,6 @@ DOCKER := $(shell which docker) PROJECT_NAME = $(shell git remote get-url origin | xargs basename -s .git) COSMOS_BUILD_OPTIONS += ' v2' -rocksdb_version=v9.7.3 - ifeq ($(findstring .,$(VERSION)),) VERSION := 0.0.0 endif diff --git a/scripts/go-lint-all.bash b/scripts/go-lint-all.bash index f643cc56aa46..2aea59dcd1a8 100755 --- a/scripts/go-lint-all.bash +++ b/scripts/go-lint-all.bash @@ -2,13 +2,10 @@ set -e -REPO_ROOT="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/.." &> /dev/null && pwd )" +REPO_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." &>/dev/null && pwd)" export REPO_ROOT LINT_TAGS="e2e,ledger,test_ledger_mock" -if [[ ! -z "${ROCKSDB:-}" ]]; then - LINT_TAGS+=",rocksdb" -fi export LINT_TAGS lint_module() { @@ -53,4 +50,4 @@ else echo "linting github.com/cosmos/cosmos-sdk [$(date -Iseconds -u)]" golangci-lint run ./... -c "${REPO_ROOT}/.golangci.yml" "$@" --build-tags=${LINT_TAGS} fi -fi \ No newline at end of file +fi diff --git a/server/v2/store/commands.go b/server/v2/store/commands.go index efb6b9b7b66b..3ebe6e6ecba6 100644 --- a/server/v2/store/commands.go +++ b/server/v2/store/commands.go @@ -26,8 +26,8 @@ The pruning option is provided via the 'pruning' argument or alternatively with - custom: allow pruning options to be manually specified through 'pruning-keep-recent' Note: When the --app-db-backend flag is not specified, the default backend type is 'goleveldb'. -Supported app-db-backend types include 'goleveldb', 'rocksdb', 'pebbledb'.`, - Example: fmt.Sprintf("%s prune custom --pruning-keep-recent 100 --app-db-backend 'goleveldb'", ""), +Supported app-db-backend types include 'goleveldb', 'pebbledb'.`, + Example: " prune custom --pruning-keep-recent 100 --app-db-backend 'goleveldb'", Args: cobra.RangeArgs(0, 1), RunE: func(cmd *cobra.Command, args []string) error { // bind flags to the Context's Viper so we can get pruning options. diff --git a/server/v2/testdata/config.toml b/server/v2/testdata/config.toml index d42fa7f98d3c..0d4d4a0939d2 100644 --- a/server/v2/testdata/config.toml +++ b/server/v2/testdata/config.toml @@ -21,25 +21,13 @@ proxy_app = "tcp://127.0.0.1:26658" # A custom human readable name for this node moniker = "aurn-node" -# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# Database backend: goleveldb | pebbledb # * goleveldb (github.com/syndtr/goleveldb - most popular implementation) # - pure go # - stable -# * cleveldb (uses levigo wrapper) -# - fast -# - requires gcc -# - use cleveldb build tag (go build -tags cleveldb) -# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) -# - EXPERIMENTAL -# - may be faster is some use-cases (random reads - indexer) -# - use boltdb build tag (go build -tags boltdb) -# * rocksdb (uses github.com/tecbot/gorocksdb) -# - EXPERIMENTAL -# - requires gcc -# - use rocksdb build tag (go build -tags rocksdb) -# * badgerdb (uses github.com/dgraph-io/badger) -# - EXPERIMENTAL -# - use badgerdb build tag (go build -tags badgerdb) +# * pebbledb (uses github.com/cockroachdb/pebble) +# - stable +# - pure go db_backend = "goleveldb" # Database directory diff --git a/store/v2/CHANGELOG.md b/store/v2/CHANGELOG.md index ccc53fee4ded..82c6488d3709 100644 --- a/store/v2/CHANGELOG.md +++ b/store/v2/CHANGELOG.md @@ -25,6 +25,10 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] +### API Breaking + +* [#23157](https://github.com/cosmos/cosmos-sdk/pull/23157) Remove support for RocksDB. + ## [v2.0.0-beta.1](https://github.com/cosmos/cosmos-sdk/releases/tag/store/v2.0.0-beta.1) Initial tag of `cosmossdk.io/store/v2`.