Merge branch 'develop' into Bronek/vault_enable

This commit is contained in:
Bronek Kozicki
2025-05-23 17:01:14 +01:00
committed by GitHub

View File

@@ -1056,8 +1056,8 @@ AccountID
pseudoAccountAddress(ReadView const& view, uint256 const& pseudoOwnerKey) pseudoAccountAddress(ReadView const& view, uint256 const& pseudoOwnerKey)
{ {
// This number must not be changed without an amendment // This number must not be changed without an amendment
constexpr int maxAccountAttempts = 256; constexpr std::uint16_t maxAccountAttempts = 256;
for (auto i = 0; i < maxAccountAttempts; ++i) for (std::uint16_t i = 0; i < maxAccountAttempts; ++i)
{ {
ripesha_hasher rsh; ripesha_hasher rsh;
auto const hash = sha512Half(i, view.info().parentHash, pseudoOwnerKey); auto const hash = sha512Half(i, view.info().parentHash, pseudoOwnerKey);