- {!fetchingBlockHeight &&
{1}%
}
+ {!fetchingBlockHeight &&
{syncPercentage}%
}
syncing your lightning node to the blockchain
diff --git a/app/main.dev.js b/app/main.dev.js
index 84770217..7316dd92 100644
--- a/app/main.dev.js
+++ b/app/main.dev.js
@@ -141,8 +141,8 @@ app.on('ready', async () => {
console.log(line)
// Pass current clock height progress to front end for loading state UX
- if (line.includes('Difficulty retarget at block height')) {
- const blockHeight = line.slice(line.indexOf('Difficulty retarget at block height') + 'Difficulty retarget at block height'.length).trim()
+ if (line.includes('Caught up to height')) {
+ const blockHeight = line.slice(line.indexOf('Caught up to height') + 'Caught up to height'.length).trim()
mainWindow.webContents.send('lndStdout', blockHeight)
}
diff --git a/app/reducers/lnd.js b/app/reducers/lnd.js
index a3f04e71..79617810 100644
--- a/app/reducers/lnd.js
+++ b/app/reducers/lnd.js
@@ -33,6 +33,7 @@ export const lndSynced = () => dispatch => {
// Receive IPC event for LND streaming a line
export const lndStdout = (event, lndBlockHeight) => dispatch => {
+ console.log('lndBlockHeight: ', lndBlockHeight)
dispatch({ type: RECEIVE_LINE, lndBlockHeight: lndBlockHeight.split(' ')[0].split(/(\r\n|\n|\r)/gm)[0] })
}
diff --git a/app/routes/app/components/App.js b/app/routes/app/components/App.js
index 837bba83..d0ef536c 100644
--- a/app/routes/app/components/App.js
+++ b/app/routes/app/components/App.js
@@ -44,6 +44,8 @@ class App extends Component {
children
} = this.props
+ console.log('syncPercentage: ', syncPercentage)
+
if (lnd.syncing) {
return (