mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-04 01:06:37 +00:00
Simplify HashPrefix by converting to an enum
This commit is contained in:
@@ -307,7 +307,7 @@ bool STObject::isEquivalent (const STBase& t) const
|
||||
});
|
||||
}
|
||||
|
||||
uint256 STObject::getHash (std::uint32_t prefix) const
|
||||
uint256 STObject::getHash (HashPrefix prefix) const
|
||||
{
|
||||
Serializer s;
|
||||
s.add32 (prefix);
|
||||
@@ -315,7 +315,7 @@ uint256 STObject::getHash (std::uint32_t prefix) const
|
||||
return s.getSHA512Half ();
|
||||
}
|
||||
|
||||
uint256 STObject::getSigningHash (std::uint32_t prefix) const
|
||||
uint256 STObject::getSigningHash (HashPrefix prefix) const
|
||||
{
|
||||
Serializer s;
|
||||
s.add32 (prefix);
|
||||
|
||||
Reference in New Issue
Block a user