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

Deposit address does not display until after syncing to chain has completed #614

@tanx

Description

@tanx

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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions