Skip to content

Commit 0ad876a

Browse files
committed
env: rm DB_ENGINE default value
1 parent f534365 commit 0ad876a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/electrumx/server/env.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,6 @@ def db_engine_enum(self) -> str:
224224
choices = list_db_engine_choices()
225225
db_eng = self.default('DB_ENGINE', None)
226226

227-
if db_eng is None and electrumx.__version__.startswith("1."): # temporary legacy hack
228-
db_eng = "leveldb"
229227
if db_eng is None:
230228
raise self.Error(
231229
f"required envvar DB_ENGINE not set.\n"

tests/server/test_env.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616

1717
base_environ = {
1818
'DB_DIRECTORY': BASE_DB_DIR,
19+
'DB_ENGINE': 'rocksdb',
1920
'DAEMON_URL': BASE_DAEMON_URL,
20-
'COIN': 'BitcoinSV',
21+
'COIN': 'Bitcoin',
2122
}
2223

2324

0 commit comments

Comments
 (0)