message: wallet: CreateCoinStake remove zPoS unused code.
diff: @@ -2724,8 +2724,7 @@ bool CWallet::CreateCoinStake(
  const CBlockIndex* pindexPrev,
  unsigned int nBits,
  CMutableTransaction& txNew,
  - int64_t& nTxNewTime
  - )
  + int64_t& nTxNewTime)
  {
  // Get the list of stakable utxos
  std::vector<COutput> vCoins;
  @@ -2835,35 +2834,12 @@ bool CWallet::CreateCoinStake(
  if (!fKernelFound)
  return false;
  - // Sign for PIV
  + // Sign it
  int nIn = 0;
  - if (!txNew.vin[0].scriptSig.IsZerocoinSpend()) {
  for (const CTxIn& txIn : txNew.vin) {
  const CWalletTx *wtx = GetWalletTx(txIn.prevout.hash);
  if (!SignSignature(*this, *wtx, txNew, nIn++, SIGHASH_ALL, true))
  - return error("CreateCoinStake : failed to sign coinstake");
  - }
  - } else {
  - //Update the mint database with tx hash and height
  - for (const CTxOut& out : txNew.vout) {
  - if (!out.IsZerocoinMint())
  - continue;
  -
  - libzerocoin::PublicCoin pubcoin(consensus.Zerocoin_Params(false));
  - CValidationState state;
  - if (!TxOutToPublicCoin(out, pubcoin, state))
  - return error("%s: extracting pubcoin from txout failed", __func__);
  -
  - uint256 hashPubcoin = GetPubCoinHash(pubcoin.getValue());
  - if (!zpivTracker->HasPubcoinHash(hashPubcoin))
  - return error("%s: could not find pubcoinhash %s in tracker", __func__, hashPubcoin.GetHex());
  -
  - CMintMeta meta = zpivTracker->GetMetaFromPubcoin(hashPubcoin);
  - meta.txid = txNew.GetHash();
  - meta.nHeight = chainActive.Height() + 1;
  - if (!zpivTracker->UpdateState(meta))
  - return error("%s: failed to update metadata in tracker", __func__);
  - }
  + return error("%s : failed to sign coinstake", __func__);
  }
  // Successfully generated coinstake
  