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 {