Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsonrpc: Stop background rescans (more) gracefully
Use the server waitgroup to ensure background rescans can return on their own terms rather than being forcefully terminated early. This is still not an ideal situation because in the case where the server/wallet is being shut down, RescanFromHeight will return with an "rpc connection closed" error (or similar) rather than returning because its provided context was cancelled. However, that is a notable improvement over the existing situation which could result in an unhandled panic.
- Loading branch information