mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
remove assert. not the proper way to handle this
This commit is contained in:
parent
408fec30ed
commit
6fae6f216b
@ -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
|
||||
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…
x
Reference in New Issue
Block a user