message: [Staking] Ensure nCredit is correctly initialized in CreateCoinStake
diff: @@ -2987,10 +2987,11 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
  if (GetAdjustedTime() - chainActive.Tip()->GetBlockTime() < 60)
  MilliSleep(10000);
  - CAmount nCredit = 0;
  + CAmount nCredit;
  CScript scriptPubKeyKernel;
  bool fKernelFound = false;
  for (std::unique_ptr<CStakeInput>& stakeInput : listInputs) {
  + nCredit = 0;
  // Make sure the wallet is unlocked and shutdown hasn't been requested
  if (IsLocked() || ShutdownRequested())
  return false;
  @@ -3057,7 +3058,6 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
  LogPrintf("%s : failed to create TxIn\n", __func__);
  txNew.vin.clear();
  txNew.vout.clear();
  - nCredit = 0;
  continue;
  }
  txNew.vin.emplace_back(in);
  