message: [RPC] getblock, validate that PoS blocks to return the coin stake data.
diff: @@ -150,7 +150,7 @@ UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool tx
  //////////
  ////////// Coin stake data ////////////////
  /////////
  -
  + if (block.IsProofOfStake()) {
  // First grab it
  uint256 hashProofOfStakeRet;
  std::unique_ptr <CStakeInput> stake;
  @@ -167,8 +167,10 @@ UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool tx
  stakeData.push_back(Pair("CS block from id", stake.get()->GetIndexFrom()->GetBlockHash().GetHex()));
  stakeData.push_back(Pair("CS block from height", stake.get()->GetIndexFrom()->nHeight));
  stakeData.push_back(Pair("hashProofOfStake", hashProofOfStakeRet.GetHex()));
  - stakeData.push_back(Pair("stakeModifierHeight", ((stake->IsZPIV()) ? "Not available" : std::to_string(stake->getStakeModifierHeight()))));
  + stakeData.push_back(Pair("stakeModifierHeight", ((stake->IsZPIV()) ? "Not available" : std::to_string(
  + stake->getStakeModifierHeight()))));
  result.push_back(Pair("Coin Stake", stakeData));
  + }
  return result;
  }
  