Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions src/action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,13 @@ observe(store, 'walletUnlocked', async () => {
* to and from lnd can be done. The display the current state of the
* lnd node all balances, channels and transactions are fetched.
*/
observe(store, 'lndReady', async () => {
// TODO: this is a workaround the deadlock bug in lnd that blocks
// calling NewAddress while netrino is syncing.
if (store.firstStart) {
// only fetch address before neutrino sync on first start
wallet.getNewAddress();
}
observe(store, 'lndReady', () => {
wallet.getNewAddress();
wallet.pollBalances();
wallet.pollExchangeRate();
channel.update();
transaction.update();
transaction.subscribeTransactions();
transaction.subscribeInvoices();
await info.pollInfo();
if (!store.firstStart) {
// wait until neutrino is synced on second start
wallet.getNewAddress();
}
info.pollInfo();
});