Browse Source

Remove LEDGER_RESET_ALL

master
amougel 7 years ago
parent
commit
c1572d58f8
  1. 1
      README.md
  2. 1
      src/config/constants.js
  3. 6
      src/renderer/init.js

1
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

1
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')

6
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 })

Loading…
Cancel
Save