Skip to content

Conversation

@dhedey
Copy link
Contributor

@dhedey dhedey commented May 7, 2025

No description provided.

dhedey added 5 commits May 7, 2025 11:29
## Summary

Whilst we advise against large values for
`state_hash_tree.state_version_history_length`, it appears the node
doesn't even support values larger than Java's max int. This was an
oversight, as the next line tries to cast it to a long.

This PR fixes this oversight, avoiding this error for any configured
value between `2,147,483,647` and `9,223,372,036,854,775,807`:

```txt
Caused by: java.lang.IllegalArgumentException: There was an error when parsing configuration 'state_hash_tree.state_version_history_length' with value 'xxxxxxxxxxxx'.

```

## Testing

Existing tests pass

## Changelog

The changelog has been updated.
@dhedey dhedey requested a review from a team as a code owner May 7, 2025 11:52
@github-actions
Copy link

github-actions bot commented May 7, 2025

Docker tags
docker.io/radixdlt/private-babylon-node:pr-1064
docker.io/radixdlt/private-babylon-node:00f3aa02f9
docker.io/radixdlt/private-babylon-node:sha-00f3aa0

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants