Skip to content

Commit

Permalink
[RPC][BUG] Remove extra lock in spendrawzerocoin
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Dec 20, 2019
1 parent c304007 commit 35ea5bc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4384,7 +4384,6 @@ UniValue spendrawzerocoin(const UniValue& params, bool fHelp)
const CBigNum& mintValue = mint.GetValue();
bool found = false;
{
LOCK2(cs_main, pwalletMain->cs_wallet);
CBlockIndex* pindex = chainActive.Tip();
while (!found && pindex && pindex->nHeight >= Params().Zerocoin_StartHeight()) {
LogPrintf("%s : Checking block %d...\n", __func__, pindex->nHeight);
Expand Down

0 comments on commit 35ea5bc

Please sign in to comment.