Skip to content

Commit 85e8a14

Browse files
presstabFuzzbawls
authored andcommitted
Remove uneeded lock on createcoinstake().
1 parent 973c661 commit 85e8a14

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/wallet.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2927,7 +2927,6 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
29272927
//iterates each utxo inside of CheckStakeKernelHash()
29282928
nAttempts++;
29292929
if (Stake(stakeInput, nBits, block.GetBlockTime(), nTxNewTime, hashProofOfStake)) {
2930-
LOCK(cs_wallet);
29312930

29322931
//Double check that this will pass time requirements
29332932
if (nTxNewTime <= chainActive.Tip()->GetMedianTimePast()) {
@@ -4511,12 +4510,12 @@ bool CWallet::MintToTxIn(CZerocoinMint zerocoinSelected, int nSecurityLevel, con
45114510

45124511
bool isV1Coin = zerocoinSelected.GetVersion() < libzerocoin::PrivateCoin::PUBKEY_VERSION;
45134512
libzerocoin::ZerocoinParams* paramsCoin = Params().Zerocoin_Params(isV1Coin);
4514-
LogPrintf("%s: *** using v1 coin params=%b, using v1 acc params=%b\n", __func__, isV1Coin, chainActive.Height() < Params().Zerocoin_Block_V2_Start());
4513+
//LogPrintf("%s: *** using v1 coin params=%b, using v1 acc params=%b\n", __func__, isV1Coin, chainActive.Height() < Params().Zerocoin_Block_V2_Start());
45154514

45164515
// 2. Get pubcoin from the private coin
45174516
libzerocoin::CoinDenomination denomination = zerocoinSelected.GetDenomination();
45184517
libzerocoin::PublicCoin pubCoinSelected(paramsCoin, zerocoinSelected.GetValue(), denomination);
4519-
LogPrintf("%s : selected mint %s\n pubcoinhash=%s\n", __func__, zerocoinSelected.ToString(), GetPubCoinHash(zerocoinSelected.GetValue()).GetHex());
4518+
//LogPrintf("%s : selected mint %s\n pubcoinhash=%s\n", __func__, zerocoinSelected.ToString(), GetPubCoinHash(zerocoinSelected.GetValue()).GetHex());
45204519
if (!pubCoinSelected.validate()) {
45214520
receipt.SetStatus(_("The selected mint coin is an invalid coin"), ZPIV_INVALID_COIN);
45224521
return false;

0 commit comments

Comments
 (0)