Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(boot): only save wallet after unlocking
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Dec 16, 2018
1 parent 9a90c7a commit 1127375
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/reducers/lnd.js
Expand Up @@ -103,15 +103,9 @@ export const lightningGrpcActive = (event, lndConfig) => async dispatch => {
}

// Connected to WalletUnlocker gRPC interface (lnd is ready to unlock or create wallet)
export const walletUnlockerGrpcActive = (event, lndConfig) => async dispatch => {
export const walletUnlockerGrpcActive = () => async dispatch => {
dispatch({ type: SET_WALLET_UNLOCKER_ACTIVE })

// Once we we have established a connection, save the wallet settings.
if (lndConfig.id !== 'tmp') {
const wallet = await dispatch(putWallet(lndConfig))
await dispatch(setActiveWallet(wallet.id))
}

// Let the onboarding process know that the wallet unlocker has started.
dispatch(lndWalletUnlockerStarted())
}
Expand Down

0 comments on commit 1127375

Please sign in to comment.