Skip to content

Commit

Permalink
Use chain tip block hash instead of height to trigger onNewBlock()
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Apr 15, 2020
1 parent 14adcf1 commit 525a7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ducks/backgroundMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function createBackgroundMonitor() {
});
}

if (state.node.chain.height !== infoRes.chain.height)
if (state.node.chain.tip !== infoRes.chain.tip)
await store.dispatch(onNewBlock());

const newPendingTxns = await walletClient.getPendingTransactions();
Expand Down

0 comments on commit 525a7e5

Please sign in to comment.