Skip to content

Commit

Permalink
watchlist: get list on node start (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithvikvibhu committed Feb 6, 2022
1 parent f7f7c76 commit ff8c06b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/ducks/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 });
Expand Down
2 changes: 2 additions & 0 deletions app/pages/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit ff8c06b

Please sign in to comment.