-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChainMetadata uses non standard uint64 #5797
Comments
@SWvheerden Can you elaborate a little here? I took a look at ChainMetadata and nothing about its |
@SWvheerden pointed out it's the proto file using |
Description --- We were making use of 3 proto wrapper types. These types deserialize into option types and in some cases are not what we want. This PR will update 2 of these types, while saving the third for an additional PR. Motivation and Context --- Use standard rust types, instead of library specific types. Closes: #5797 How Has This Been Tested? --- CI What process can a PR reviewer use to test or verify this change? --- Pay close attention to changes around timestamps. Could get tricky. Notably, we were using `Some(0)` in some tests for timestamps. This was a valid timestamp for us, because it wasn't `None`. Now we're treating `0` as an invalid timestamp. So any test with `None` became `0` but tests with `Some(0)` are presumably tests that _should_ have had valid timestamps but this was the easiest minimal value that was accepted. <!-- Checklist --> <!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. --> Breaking Changes --- - [ ] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [x] Other - Please specify Messages between new and old nodes are likely to break.
Should be swapped to uint64
The text was updated successfully, but these errors were encountered: