Skip to content

Commit

Permalink
fix: ipfs daemon flags
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <[email protected]>
  • Loading branch information
hacdias committed Apr 23, 2020
1 parent 47e6306 commit 0ee2ac0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/common/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Store = require('electron-store')

const store = new Store()

if (store.get('version') !== 5) {
if (store.get('version', 0) < 5) {
store.clear()

// default config
Expand All @@ -17,6 +17,16 @@ if (store.get('version') !== 5) {
store.set('version', 5)
}

if (store.get('version', 0) !== 6) {
store.set('ipfsConfig.flags', [
'--migrate',
'--enable-gc',
'--routing', 'dhtclient'
])

store.set('version', 6)
}

if (!store.get('language')) {
store.set('language', (electron.app || electron.remote.app).getLocale())
}
Expand Down

0 comments on commit 0ee2ac0

Please sign in to comment.