diff options
| author | Jonas Schnelli <[email protected]> | 2018-01-28 09:15:18 -1000 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2018-01-30 17:49:22 -1000 |
| commit | 90ba2df11b5bc943ac48b49b5da8023864dc842d (patch) | |
| tree | b5d52238deaabf843c6ee404fe7a632db3f20395 /src/validation.cpp | |
| parent | Merge #11774: [tests] Rename functional tests (diff) | |
| download | discoin-90ba2df11b5bc943ac48b49b5da8023864dc842d.tar.xz discoin-90ba2df11b5bc943ac48b49b5da8023864dc842d.zip | |
Fix missing cs_main lock for GuessVerificationProgress()
Diffstat (limited to 'src/validation.cpp')
| -rw-r--r-- | src/validation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 8cee0dfac..289313b55 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4659,6 +4659,7 @@ bool DumpMempool(void) } //! Guess how far we are in the verification process at the given block index +//! require cs_main if pindex has not been validated yet (because nChainTx might be unset) double GuessVerificationProgress(const ChainTxData& data, const CBlockIndex *pindex) { if (pindex == nullptr) return 0.0; |