Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit f1a2e14

Browse files
Merge pull request #621 from lightninglabs/remove-workaround
Undo deadlock workaround
2 parents 2ff743a + 47b6784 commit f1a2e14

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/action/index.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,13 @@ observe(store, 'walletUnlocked', async () => {
8787
* to and from lnd can be done. The display the current state of the
8888
* lnd node all balances, channels and transactions are fetched.
8989
*/
90-
observe(store, 'lndReady', async () => {
91-
// TODO: this is a workaround the deadlock bug in lnd that blocks
92-
// calling NewAddress while netrino is syncing.
93-
if (store.firstStart) {
94-
// only fetch address before neutrino sync on first start
95-
wallet.getNewAddress();
96-
}
90+
observe(store, 'lndReady', () => {
91+
wallet.getNewAddress();
9792
wallet.pollBalances();
9893
wallet.pollExchangeRate();
9994
channel.update();
10095
transaction.update();
10196
transaction.subscribeTransactions();
10297
transaction.subscribeInvoices();
103-
await info.pollInfo();
104-
if (!store.firstStart) {
105-
// wait until neutrino is synced on second start
106-
wallet.getNewAddress();
107-
}
98+
info.pollInfo();
10899
});

0 commit comments

Comments
 (0)