diff options
| author | Pieter Wuille <[email protected]> | 2018-04-03 21:53:07 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2018-04-03 21:53:27 -0700 |
| commit | 4a6c0e3dcfdca98270cb96b73db4c3d4446dba50 (patch) | |
| tree | 144d60525f085531ef71883d6d3a25f680d405db /src/rpc/mining.cpp | |
| parent | Fix csBestBlock/cvBlockChange waiting in rpc/mining (diff) | |
| download | discoin-4a6c0e3dcfdca98270cb96b73db4c3d4446dba50.tar.xz discoin-4a6c0e3dcfdca98270cb96b73db4c3d4446dba50.zip | |
Modernize best block mutex/cv/hash variable naming
Diffstat (limited to 'src/rpc/mining.cpp')
| -rw-r--r-- | src/rpc/mining.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 5a5ff06fe..fbdcc3b4d 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -470,10 +470,10 @@ UniValue getblocktemplate(const JSONRPCRequest& request) { checktxtime = std::chrono::steady_clock::now() + std::chrono::minutes(1); - WaitableLock lock(csBestBlock); - while (hashBestBlock == hashWatchedChain && IsRPCRunning()) + WaitableLock lock(g_best_block_mutex); + while (g_best_block == hashWatchedChain && IsRPCRunning()) { - if (cvBlockChange.wait_until(lock, checktxtime) == std::cv_status::timeout) + if (g_best_block_cv.wait_until(lock, checktxtime) == std::cv_status::timeout) { // Timeout: Check transactions for update if (mempool.GetTransactionsUpdated() != nTransactionsUpdatedLastLP) |