Skip to content

Commit 3a80944

Browse files
Move LockAnnotation to make it reflect the truth
1 parent cc25885 commit 3a80944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/test/wallet_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ static int64_t AddTx(CWallet& wallet, uint32_t lockTime, int64_t mockTime, int64
272272
SetMockTime(mockTime);
273273
CBlockIndex* block = nullptr;
274274
if (blockTime > 0) {
275-
LockAnnotation lock(::cs_main);
276275
auto locked_chain = wallet.chain().lock();
276+
LockAnnotation lock(::cs_main);
277277
auto inserted = mapBlockIndex.emplace(GetRandHash(), new CBlockIndex);
278278
assert(inserted.second);
279279
const uint256& hash = inserted.first->first;

0 commit comments

Comments
 (0)