You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chain: Request block ntfns only after initial sync
Previously, request for notifications about connected blocks were sent
to the underlying dcrd instance before the chain was fully synced. This
could cause a race issue if the underlying dcrd instance was also
performing an initial sync, causing blocks to be connected by the
blockConnected handler before the active data filter was loaded, causing
transactions to be missed and the wallet's balance to be wrong,
requiring a rescan to be fixed.
This could happen, for example, if both the dcrd and dcrwallet processes
were started at the same time or if dcrd took just enough time to
connect to the network that the wallet was also initialized (for
exemple, from within Decrediton).
This fixes the issue by refactoring the initial sync code to only
request block notifications after the initial header sync has been
completed by the wallet.
0 commit comments