From ff8c06bed3aab75128d742200acb6e101e1b3658 Mon Sep 17 00:00:00 2001 From: Rithvik Vibhu Date: Thu, 3 Feb 2022 11:18:51 +0530 Subject: [PATCH] watchlist: get list on node start (#457) --- app/ducks/node.js | 3 +++ app/pages/App/index.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/app/ducks/node.js b/app/ducks/node.js index c78fa2f54..d25860a9a 100644 --- a/app/ducks/node.js +++ b/app/ducks/node.js @@ -2,6 +2,7 @@ import { clientStub } from '../background/node/client'; import { clientStub as settingClientStub } from '../background/setting/client'; import { clientStub as walletClientStub } from '../background/wallet/client'; import { getNetwork, setNetwork } from '../db/system'; +import { getWatching } from "./watching"; import { END_NETWORK_CHANGE, @@ -81,6 +82,8 @@ export const start = (network) => async (dispatch) => { payload: spv, }); + dispatch(getWatching(network)); + } catch (error) { console.error('node start error', error); dispatch({ type: STOP }); diff --git a/app/pages/App/index.js b/app/pages/App/index.js index ac91b3527..fa6655483 100644 --- a/app/pages/App/index.js +++ b/app/pages/App/index.js @@ -52,11 +52,13 @@ const settingClient = sClientStub(() => require('electron').ipcRenderer); ) class App extends Component { static propTypes = { + wallets: PropTypes.array.isRequired, error: PropTypes.string.isRequired, isLocked: PropTypes.bool.isRequired, initialized: PropTypes.bool.isRequired, startNode: PropTypes.func.isRequired, watchActivity: PropTypes.func.isRequired, + setExplorer: PropTypes.func.isRequired, fetchLocale: PropTypes.func.isRequired, isChangingNetworks: PropTypes.bool.isRequired, };