Amendments
The Amendments
object type contains a list of Amendments that are currently active. Each ledger version contains at most one Amendments
object.
Example JSON
Fields
Name | JSON Type | [Internal Type][] | Required? | Description |
---|---|---|---|---|
| Array | Vector256 | No | Array of 256-bit amendment IDs for all currently enabled amendments. If omitted, there are no enabled amendments. |
| Number | UInt32 | Yes | A bit-map of boolean flags enabled for this object. Currently, the protocol defines no flags for |
| String | UInt16 | Yes | The value |
| Array | STArray | No | Array of objects describing the status of amendments that have majority support but are not yet enabled. If omitted, there are no pending amendments with majority support. |
Each member of the Majorities
field, if it is present, is an object with one field, Majority
, whose contents are a nested object with the following fields:
Name | JSON Type | [Internal Type][] | Description |
---|---|---|---|
| String | Hash256 | The Amendment ID of the pending amendment. |
| Number | UInt32 | The |
In the amendment process, a consensus of validators adds a new amendment to the Majorities
field using an [EnableAmendment][] pseudo-transaction with the tfGotMajority
flag when 80% or more of validators support it. If support for a pending amendment goes below 80%, an [EnableAmendment][] pseudo-transaction with the tfLostMajority
flag removes the amendment from the Majorities
array. If an amendment remains in the Majorities
field for at least 2 weeks, an [EnableAmendment][] pseudo-transaction with no flags removes it from Majorities
and permanently adds it to the Amendments
field.
Note: Technically, all transactions in a ledger are processed based on which amendments are enabled in the ledger version immediately before it. While applying transactions to a ledger version where an amendment becomes enabled, the rules don't change mid-ledger. After the ledger is closed, the next ledger uses the new rules as defined by any new amendments that apply.
Amendments ID Format
The Amendments
object ID is the hash of the Amendments
space key (0x0066
) only. This means that the ID of the Amendments
object in a ledger is always:
(Don't mix up the ID of the Amendments
ledger object type with the Amendment ID of an individual amendment.)
Last updated