We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7cdb2 commit 1e7ffc2Copy full SHA for 1e7ffc2
src/wallet/wallet.cpp
@@ -3085,8 +3085,8 @@ bool CWallet::CreateCoinStake(
3085
outPoint,
3086
it->pindex);
3087
3088
- //new block came in, move on
3089
- if (WITH_LOCK(cs_main, return chainActive.Height()) != pindexPrev->nHeight) return false;
+ // New block came in, move on
+ if (WITH_LOCK(cs_wallet, return m_last_block_processed_height) != pindexPrev->nHeight) return false;
3090
3091
// Make sure the wallet is unlocked and shutdown hasn't been requested
3092
if (IsLocked() || ShutdownRequested()) return false;
0 commit comments