GuessVerificationProgress()
needs cs_main
due to accessing the pindex->nChainTx
.
This adds a AssertLockHeld
in GuessVerificationProgress()
and adds the missing locks in…
LoadChainTip()
ScanForWalletTransactions()
(got missed in #11281)- GUI,
ClientModel::getVerificationProgress()
<— this may have GUI performance impacts, but could be relaxed later with a cache or something more efficient.