Browse Source

remove assert. not the proper way to handle this

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
6fae6f216b
  1. 4
      src/core.cpp

4
src/core.cpp

@ -83,7 +83,7 @@ std::string CTransaction::GetUsername() const @@ -83,7 +83,7 @@ std::string CTransaction::GetUsername() const
if(userName.IsSmallString()) {
return userName.ExtractSmallString();
}
assert(!"username not small string");
//assert(!"username not small string");
return std::string();
}
@ -93,7 +93,7 @@ uint256 CTransaction::GetUsernameHash() const @@ -93,7 +93,7 @@ uint256 CTransaction::GetUsernameHash() const
return SerializeHash(userName.ExtractSmallString());
}
// [MF] TODO: remove this assert later, it will fail for spammessage.
assert(!"username not small string");
//assert(!"username not small string");
return uint256();
}

Loading…
Cancel
Save