Commit 97aec3f
authored
Support longer
## 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.state_hash_tree.state_version_history_length (#1063)File tree
2 files changed
+8
-2
lines changed- core/src/main/java/com/radixdlt
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | | - | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
0 commit comments