message: Add check for zwalletMain in IsSpent
diff: @@ -573,7 +573,7 @@ bool CWallet::IsSpent(const uint256 &hash, unsigned int n) const {
  }
  return data.IsUsed;
  - } else if (script.IsSigmaMint()) {
  + } else if (zwalletMain && script.IsSigmaMint()) {
  auto pub = sigma::ParseSigmaMintScript(script);
  uint256 hashPubcoin = primitives::GetPubCoinValueHash(pub);
  CMintMeta meta;
  