This fixes #5115, and also removes a spurious deadlock condition whereby the relayer and burnchain downloader can fight over the sortition DB (this arises due to the fact that we open a transaction on the sortition DB every time we open it, even though we almost never need to).
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
This fixes #5115, and also removes a spurious deadlock condition whereby the relayer and burnchain downloader can fight over the sortition DB (this arises due to the fact that we open a transaction on the sortition DB every time we open it, even though we almost never need to).