message: Check every stake vin, as other vins for consolidation can be spent
diff: @@ -1053,10 +1053,11 @@ bool CheckStake(const std::shared_ptr<const CBlock> pblock, CWallet& wallet)
  if (pblock->hashPrevBlock != chainActive.Tip()->GetBlockHash())
  return error("CheckStake() : generated block is stale");
  - COutPoint outp = pblock->vtx[1]->vin[0].prevout;
  - if(wallet.IsSpent(outp.hash, outp.n)){
  + for(const CTxIn& vin : pblock->vtx[1]->vin) {
  + if (wallet.IsSpent(vin.prevout.hash, vin.prevout.n)) {
  return error("CheckStake() : generated block became invalid due to stake UTXO being spent");
  }
  + }
  // Process this block the same as if we had received it from another node
  bool fNewBlock = false;
  