Browse Source
Merge pull request #1335 from amougel/feature/remove_env_var
Remove LEDGER_RESET_ALL
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
0 additions and
8 deletions
-
README.md
-
src/config/constants.js
-
src/renderer/init.js
|
|
@ -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 |
|
|
|
|
|
@ -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') |
|
|
|
|
|
@ -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 }) |
|
|
|