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