message: Sign "old" strMessage before nBlockZerocoinV2
diff: @@ -520,7 +520,7 @@ bool CMasternodeBroadcast::CheckAndUpdate(int& nDos)
  std::string errorMessage = "";
  if (!obfuScationSigner.VerifyMessage(pubKeyCollateralAddress, sig, GetNewStrMessage(), errorMessage)
  && !obfuScationSigner.VerifyMessage(pubKeyCollateralAddress, sig, GetOldStrMessage(), errorMessage)) {
  - LogPrint("masternode","mnb - Got bad Masternode address signature\n");
  + LogPrintf("CMasternodeBroadcast::CheckAndUpdate - Got bad Masternode address signature\n");
  // don't ban for old masternodes, their sigs could be broken because of the bug
  nDos = protocolVersion < MIN_PEER_MNANNOUNCE ? 0 : 100;
  return false;
  @@ -659,27 +659,30 @@ bool CMasternodeBroadcast::Sign(CKey& keyCollateralAddress)
  {
  std::string errorMessage;
  sigTime = GetAdjustedTime();
  - std::string strMessage = GetNewStrMessage();
  - if (!obfuScationSigner.SignMessage(strMessage, errorMessage, sig, keyCollateralAddress)) {
  + std::string strMessage;
  + if(chainActive.Height() < Params().Zerocoin_Block_V2_Start())
  + strMessage = GetOldStrMessage();
  + else
  + strMessage = GetNewStrMessage();
  +
  + if (!obfuScationSigner.SignMessage(strMessage, errorMessage, sig, keyCollateralAddress))
  return error("CMasternodeBroadcast::Sign() - Error: %s", errorMessage);
  - }
  - if (!obfuScationSigner.VerifyMessage(pubKeyCollateralAddress, sig, strMessage, errorMessage)) {
  + if (!obfuScationSigner.VerifyMessage(pubKeyCollateralAddress, sig, strMessage, errorMessage))
  return error("CMasternodeBroadcast::Sign() - Error: %s", errorMessage);
  - }
  return true;
  }
  +
  bool CMasternodeBroadcast::VerifySignature()
  {
  std::string errorMessage;
  if(!obfuScationSigner.VerifyMessage(pubKeyCollateralAddress, sig, GetNewStrMessage(), errorMessage)
  - && !obfuScationSigner.VerifyMessage(pubKeyCollateralAddress, sig, GetOldStrMessage(), errorMessage)) {
  + && !obfuScationSigner.VerifyMessage(pubKeyCollateralAddress, sig, GetOldStrMessage(), errorMessage))
  return error("CMasternodeBroadcast::VerifySignature() - Error: %s", errorMessage);
  - }
  return true;
  }
  