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

Commit 3c4621d

Browse files
committed
Use new polling apis in action index
1 parent 8a42e38 commit 3c4621d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/action/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +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', () => {
91-
info.getInfo();
92-
wallet.update();
90+
observe(store, 'lndReady', async () => {
9391
channel.update();
9492
transaction.update();
9593
transaction.subscribeTransactions();
9694
transaction.subscribeInvoices();
95+
wallet.pollBalances();
96+
wallet.pollExchangeRate();
97+
await info.pollInfo();
98+
wallet.getNewAddress(); // wait until neutrino is synced due to deadlock bug
9799
});

0 commit comments

Comments
 (0)