Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prototype a RocksDB-based storage backend #5425

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3845891
wip
ptrus Oct 30, 2023
498ba91
simplify iterator
ptrus Nov 2, 2023
44c2326
mkvs/rocksdb: split io and state tree
ptrus Nov 2, 2023
0fd7891
storage/rocksdb: coditionaly build rocksdb
ptrus Nov 2, 2023
bcaf6fa
oasis-core-dev/Dockerfile: install rocksdb
ptrus Nov 2, 2023
e37d95d
testing: use rocksdb everywhere
ptrus Nov 2, 2023
c279ddc
test build fixes
ptrus Nov 2, 2023
7084d83
storage/interop/protocol: use rocksdb backend
ptrus Nov 2, 2023
9d76990
Makefile: use all build tags in e2e coverage mode
ptrus Nov 2, 2023
c11839a
docker: fix build
ptrus Nov 2, 2023
c808f3a
debug/{dumpdb,storage}: support rocksdb backend
ptrus Nov 3, 2023
15bb10d
Don't harcdode badger in abci.ApplicationConfig
ptrus Nov 4, 2023
09107e8
docs: initial rocksdb build documentation
ptrus Nov 7, 2023
b29d88f
storage/rocksdb: ensure WriteBatch is destroyed
ptrus Nov 7, 2023
2d0787f
rocksdb: ensure read options are destroyed
ptrus Nov 7, 2023
a02efbf
rocksdb: use fixed fork
ptrus Nov 8, 2023
eb61f19
rocksdb: reuse flush options
ptrus Nov 8, 2023
1beb7b8
rocksdb: update used options
ptrus Nov 8, 2023
adc0cfa
rocksdb: minor fixes
ptrus Nov 8, 2023
40d90ad
rocksdb: bump version
ptrus Nov 9, 2023
556022e
rocksdb: wip stats code
ptrus Nov 9, 2023
21f5eff
rocksdb: separate CF for roots
ptrus Nov 9, 2023
7369a08
fix
ptrus Nov 9, 2023
840a6c0
rocksdb: use ptcmalloc in dockerfile
ptrus Nov 10, 2023
3e0d377
bump gorocksdb
ptrus Dec 5, 2023
a8bd21a
rocksdb: sync writes and additional checks
ptrus Dec 13, 2023
73a3afc
rocksdb: fix
ptrus Dec 19, 2023
fba7342
rocksdb: update to 8.8.1
ptrus Dec 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .buildkite/go/test_and_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,27 @@ download_artifact simple-keyvalue target/debug 755

export OASIS_TEST_RUNTIME_HOST_RUNTIME_PATH=$(pwd)/target/debug/simple-keyvalue

TAGS="jemalloc,rocksdb,grocksdb_clean_link"
#####################
# Test the Oasis node
#####################
pushd go
make generate
# We need to do multiple test passes for different parts to get correct coverage.
env -u GOPATH go test -race -coverprofile=../coverage-misc.txt -covermode=atomic -v \
env -u GOPATH go test -tags "${TAGS}" -race -coverprofile=../coverage-misc.txt -covermode=atomic -v \
$(go list ./... | \
grep -v github.com/oasisprotocol/oasis-core/go/oasis-node | \
grep -v github.com/oasisprotocol/oasis-core/go/genesis | \
grep -v github.com/oasisprotocol/oasis-core/go/storage/mkvs )
# Oasis node tests.
pushd oasis-node
env -u GOPATH go test -race -coverpkg ../... -coverprofile=../../coverage-oasis-node.txt -covermode=atomic -v ./...
env -u GOPATH go test -tags "${TAGS}" -race -coverpkg ../... -coverprofile=../../coverage-oasis-node.txt -covermode=atomic -v ./...
popd
pushd genesis
env -u GOPATH go test -race -coverpkg ../... -coverprofile=../../coverage-genesis.txt -covermode=atomic -v ./...
env -u GOPATH go test -tags "${TAGS}" -race -coverpkg ../... -coverprofile=../../coverage-genesis.txt -covermode=atomic -v ./...
popd
# MKVS tests.
pushd storage/mkvs
env -u GOPATH go test -race -coverpkg ./... -coverprofile=../../../coverage-mkvs.txt -covermode=atomic -v ./...
env -u GOPATH go test -tags "${TAGS}" -race -coverpkg ./... -coverprofile=../../../coverage-mkvs.txt -covermode=atomic -v ./...
popd
popd
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ updates:
# CometBFT is manualy kept up to date.
- dependency-name: github.com/cometbft/cometbft
- dependency-name: github.com/cometbft/cometbft-db
# RocksDB is manualy kept up to date.
- dependency-name: github.com/linxGnu/grocksdb

# Manage Rust pacakge versions.
- package-ecosystem: cargo
Expand Down
12 changes: 8 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ builds:
dir: go/
flags:
- -trimpath
# Build oasis-node with jemalloc tag (used by badgerdb).
# TODO: Use 'tags' attribute when GoReleaser is udpated to newer version:
# https://github.com/goreleaser/goreleaser/pull/2268
- -tags=jemalloc
tags:
# Build BadgerDB with jemalloc.
- jemalloc
# Build RocksDB storage backend.
- rocksdb
- grocksdb_clean_link
env:
- CGO_ENABLED=1
ldflags:
# NOTE: At the moment, GoReleaser produces different binaries when
# releases are built from different git paths, unless -buildid= is added
Expand Down
32 changes: 30 additions & 2 deletions docker/oasis-core-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ ARG GOIMPORTS_VERSION=v0.12.0
ARG RUST_NIGHTLY_VERSION=2023-01-16
ARG JEMALLOC_VERSION=5.2.1
ARG JEMALLOC_CHECKSUM=34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537f887f6
ARG ROCKSDB_VERSION=8.8.1
ARG ROCKSDB_CHECKSUM=056c7e21ad8ae36b026ac3b94b9d6e0fcc60e1d937fc80330921e4181be5c36e

# Legacy package versions (upgrade tests).
ARG LEGACY_GO_VERSION=1.20.2
Expand All @@ -32,7 +34,9 @@ RUN apt-get update -qq && apt-get upgrade -qq && apt-get install -qq \
python3-prometheus-client \
# for seccomp Go bindings support
libseccomp-dev \
bubblewrap && \
bubblewrap \
# Compression libs for RocksDB.
libsnappy-dev libbz2-dev liblz4-dev libzstd-dev && \
apt-get autoclean && apt-get autoremove && rm -rf /var/cache/apt/archives/* && \
# for linting Git commits
pip install gitlint
Expand Down Expand Up @@ -81,7 +85,7 @@ RUN wget https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \
go install mvdan.cc/gofumpt@${GOFUMPT_VERSION} && \
go install golang.org/x/tools/cmd/goimports@${GOIMPORTS_VERSION}

# Install jemalloc (used by BadgerDB).
# Install jemalloc for BadgerDB ('je_' API prefix).
RUN wget -O jemalloc.tar.bz2 \
https://github.com/jemalloc/jemalloc/releases/download/${JEMALLOC_VERSION}/jemalloc-${JEMALLOC_VERSION}.tar.bz2 && \
# Ensure checksum matches.
Expand All @@ -95,3 +99,27 @@ RUN wget -O jemalloc.tar.bz2 \
make && \
make install && \
cd .. && rm jemalloc.tar.bz2 && rm -rf jemalloc-${JEMALLOC_VERSION}

# Install RocksDB.
# https://github.com/facebook/rocksdb/blob/main/INSTALL.md
RUN wget -q https://github.com/facebook/rocksdb/archive/v${ROCKSDB_VERSION}.tar.gz && \
# Ensure checksum matches.
echo "${ROCKSDB_CHECKSUM} v${ROCKSDB_VERSION}.tar.gz" | sha256sum -c && \
tar -zxf v${ROCKSDB_VERSION}.tar.gz && \
cd rocksdb-${ROCKSDB_VERSION} && \
# In production it's recomended to use either tcmalloc or jemalloc instead of ptmalloc:
# https://blog.cloudflare.com/the-effect-of-switching-to-tcmalloc-on-rocksdb-memory-use/
# However RocksDB jemalloc requirement clashes with BadgerDB (RocksDB requires it without 'je_' prefix).
# Using tcmalloc next to badgerdb's jemalloc also causes problems. Therefore we default to ptmalloc for
# the docker container. If/when RocksDB becomes the prefered database, we should default to building
# BadgerDB without jemalloc and use tcmalloc/jemalloc here.
#
# Disable jemalloc as it is used by default if found on the system.
ROCKSDB_DISABLE_JEMALLOC=1 \
# For 64-bit x86 the `PORTABLE=haswell` is a reasonable compromise, which supports many or most
# of the available optimizations while still being compatible with most processors made since
# roughly 2013.
PORTABLE=haswell \
DEBUG_LEVEL=0 make -j4 shared_lib && \
make install-shared && ldconfig && \
cd .. && rm -rf v${ROCKSDB_VERSION}.tar.gz rocksdb-${ROCKSDB_VERSION}
28 changes: 28 additions & 0 deletions docs/development-setup/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,34 @@ Core:
(i.e. you can't use `./configure --prefix=$HOME/.local ...`) because upstream
authors [hardcode its path][jemalloc-hardcode-path]._

* (**OPTIONAL**) [rocksdb] (version 8.8.1)

# TODO: investigate clashing with jemalloc built above.
Alternatively set `OASIS_NO_ROCKSDB="1"` environment variable when building
`oasis-node` code, to build `oasis-node` without `rocksdb` support.

See official instructions on building `rocksdb` for your system: https://github.com/facebook/rocksdb/blob/main/INSTALL.md

Or use the following to build (non-portable) `rocksdb` on Ubuntu 22.04:
```
# Install prerequsites.
apt install libgflags-dev libsnappy-dev libbz2-dev liblz4-dev libzstd-dev
# Build RocksDB.
ROCKSDB_VERSION=8.8.1
ROCKSDB_CHECKSUM=056c7e21ad8ae36b026ac3b94b9d6e0fcc60e1d937fc80330921e4181be5c36e
pushd $(mktemp -d)
wget -O rocksdb.tar.gz \
https://github.com/facebook/rocksdb/archive/v${ROCKSDB_VERSION}.tar.gz
# Ensure checksum matches.
echo "${ROCKSDB_CHECKSUM} rocksdb.tar.gz" | sha256sum -c
tar -zxf rocksdb.tar.gz
cd rocksdb-${ROCKSDB_VERSION}
DEBUG_LEVEL=0 ROCKSDB_DISABLE_MALLOC_USABLE_SIZE=1 ROCKSDB_DISABLE_JEMALLOC=1 make -j4 shared_lib
sudo make install-shared
sudo ldconfig
popd
```

In the following instructions, the top-level directory is the directory
where the code has been checked out.

Expand Down
1 change: 1 addition & 0 deletions go/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ linters-settings:
- github.com/stretchr
- github.com/tidwall/btree
- github.com/tyler-smith/go-bip39
- github.com/linxGnu/grocksdb

linters:
disable-all: true
Expand Down
37 changes: 33 additions & 4 deletions go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,38 @@ ifneq ($(GOLDFLAGS),)
GO_EXTRA_FLAGS += -ldflags $(GOLDFLAGS)
endif

# Build code with jemalloc tag unless explicitly disabled (used by badgerdb).
# Initialize GO_TAGS variable to hold the build tags.
# TODO: actually only oasis-node needs to be built with these, other binaries not.
GO_TAGS :=

# Include jemalloc tag unless explicitly disabled (used by badgerdb).
ifneq ($(OASIS_BADGER_NO_JEMALLOC), 1)
GO_EXTRA_FLAGS += -tags jemalloc
ifneq ($(GO_TAGS),)
GO_TAGS := $(GO_TAGS),
endif
GO_TAGS := $(GO_TAGS)jemalloc
endif

# Include rocksdb tags unless explicitly disabled.
ifneq ($(OASIS_NO_ROCKSDB), 1)
ifneq ($(GO_TAGS),)
GO_TAGS := $(GO_TAGS),
endif
GO_TAGS := $(GO_TAGS)rocksdb,grocksdb_clean_link
endif

# Include e2ecoverage tag if configured.
ifeq ($(GO_BUILD_E2E_COVERAGE),1)
ifneq ($(GO_TAGS),)
GO_TAGS := $(GO_TAGS),
endif
GO_TAGS := $(GO_TAGS)e2ecoverage
endif

# If GO_TAGS is not empty, append it to GO_EXTRA_FLAGS.
ifneq ($(GO_TAGS),)
GO_EXTRA_FLAGS += -tags "$(GO_TAGS)"
GO_TEST_FLAGS += -tags "$(GO_TAGS)"
endif

# Set all target as the default target.
Expand All @@ -29,7 +58,7 @@ $(go-binaries):
@$(GO) build $(GOFLAGS) $(GO_EXTRA_FLAGS) -o ./$@/$(notdir $@) ./$@
ifeq ($(GO_BUILD_E2E_COVERAGE),1)
@$(ECHO) "$(MAGENTA)*** Building $@ with E2E coverage...$(OFF)"
@$(GO) test $(GOFLAGS) -c -tags e2ecoverage -covermode=atomic -coverpkg=./... -o ./$@/$(notdir $@).test ./$@
@$(GO) test $(GOFLAGS) -c $(GO_TEST_FLAGS) -covermode=atomic -coverpkg=./... -o ./$@/$(notdir $@).test ./$@
endif

build: $(go-binaries)
Expand Down Expand Up @@ -93,7 +122,7 @@ test: $(test-targets)
# Test without caching.
force-test:
@$(ECHO) "$(CYAN)*** Running Go unit tests in force mode...$(OFF)"
@$(MAKE) test GO_TEST_FLAGS=-count=1
@$(MAKE) test GO_TEST_FLAGS += -count=1

# Clean.
clean:
Expand Down
3 changes: 2 additions & 1 deletion go/consensus/cometbft/abci/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ func (s *applicationState) resetProposalIfChanged(h []byte) bool {
}

func (s *applicationState) updateMetrics() error {
var dbSize int64
var dbSize uint64
var err error
if dbSize, err = s.storage.NodeDB().Size(); err != nil {
s.logger.Error("Size",
Expand Down Expand Up @@ -638,6 +638,7 @@ func InitStateStorage(cfg *ApplicationConfig) (storage.LocalBackend, storage.Nod

switch cfg.StorageBackend {
case storageDB.BackendNameBadgerDB:
case storageDB.BackendNameRocksDB:
default:
return nil, nil, nil, fmt.Errorf("unsupported storage backend: %s", cfg.StorageBackend)
}
Expand Down
5 changes: 0 additions & 5 deletions go/consensus/cometbft/db/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ import (
"github.com/oasisprotocol/oasis-core/go/consensus/cometbft/db/badger"
)

// GetBackendName returns the currently configured CometBFT database backend.
func GetBackendName() string {
return badger.BackendName
}

// GetProvider returns the currently configured CometBFT DBProvider.
func GetProvider() (node.DBProvider, error) {
return badger.DBProvider, nil
Expand Down
2 changes: 1 addition & 1 deletion go/consensus/cometbft/full/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func NewArchive(

appConfig := &abci.ApplicationConfig{
DataDir: filepath.Join(srv.dataDir, tmcommon.StateDir),
StorageBackend: db.GetBackendName(),
StorageBackend: config.GlobalConfig.Storage.Backend,
Pruning: abci.PruneConfig{
Strategy: abci.PruneNone,
PruneInterval: time.Hour * 100, // Irrelevant as pruning is disabled.
Expand Down
2 changes: 1 addition & 1 deletion go/consensus/cometbft/full/full.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func (t *fullService) lazyInit() error { // nolint: gocyclo

appConfig := &abci.ApplicationConfig{
DataDir: filepath.Join(t.dataDir, tmcommon.StateDir),
StorageBackend: db.GetBackendName(),
StorageBackend: config.GlobalConfig.Storage.Backend,
Pruning: pruneCfg,
HaltEpoch: beaconAPI.EpochTime(config.GlobalConfig.Consensus.HaltEpoch),
HaltHeight: config.GlobalConfig.Consensus.HaltHeight,
Expand Down
6 changes: 3 additions & 3 deletions go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
github.com/cenkalti/backoff/v4 v4.2.1
github.com/cometbft/cometbft v0.0.0-00010101000000-000000000000
github.com/cometbft/cometbft-db v0.7.0
github.com/cometbft/cometbft-db v0.8.0
github.com/cosmos/gogoproto v1.4.1
github.com/dgraph-io/badger/v3 v3.2103.4
github.com/eapache/channels v1.1.0
Expand All @@ -33,6 +33,7 @@ require (
github.com/ipfs/go-log/v2 v2.5.1
github.com/libp2p/go-libp2p v0.30.0
github.com/libp2p/go-libp2p-pubsub v0.9.3
github.com/linxGnu/grocksdb v1.8.10
github.com/multiformats/go-multiaddr v0.11.0
github.com/oasisprotocol/curve25519-voi v0.0.0-20230110094441-db37f07504ce
github.com/oasisprotocol/deoxysii v0.0.0-20220228165953-2091330c22b7
Expand Down Expand Up @@ -175,9 +176,8 @@ require (
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
github.com/x448/float16 v0.8.4 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.opencensus.io v0.24.0 // indirect
go.uber.org/dig v1.17.0 // indirect
go.uber.org/fx v1.20.0 // indirect
Expand Down
19 changes: 6 additions & 13 deletions go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
github.com/cometbft/cometbft-db v0.7.0 h1:uBjbrBx4QzU0zOEnU8KxoDl18dMNgDh+zZRUE0ucsbo=
github.com/cometbft/cometbft-db v0.7.0/go.mod h1:yiKJIm2WKrt6x8Cyxtq9YTEcIMPcEe4XPxhgX59Fzf0=
github.com/cometbft/cometbft-db v0.8.0 h1:vUMDaH3ApkX8m0KZvOFFy9b5DZHBAjsnEuo9AKVZpjo=
github.com/cometbft/cometbft-db v0.8.0/go.mod h1:6ASCP4pfhmrCBpfk01/9E1SI29nD3HfVHrY4PG8x5c0=
github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327/go.mod h1:ZJeTFisyysqgcCdecO57Dj79RfL0LNeGiFUqLYQRYLE=
github.com/containerd/cgroups v1.1.0 h1:v8rEWFl6EoqHB+swVNjVoCJE8o3jX7e8nqBGPLaDFBM=
github.com/containerd/cgroups v1.1.0/go.mod h1:6ppBcbh/NOOUU+dMKrykgaBnK9lCIBxHqJDGwsa1mIw=
Expand Down Expand Up @@ -173,12 +173,6 @@ github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5y
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c h1:8ISkoahWXwZR41ois5lSJBSVw4D0OV19Ht/JSTzvSv0=
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64=
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 h1:JWuenKqqX8nojtoVVWjGfOF9635RETekkoH6Cc9SX0A=
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg=
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 h1:7HZCaLC5+BZpmbhCOZJ293Lz68O7PYrF2EzeiFMwCLk=
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0=
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
Expand Down Expand Up @@ -423,6 +417,8 @@ github.com/libp2p/go-reuseport v0.4.0 h1:nR5KU7hD0WxXCJbmw7r2rhRYruNRl2koHw8fQsc
github.com/libp2p/go-reuseport v0.4.0/go.mod h1:ZtI03j/wO5hZVDFo2jKywN6bYKWLOy8Se6DrI2E1cLU=
github.com/libp2p/go-yamux/v4 v4.0.1 h1:FfDR4S1wj6Bw2Pqbc8Uz7pCxeRBPbwsBbEdfwiCypkQ=
github.com/libp2p/go-yamux/v4 v4.0.1/go.mod h1:NWjl8ZTLOGlozrXSOZ/HlfG++39iKNnM5wwmtQP1YB4=
github.com/linxGnu/grocksdb v1.8.10 h1:6FAhBThErRfJaevGOZISYvkG7RD4gfzeq452X4r8pes=
github.com/linxGnu/grocksdb v1.8.10/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY=
github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI=
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
Expand Down Expand Up @@ -668,8 +664,6 @@ github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNG
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY=
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc=
github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA=
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c h1:g+WoO5jjkqGAzHWCjJB1zZfXPIAaDpzXIEJ0eS6B5Ok=
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8=
github.com/thepudds/fzgo v0.2.2 h1:bGofmgAGfTLpVgETkL9jvhg6azylvCF/kW6JPy5fkzQ=
github.com/thepudds/fzgo v0.2.2/go.mod h1:ZgigL1toyKrar3rWdXz7Fuv7bUpKZ4BAYN49TpEFMCI=
github.com/tidwall/btree v1.6.0 h1:LDZfKfQIBHGHWSwckhXI0RPSXzlo+KYdjK7FWSqOzzg=
Expand All @@ -688,8 +682,8 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=
go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4=
go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ=
go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw=
go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
Expand Down Expand Up @@ -885,7 +879,6 @@ golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down
4 changes: 2 additions & 2 deletions go/oasis-node/cmd/debug/byzantine/storage_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func newStorageNode(namespace common.Namespace, datadir string) (*storageWorker,
defer close(initCh)

cfg := &storage.Config{
Backend: database.BackendNameBadgerDB,
DB: filepath.Join(datadir, database.DefaultFileName(database.BackendNameBadgerDB)),
Backend: database.BackendNameRocksDB,
DB: filepath.Join(datadir, database.DefaultFileName(database.BackendNameRocksDB)),
Namespace: namespace,
MaxCacheSize: 64 * 1024 * 1024,
}
Expand Down
Loading
Loading