diff --git a/README.md b/README.md index fd4d0465..98bdda85 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,6 @@ DEBUG_ACTION=1 DEBUG_TAB_KEY=1 DEBUG_LIBCORE=1 DEBUG_WS=1 -LEDGER_RESET_ALL=1 LEDGER_DEBUG_ALL_LANGS=1 SKIP_GENUINE=1 SKIP_ONBOARDING=1 diff --git a/src/config/constants.js b/src/config/constants.js index aefe35b3..2734edff 100644 --- a/src/config/constants.js +++ b/src/config/constants.js @@ -80,7 +80,6 @@ export const DEBUG_TAB_KEY = boolFromEnv('DEBUG_TAB_KEY') export const DEBUG_LIBCORE = boolFromEnv('DEBUG_LIBCORE') export const DEBUG_WS = boolFromEnv('DEBUG_WS') export const DEBUG_SYNC = boolFromEnv('DEBUG_SYNC') -export const LEDGER_RESET_ALL = boolFromEnv('LEDGER_RESET_ALL') export const LEDGER_DEBUG_ALL_LANGS = boolFromEnv('LEDGER_DEBUG_ALL_LANGS') export const SKIP_GENUINE = boolFromEnv('SKIP_GENUINE') export const SKIP_ONBOARDING = boolFromEnv('SKIP_ONBOARDING') diff --git a/src/renderer/init.js b/src/renderer/init.js index 52fd35f7..4f7278df 100644 --- a/src/renderer/init.js +++ b/src/renderer/init.js @@ -12,7 +12,6 @@ import { runMigrations } from 'migrations' import createStore from 'renderer/createStore' import events from 'renderer/events' -import { LEDGER_RESET_ALL } from 'config/constants' import { enableGlobalTab, disableGlobalTab, isGlobalTabEnabled } from 'config/global-tab' import { fetchAccounts } from 'actions/accounts' @@ -25,7 +24,6 @@ import resolveUserDataDirectory from 'helpers/resolveUserDataDirectory' import db from 'helpers/db' import dbMiddleware from 'middlewares/db' import CounterValues from 'helpers/countervalues' -import hardReset from 'helpers/hardReset' import { decodeAccountsModel, encodeAccountsModel } from 'reducers/accounts' @@ -43,10 +41,6 @@ const TAB_KEY = 9 db.init(userDataDirectory) async function init() { - if (LEDGER_RESET_ALL) { - await hardReset() - } - await runMigrations() db.init(userDataDirectory) db.registerTransform('app', 'accounts', { get: decodeAccountsModel, set: encodeAccountsModel })