-
Notifications
You must be signed in to change notification settings - Fork 14
feat: Use feature for amendment name #291
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
Conversation
src/shared/database/amendments.ts
Outdated
| if ('result' in featureResponse) { | ||
| const feature = featureResponse.result[amendment_id] | ||
| amendmentIDs.set(amendment_id, { | ||
| name: feature.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there more that should be stored?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are only these fields in feature, of which only name is useful for us.
enabled | Boolean | Whether this amendment is currently enabled in the latest ledger.
name | String | (May be omitted) The human-readable name for this amendment, if known.
supported | Boolean | Whether the server knows how to apply this amendment. If this field is set to false (the server does not know how to apply this amendment) and enabled is set to true (this amendment is enabled in the latest ledger), this amendment may cause your server to be amendment blocked.
achowdhry-ripple
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM -- for code readability would recommend differentiating between fetch methods and ones that actually set the cache as well, but logic looks solid otherwise
Fixed that in the latest commit |
High Level Overview of Change
Resolve: #278
Context of Change
Missing new amendments due to the change in rippled code structure to parse name:
Type of Change
Before / After
Data should show up:
VHS is lacking tests at the moment. There will be a separate ticket to add comprehensive tests throughout the code