There is no way for consumers like Clio to get all known amendments/features thru libxrpl.
This PR adds a public function to do just that as well as some tests for it.
Please note that this adds only what is needed for Clio and nothing more. If there is desire to expose the raw VoteBehavior it can be added. Let me know.
Context of Change
Clio needs the ability to get all known amendments in order to implement the feature API (non-admin part).
Type of Change
[x] New feature (non-breaking change which adds functionality)
[x] Tests (you added tests for code that already exists, or your new feature included in this PR)
High Level Overview of Change
There is no way for consumers like Clio to get all known amendments/features thru
libxrpl
. This PR adds a public function to do just that as well as some tests for it.Please note that this adds only what is needed for Clio and nothing more. If there is desire to expose the raw
VoteBehavior
it can be added. Let me know.Context of Change
Clio needs the ability to get all known amendments in order to implement the
feature
API (non-admin part).Type of Change
API Impact
None.