|
|
@ -22,7 +22,7 @@ export const RECEIVE_BLOCK_HEIGHT = 'RECEIVE_BLOCK_HEIGHT' |
|
|
|
export const lndSyncing = () => dispatch => dispatch({ type: START_SYNCING }) |
|
|
|
|
|
|
|
// Receive IPC event for LND stoping sync
|
|
|
|
export const lndSynced = () => dispatch => { |
|
|
|
export const lndSynced = () => (dispatch) => { |
|
|
|
// Fetch data now that we know LND is synced
|
|
|
|
dispatch(fetchTicker()) |
|
|
|
dispatch(fetchBalance()) |
|
|
@ -64,7 +64,7 @@ const ACTION_HANDLERS = { |
|
|
|
[RECEIVE_LINE]: (state, { lndBlockHeight }) => ({ ...state, lndBlockHeight }), |
|
|
|
|
|
|
|
[GET_BLOCK_HEIGHT]: state => ({ ...state, fetchingBlockHeight: true }), |
|
|
|
[RECEIVE_BLOCK_HEIGHT]: (state, { blockHeight }) => ({ ...state, blockHeight, fetchingBlockHeight: false }), |
|
|
|
[RECEIVE_BLOCK_HEIGHT]: (state, { blockHeight }) => ({ ...state, blockHeight, fetchingBlockHeight: false }) |
|
|
|
} |
|
|
|
|
|
|
|
// ------------------------------------
|
|
|
|