decred / dcrwallet

A secure Decred wallet daemon written in Go (golang).
https://decred.org
ISC License
211 stars 153 forks source link

chain: Wait for errgroup before returning from sync #2356

Closed jrick closed 1 month ago

jrick commented 1 month ago

If syncing over JSON-RPC is being reattempted in a loop, as the main package does, not waiting for the errgroup that runs the wallet's mixing client may cause it to concurrently enter mixclient.Client.Run again before it has returned. This eventually results in a panic due to closing the already-closed warming chan.

This is a backport candidate for 2.0.1.