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

Description
This is currently due to a workaround that prevents a deadlock in lnd when the NewAddress grpc api is called while syncing neutrino. We need to remove this once the issue in lnd is resolved:
|
// 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(); |
|
} |
|
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(); |
|
} |