From e24115da8396a130566f5bbadb542bef9860f9a0 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Thu, 20 Dec 2018 16:16:51 +0100 Subject: [PATCH] Bump blockbook version to v0.2.0 and index version to 4 --- configs/environ.json | 2 +- db/rocksdb.go | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configs/environ.json b/configs/environ.json index e529f086..d161716f 100644 --- a/configs/environ.json +++ b/configs/environ.json @@ -1,5 +1,5 @@ { - "version": "0.1.1", + "version": "0.2.0", "backend_install_path": "/opt/coins/nodes", "backend_data_path": "/opt/coins/data", "blockbook_install_path": "/opt/coins/blockbook", diff --git a/db/rocksdb.go b/db/rocksdb.go index 555040f2..5fbe956e 100644 --- a/db/rocksdb.go +++ b/db/rocksdb.go @@ -19,12 +19,14 @@ import ( "github.com/tecbot/gorocksdb" ) +const dbVersion = 4 + +const packedHeightBytes = 4 +const maxAddrDescLen = 1024 + // iterator creates snapshot, which takes lots of resources // when doing huge scan, it is better to close it and reopen from time to time to free the resources const refreshIterator = 5000000 -const packedHeightBytes = 4 -const dbVersion = 3 -const maxAddrDescLen = 1024 // RepairRocksDB calls RocksDb db repair function func RepairRocksDB(name string) error {