Skip to content

Commit

Permalink
refactor: delete unnecessary code and update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Mar 18, 2024
1 parent 7803edc commit 2de2cc6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15,576 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
node_modules
yarn.lock
/dist
dist_electron
**.asc
Expand Down
2 changes: 1 addition & 1 deletion electron/autoUpdaterManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class AutoUpdaterManager {
}

public run(actions: Actions) {
console.log('running auto updater...')
console.log('Checking for updates...')
autoUpdater.checkForUpdatesAndNotify()
autoUpdater.on('update-available', () => {
this.wallet.setIsUpdating(true)
Expand Down
2 changes: 1 addition & 1 deletion electron/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const URLS_PUBLIC_WITNET_NODES = [
'3.21.74.162:21338',
]

export const OLD_WITNET_NODE_IPS: Array<string> = [
export const LEGACY_CONFIGURATION_WITNET_NODE_IPS: Array<string> = [
'20.120.248.2:21338',
'20.126.70.77:21338',
'52.166.178.145:21338',
Expand Down
4 changes: 2 additions & 2 deletions electron/utils/overwriteWitnetNodeConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
SHEIKAH_PATH,
WITNET_CONFIG_FILE_NAME,
URLS_PUBLIC_WITNET_NODES,
OLD_WITNET_NODE_IPS,
LEGACY_CONFIGURATION_WITNET_NODE_IPS,
} from '../constants'
import { existIntersection } from './existIntersection'

Expand All @@ -23,7 +23,7 @@ const defaultConfig = {
sheikahPath: SHEIKAH_PATH,
witnetConfigFileName: WITNET_CONFIG_FILE_NAME,
publicNodeUrls: URLS_PUBLIC_WITNET_NODES,
oldWitnetNodes: OLD_WITNET_NODE_IPS,
oldWitnetNodes: LEGACY_CONFIGURATION_WITNET_NODE_IPS,
}

// Replace witnet nodes urls in witnet configuration file
Expand Down
2 changes: 0 additions & 2 deletions src/components/steps/DecryptXprv.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ export default {
xprv: this.fileInfo.data.master_key,
backupPassword: this.password,
})
console.log('error xprv', this.xprvError)
if (!this.xprvError) {
console.log('decrypt', this.fileInfo.data.master_key)
this.setXprv({ result: this.fileInfo.data.master_key })
this.setBackupPassword({ result: this.password })
this.setBirthDate({ result: this.fileInfo.data.birth_date })
Expand Down
8 changes: 4 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export interface LanguageDictionary {
}

export enum SetupMessages {
runningWallet = 'Running wallet',
updatingWalletBackend = 'Updating wallet backend',
walletUpToDate = 'Wallet up to date',
loaded = 'Loaded',
runningWallet,
updatingWalletBackend,
walletUpToDate,
loaded,
}
Loading

0 comments on commit 2de2cc6

Please sign in to comment.