-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Document how to control starting amendments in standalone mode #1762
Comments
What's the last version that you are aware of that this feature worked? |
Can't remember if the last time it worked was 1.7 or 1.6. For the amendments, do you mean for the new or the old one? And what debug level? |
Both? The messages I'm thinking about are written before the default level gets changed. |
I found a way to do this without modifying the code. According to the changelog in 1.7.0
This stanza will only be used on the creation of the genesis ledger when using Related links: |
I think this is ready to be documented. I added this issue to the |
Is there a way to exclude "default:yes" amendments from the starting ledger? The old amendment voting settings allowed for that, but I don't know of a way to do that ever since voting using the config file was removed. |
Not sure if it's fully relevant, but this is the config we use to start ledgers with all the given amendments enabled in xrpl.js & xrpl-py as part of our CI. https://github.com/XRPLF/xrpl-py/blob/master/.ci-config/rippled.cfg It's used as a parameter to the rippled container here: https://github.com/WietseWind/docker-rippled (Specific instructions on how we use it for that are in CONTRIBUTING.md) |
The config using
Using the I like MaestroLegato's solution using In XRPLF/rippled#4198 I shared another example of a "doctored" JSON file with amendments enabled, as well as some of my findings from experimenting with |
ckniffen wrote: (copied from comment below)
According to the changelog in 1.7.0
[features]
was removed. I was able to set default:no amendments by adding the [amendments] stanza.This stanza will only be used on the creation of the genesis ledger when using
--start
but not when running in regular standalone mode.Related links:
Original title: Can't control starting amendments in stand-alone mode anymore (Version: 1.8.2)
I can't start a stand-alone mode server with the CheckCashMakesTrustLine amendment pre-enabled anymore.
(I'm not talking about force-enabling via the
[features]
stanza: I mean controlling which amendments are "officially" enabled in the stand-alone ledger.)Issue Description
It used to be that you could control which amendments are enabled in the ledger when you start a stand-alone mode server: anything that's not vetoed in the config file would get enabled in the fresh genesis ledger and apply starting with ledger 2.
It seems that due to either default amendment votes, or the combination with disabling config-file voting, it's not possible to enable amendments that have a "no" default vote.
Steps to Reproduce
With your server either synced to any network or in stand-alone mode, connect to an admin WebSocket connection (
ws://localhost:6006
if you're using the default config) and send this command to enable CheckCashMakesTrustLine:Shut down the server.
Start the server in stand-alone mode, like this:
From an admin WebSocket connection, check amendment statuses again:
Expected Result
The response from step 4 above should show a variety of amendments in the
"enabled": true
state including CheckCashMakesTrustLine.Actual Result
Most other (non-retired) amendments are enabled, but the CheckCashMakesTrustLine amendment is still not enabled, e.g.
Environment
Arch Linux, self-compiled, v1.8.2-rc1.
The text was updated successfully, but these errors were encountered: