[{"data":1,"prerenderedAt":4000},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle":3497,"docs-tracks":3498},{"id":4,"title":5,"body":6,"description":3489,"extension":3490,"meta":3491,"navigation":478,"path":3492,"seo":3493,"source":3494,"stem":3495,"__hash__":3496},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle.md","Amendment Lifecycle",{"type":7,"value":8,"toc":3448},"minimark",[9,13,16,21,25,33,36,38,42,45,56,59,61,65,70,73,79,137,142,162,167,201,214,218,224,257,262,281,285,288,294,297,301,304,318,325,327,331,335,341,370,373,390,394,397,532,539,543,546,552,692,698,702,707,831,836,847,865,867,871,875,878,987,999,1005,1009,1020,1110,1120,1177,1181,1188,1193,1207,1213,1227,1231,1240,1306,1311,1313,1317,1321,1331,1335,1345,1433,1446,2593,2597,2603,2642,2648,2650,2654,2658,2668,2673,2702,2706,2712,2806,2809,2881,2885,2888,2943,2956,2958,2962,2965,2971,2979,2985,2990,2996,3004,3010,3028,3034,3045,3051,3063,3069,3083,3085,3089,3093,3100,3311,3314,3318,3321,3392,3395,3397,3401,3405,3408,3419,3423,3429,3441,3444],[10,11,5],"h1",{"id":12},"amendment-lifecycle",[14,15],"hr",{},[17,18,20],"h2",{"id":19},"introduction","Introduction",[22,23,24],"p",{},"The lifecycle of an amendment on XRPL is a carefully orchestrated process that ensures protocol changes are adopted in a coordinated and consensual manner across the decentralized network. This process involves several distinct phases, each with its own rules, timeouts, and transition mechanisms.",[22,26,27,28,32],{},"In this section, we will follow the complete journey of the ",[29,30,31],"strong",{},"Subscriptions"," amendment (XLS-0078) from its initial conception to its final activation on the ledger. This amendment introduces a subscription mechanism (recurring payments) on XRPL, allowing account owners to authorize automatic recurring payments with predefined parameters including amount, frequency, and destination - similar to bank direct debits.",[22,34,35],{},"Understanding this lifecycle is essential for anticipating when a protocol change will become effective, coordinating node updates, and managing risks associated with protocol transitions.",[14,37],{},[17,39,41],{"id":40},"lifecycle-overview","Lifecycle Overview",[22,43,44],{},"The lifecycle of an amendment can be represented by the following phases:",[46,47,52],"pre",{"className":48,"code":50,"language":51},[49],"language-text","┌─────────────┐\n│  Proposal   │  Code developed, amendment added to registry\n└──────┬──────┘\n       │\n       ▼\n┌─────────────┐\n│    Vote     │  Validators vote for\u002Fagainst the amendment\n└──────┬──────┘\n       │\n       ▼\n┌─────────────┐\n│  Majority   │  More than 80% of validators vote for (2 weeks minimum)\n└──────┬──────┘\n       │\n       ▼\n┌─────────────┐\n│ Activation  │  EnableAmendment pseudo-transaction injected\n└──────┬──────┘\n       │\n       ▼\n┌─────────────┐\n│ Enablement  │  Amendment active, new rules applied\n└─────────────┘\n","text",[53,54,50],"code",{"__ignoreMap":55},"",[22,57,58],{},"Each phase has specific criteria that must be satisfied before moving to the next. Let's now explore each phase in detail following the Subscriptions example.",[14,60],{},[17,62,64],{"id":63},"phase-1-proposal","Phase 1: Proposal",[66,67,69],"h3",{"id":68},"code-development","Code Development",[22,71,72],{},"The first phase begins with the development of code that implements the new functionality. For Subscriptions (XLS-0078), this includes:",[22,74,75,78],{},[29,76,77],{},"New data structures",":",[80,81,82,90],"ul",{},[83,84,85,86,89],"li",{},"Ledger entry type ",[53,87,88],{},"ltSUBSCRIPTION"," (0x0055) to store recurring payment authorizations",[83,91,92,93],{},"New fields:\n",[80,94,95,101,107,113,119,125,131],{},[83,96,97,100],{},[53,98,99],{},"sfAccount",": Subscription owner account",[83,102,103,106],{},[53,104,105],{},"sfDestination",": Subscription receiver account",[83,108,109,112],{},[53,110,111],{},"sfDestinationTag"," (optional): Tag to categorize payments",[83,114,115,118],{},[53,116,117],{},"sfAmount",": Maximum amount that can be withdrawn per period",[83,120,121,124],{},[53,122,123],{},"sfFrequency",": Interval in seconds between periods",[83,126,127,130],{},[53,128,129],{},"sfNextPaymentTime",": Timestamp of next possible claim",[83,132,133,136],{},[53,134,135],{},"sfExpiration"," (optional): Timestamp of last possible period",[22,138,139,78],{},[29,140,141],{},"New transactions",[80,143,144,150,156],{},[83,145,146,149],{},[53,147,148],{},"ttSUBSCRIPTION_SET",": Create or modify a subscription (creation requires Destination, Amount, Frequency)",[83,151,152,155],{},[53,153,154],{},"ttSUBSCRIPTION_CLAIM",": Claim a payment within available balance limits",[83,157,158,161],{},[53,159,160],{},"ttSUBSCRIPTION_CANCEL",": Cancel an existing subscription (owner or destination can initiate)",[22,163,164,78],{},[29,165,166],{},"Validation logic",[80,168,169,183,186,189,192,195,198],{},[83,170,171,172,175,176,179,180],{},"Checks in ",[53,173,174],{},"preflight",", ",[53,177,178],{},"preclaim",", and ",[53,181,182],{},"doApply",[83,184,185],{},"Management of amounts per period (≤ Amount)",[83,187,188],{},"Support for XRP, IOUs (with trustlines and transfer rates), and MPTs (Multi-Purpose Tokens)",[83,190,191],{},"Arrears management: if a period passes without claim, the opportunity is lost and NextPaymentTime advances by one Frequency interval",[83,193,194],{},"Single claim per period to avoid spam",[83,196,197],{},"Respect freeze states (IOU) and lock (MPT)",[83,199,200],{},"Auto-creation of trustlines and MPToken holdings if authorizations and reserves are sufficient",[22,202,203,206,207],{},[29,204,205],{},"Reference",": ",[208,209,213],"a",{"href":210,"rel":211},"https:\u002F\u002Fgithub.com\u002FXRPLF\u002FXRPL-Standards\u002Ftree\u002Fmaster\u002FXLS-0078-subscriptions",[212],"nofollow","XLS-0078 Subscriptions",[66,215,217],{"id":216},"amendment-registration","Amendment Registration",[22,219,220,221,78],{},"Once the code is ready, the amendment is registered in the system via ",[53,222,223],{},"features.macro",[46,225,229],{"className":226,"code":227,"language":228,"meta":55,"style":55},"language-cpp shiki shiki-themes github-dark-high-contrast","XRPL_FEATURE(Subscriptions, Supported::yes, VoteBehavior::DefaultNo)\n","cpp",[53,230,231],{"__ignoreMap":55},[232,233,236,240,244,248,251,254],"span",{"class":234,"line":235},"line",1,[232,237,239],{"class":238},"sj_SG","XRPL_FEATURE",[232,241,243],{"class":242},"sMAXC","(Subscriptions, ",[232,245,247],{"class":246},"s_sBn","Supported",[232,249,250],{"class":242},"::yes, ",[232,252,253],{"class":246},"VoteBehavior",[232,255,256],{"class":242},"::DefaultNo)\n",[22,258,259,78],{},[29,260,261],{},"Parameters",[80,263,264,269,275],{},[83,265,266,268],{},[53,267,31],{},": Amendment name",[83,270,271,274],{},[53,272,273],{},"Supported::yes",": The code is included and supported",[83,276,277,280],{},[53,278,279],{},"VoteBehavior::DefaultNo",": By default, nodes do not vote for (requires explicit activation)",[66,282,284],{"id":283},"hash-calculation","Hash Calculation",[22,286,287],{},"The amendment hash is calculated automatically:",[46,289,292],{"className":290,"code":291,"language":51},[49],"Name: \"Subscriptions\"\nMethod: SHA-512Half(name)\nHash: 7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\n",[53,293,291],{"__ignoreMap":55},[22,295,296],{},"This hash is the unique identifier that will be used in all network communications and data structures.",[66,298,300],{"id":299},"code-distribution","Code Distribution",[22,302,303],{},"The code containing the new amendment is distributed via:",[80,305,306,309,312,315],{},[83,307,308],{},"A new version of rippled (e.g., 2.3.0)",[83,310,311],{},"Publication on GitHub with detailed release notes",[83,313,314],{},"Announcements on community communication channels",[83,316,317],{},"Documentation on XRPL.org and link to XLS-0078",[22,319,320,321,324],{},"At this stage, the amendment exists in the code but is ",[29,322,323],{},"not yet enabled",". Nodes that update to this version recognize the amendment but do not apply it yet.",[14,326],{},[17,328,330],{"id":329},"phase-2-vote","Phase 2: Vote",[66,332,334],{"id":333},"vote-activation-by-validators","Vote Activation by Validators",[22,336,337,338,78],{},"Validators must explicitly activate their vote for the amendment. This is typically done via the RPC command ",[53,339,340],{},"feature",[46,342,346],{"className":343,"code":344,"language":345,"meta":55,"style":55},"language-bash shiki shiki-themes github-dark-high-contrast","# Vote for the amendment\nrippled feature 7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8 accept\n","bash",[53,347,348,354],{"__ignoreMap":55},[232,349,350],{"class":234,"line":235},[232,351,353],{"class":352},"sQrFR","# Vote for the amendment\n",[232,355,357,360,364,367],{"class":234,"line":356},2,[232,358,359],{"class":246},"rippled",[232,361,363],{"class":362},"sTRMh"," feature",[232,365,366],{"class":362}," 7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8",[232,368,369],{"class":362}," accept\n",[22,371,372],{},"Or by modifying the configuration file:",[46,374,378],{"className":375,"code":376,"language":377,"meta":55,"style":55},"language-ini shiki shiki-themes github-dark-high-contrast","[amendments]\n7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\n","ini",[53,379,380,385],{"__ignoreMap":55},[232,381,382],{"class":234,"line":235},[232,383,384],{"class":246},"[amendments]\n",[232,386,387],{"class":234,"line":356},[232,388,389],{"class":242},"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\n",[66,391,393],{"id":392},"inclusion-in-validations","Inclusion in Validations",[22,395,396],{},"Once a validator has activated their vote, this vote is included in each validation they publish. The validation contains:",[46,398,400],{"className":226,"code":399,"language":228,"meta":55,"style":55},"\u002F\u002F Simplified structure of a validation\nstruct STValidation {\n    uint256 ledgerHash;           \u002F\u002F Hash of validated ledger\n    uint32 ledgerSeq;             \u002F\u002F Sequence number\n    NetClock::time_point signTime; \u002F\u002F Signing moment\n    PublicKey publicKey;          \u002F\u002F Validator's public key\n\n    \u002F\u002F List of supported amendments\n    std::vector\u003Cuint256> amendments;\n\n    \u002F\u002F Validation signature\n    Buffer signature;\n};\n",[53,401,402,407,419,431,443,461,473,480,486,506,511,517,526],{"__ignoreMap":55},[232,403,404],{"class":234,"line":235},[232,405,406],{"class":352},"\u002F\u002F Simplified structure of a validation\n",[232,408,409,413,416],{"class":234,"line":356},[232,410,412],{"class":411},"sWyjQ","struct",[232,414,415],{"class":246}," STValidation",[232,417,418],{"class":242}," {\n",[232,420,422,425,428],{"class":234,"line":421},3,[232,423,424],{"class":246},"    uint256",[232,426,427],{"class":242}," ledgerHash;",[232,429,430],{"class":352},"           \u002F\u002F Hash of validated ledger\n",[232,432,434,437,440],{"class":234,"line":433},4,[232,435,436],{"class":246},"    uint32",[232,438,439],{"class":242}," ledgerSeq;",[232,441,442],{"class":352},"             \u002F\u002F Sequence number\n",[232,444,446,449,452,455,458],{"class":234,"line":445},5,[232,447,448],{"class":246},"    NetClock",[232,450,451],{"class":242},"::",[232,453,454],{"class":246},"time_point",[232,456,457],{"class":242}," signTime;",[232,459,460],{"class":352}," \u002F\u002F Signing moment\n",[232,462,464,467,470],{"class":234,"line":463},6,[232,465,466],{"class":246},"    PublicKey",[232,468,469],{"class":242}," publicKey;",[232,471,472],{"class":352},"          \u002F\u002F Validator's public key\n",[232,474,476],{"class":234,"line":475},7,[232,477,479],{"emptyLinePlaceholder":478},true,"\n",[232,481,483],{"class":234,"line":482},8,[232,484,485],{"class":352},"    \u002F\u002F List of supported amendments\n",[232,487,489,492,494,497,500,503],{"class":234,"line":488},9,[232,490,491],{"class":246},"    std",[232,493,451],{"class":242},[232,495,496],{"class":246},"vector",[232,498,499],{"class":242},"\u003C",[232,501,502],{"class":246},"uint256",[232,504,505],{"class":242},"> amendments;\n",[232,507,509],{"class":234,"line":508},10,[232,510,479],{"emptyLinePlaceholder":478},[232,512,514],{"class":234,"line":513},11,[232,515,516],{"class":352},"    \u002F\u002F Validation signature\n",[232,518,520,523],{"class":234,"line":519},12,[232,521,522],{"class":246},"    Buffer",[232,524,525],{"class":242}," signature;\n",[232,527,529],{"class":234,"line":528},13,[232,530,531],{"class":242},"};\n",[22,533,534,535,538],{},"The ",[53,536,537],{},"amendments"," field contains the list of all amendments the validator wishes to see enabled, including Subscriptions.",[66,540,542],{"id":541},"vote-collection","Vote Collection",[22,544,545],{},"Each node on the network collects validations received from trusted validators and extracts their amendment votes. The system maintains:",[22,547,548,551],{},[29,549,550],{},"TrustedVotes",": Structure that aggregates votes over a time period",[46,553,555],{"className":226,"code":554,"language":228,"meta":55,"style":55},"class TrustedVotes {\n    \u002F\u002F Map: Amendment hash -> Number of votes\n    hash_map\u003Cuint256, int> votes_;\n\n    \u002F\u002F Total number of trusted validators\n    int trustedValidations_;\n\n    \u002F\u002F Expire votes that are too old\n    void expire(NetClock::time_point now);\n\n    \u002F\u002F Retrieve aggregated votes\n    std::pair\u003Cint, hash_map\u003Cuint256, int>>\n        getVotes(Rules const& rules);\n};\n",[53,556,557,567,572,589,593,598,606,610,615,639,643,648,669,687],{"__ignoreMap":55},[232,558,559,562,565],{"class":234,"line":235},[232,560,561],{"class":411},"class",[232,563,564],{"class":246}," TrustedVotes",[232,566,418],{"class":242},[232,568,569],{"class":234,"line":356},[232,570,571],{"class":352},"    \u002F\u002F Map: Amendment hash -> Number of votes\n",[232,573,574,577,579,581,583,586],{"class":234,"line":421},[232,575,576],{"class":246},"    hash_map",[232,578,499],{"class":242},[232,580,502],{"class":246},[232,582,175],{"class":242},[232,584,585],{"class":411},"int",[232,587,588],{"class":242},"> votes_;\n",[232,590,591],{"class":234,"line":433},[232,592,479],{"emptyLinePlaceholder":478},[232,594,595],{"class":234,"line":445},[232,596,597],{"class":352},"    \u002F\u002F Total number of trusted validators\n",[232,599,600,603],{"class":234,"line":463},[232,601,602],{"class":411},"    int",[232,604,605],{"class":242}," trustedValidations_;\n",[232,607,608],{"class":234,"line":475},[232,609,479],{"emptyLinePlaceholder":478},[232,611,612],{"class":234,"line":482},[232,613,614],{"class":352},"    \u002F\u002F Expire votes that are too old\n",[232,616,617,620,623,626,629,631,633,636],{"class":234,"line":488},[232,618,619],{"class":411},"    void",[232,621,622],{"class":238}," expire",[232,624,625],{"class":242},"(",[232,627,628],{"class":246},"NetClock",[232,630,451],{"class":242},[232,632,454],{"class":246},[232,634,635],{"class":246}," now",[232,637,638],{"class":242},");\n",[232,640,641],{"class":234,"line":508},[232,642,479],{"emptyLinePlaceholder":478},[232,644,645],{"class":234,"line":513},[232,646,647],{"class":352},"    \u002F\u002F Retrieve aggregated votes\n",[232,649,650,652,655,658,661,663,666],{"class":234,"line":519},[232,651,491],{"class":246},[232,653,654],{"class":242},"::pair",[232,656,657],{"class":411},"\u003Cint",[232,659,660],{"class":242},", hash_map",[232,662,499],{"class":411},[232,664,665],{"class":242},"uint256, ",[232,667,668],{"class":411},"int>>\n",[232,670,671,674,676,679,682,685],{"class":234,"line":528},[232,672,673],{"class":238},"        getVotes",[232,675,625],{"class":242},[232,677,678],{"class":246},"Rules",[232,680,681],{"class":411}," const&",[232,683,684],{"class":246}," rules",[232,686,638],{"class":242},[232,688,690],{"class":234,"line":689},14,[232,691,531],{"class":242},[22,693,694,697],{},[29,695,696],{},"Freshness period",": Votes have a limited lifetime (typically 5 minutes). A vote expires if it is not reaffirmed by a new validation within this time. This ensures that vote counts reflect the current state of the network.",[66,699,701],{"id":700},"status-monitoring","Status Monitoring",[22,703,704,705,78],{},"During the voting phase, the status of Subscriptions can be queried via the RPC command ",[53,706,340],{},[46,708,712],{"className":709,"code":710,"language":711,"meta":55,"style":55},"language-json shiki shiki-themes github-dark-high-contrast","{\n  \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\": {\n    \"count\": 15,              \u002F\u002F 15 validators vote for\n    \"enabled\": false,         \u002F\u002F Not yet enabled\n    \"name\": \"Subscriptions\",\n    \"supported\": true,        \u002F\u002F This node supports the amendment\n    \"threshold\": 20,          \u002F\u002F threshold = floor(25 * 0.8) = 20\n    \"validations\": 25,        \u002F\u002F 25 trusted validators in total\n  }\n}\n","json",[53,713,714,719,728,745,761,774,790,806,821,826],{"__ignoreMap":55},[232,715,716],{"class":234,"line":235},[232,717,718],{"class":242},"{\n",[232,720,721,725],{"class":234,"line":356},[232,722,724],{"class":723},"sKpQp","  \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\"",[232,726,727],{"class":242},": {\n",[232,729,730,733,735,739,742],{"class":234,"line":421},[232,731,732],{"class":723},"    \"count\"",[232,734,206],{"class":242},[232,736,738],{"class":737},"sCcAr","15",[232,740,741],{"class":242},",              ",[232,743,744],{"class":352},"\u002F\u002F 15 validators vote for\n",[232,746,747,750,752,755,758],{"class":234,"line":433},[232,748,749],{"class":723},"    \"enabled\"",[232,751,206],{"class":242},[232,753,754],{"class":737},"false",[232,756,757],{"class":242},",         ",[232,759,760],{"class":352},"\u002F\u002F Not yet enabled\n",[232,762,763,766,768,771],{"class":234,"line":445},[232,764,765],{"class":723},"    \"name\"",[232,767,206],{"class":242},[232,769,770],{"class":362},"\"Subscriptions\"",[232,772,773],{"class":242},",\n",[232,775,776,779,781,784,787],{"class":234,"line":463},[232,777,778],{"class":723},"    \"supported\"",[232,780,206],{"class":242},[232,782,783],{"class":737},"true",[232,785,786],{"class":242},",        ",[232,788,789],{"class":352},"\u002F\u002F This node supports the amendment\n",[232,791,792,795,797,800,803],{"class":234,"line":475},[232,793,794],{"class":723},"    \"threshold\"",[232,796,206],{"class":242},[232,798,799],{"class":737},"20",[232,801,802],{"class":242},",          ",[232,804,805],{"class":352},"\u002F\u002F threshold = floor(25 * 0.8) = 20\n",[232,807,808,811,813,816,818],{"class":234,"line":482},[232,809,810],{"class":723},"    \"validations\"",[232,812,206],{"class":242},[232,814,815],{"class":737},"25",[232,817,786],{"class":242},[232,819,820],{"class":352},"\u002F\u002F 25 trusted validators in total\n",[232,822,823],{"class":234,"line":488},[232,824,825],{"class":242},"  }\n",[232,827,828],{"class":234,"line":508},[232,829,830],{"class":242},"}\n",[22,832,833,78],{},[29,834,835],{},"Interpretation",[80,837,838,841,844],{},[83,839,840],{},"15 out of 25 validators vote for Subscriptions (60%)",[83,842,843],{},"The 80% threshold is not yet exceeded (need more than 20 votes, so minimum 21)",[83,845,846],{},"The amendment is supported but not enabled",[22,848,849,852,853,856,857,860,861,864],{},[29,850,851],{},"Note on threshold",": The ",[53,854,855],{},"threshold"," field displays ",[53,858,859],{},"floor(validations * 0.8)"," = 20, but the comparison in the code uses ",[53,862,863],{},"votes > threshold",", so 21 votes minimum are needed to reach majority.",[14,866],{},[17,868,870],{"id":869},"phase-3-majority","Phase 3: Majority",[66,872,874],{"id":873},"exceeding-the-80-threshold","Exceeding the 80% Threshold",[22,876,877],{},"When enough validators activate their vote, the amendment exceeds the required threshold. Let's assume 6 additional validators activate their vote:",[46,879,881],{"className":709,"code":880,"language":711,"meta":55,"style":55},"{\n  \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\": {\n    \"count\": 21,              \u002F\u002F 21 validators vote for (84%)\n    \"enabled\": false,         \u002F\u002F Still not enabled\n    \"majority\": 805385181,    \u002F\u002F ← NEW: XRPL timestamp when majority reached\n    \"name\": \"Subscriptions\",\n    \"supported\": true,\n    \"threshold\": 20,          \u002F\u002F floor(25 * 0.8) = 20\n    \"validations\": 25,\n  }\n}\n",[53,882,883,887,893,907,920,936,946,956,969,979,983],{"__ignoreMap":55},[232,884,885],{"class":234,"line":235},[232,886,718],{"class":242},[232,888,889,891],{"class":234,"line":356},[232,890,724],{"class":723},[232,892,727],{"class":242},[232,894,895,897,899,902,904],{"class":234,"line":421},[232,896,732],{"class":723},[232,898,206],{"class":242},[232,900,901],{"class":737},"21",[232,903,741],{"class":242},[232,905,906],{"class":352},"\u002F\u002F 21 validators vote for (84%)\n",[232,908,909,911,913,915,917],{"class":234,"line":433},[232,910,749],{"class":723},[232,912,206],{"class":242},[232,914,754],{"class":737},[232,916,757],{"class":242},[232,918,919],{"class":352},"\u002F\u002F Still not enabled\n",[232,921,922,925,927,930,933],{"class":234,"line":445},[232,923,924],{"class":723},"    \"majority\"",[232,926,206],{"class":242},[232,928,929],{"class":737},"805385181",[232,931,932],{"class":242},",    ",[232,934,935],{"class":352},"\u002F\u002F ← NEW: XRPL timestamp when majority reached\n",[232,937,938,940,942,944],{"class":234,"line":463},[232,939,765],{"class":723},[232,941,206],{"class":242},[232,943,770],{"class":362},[232,945,773],{"class":242},[232,947,948,950,952,954],{"class":234,"line":475},[232,949,778],{"class":723},[232,951,206],{"class":242},[232,953,783],{"class":737},[232,955,773],{"class":242},[232,957,958,960,962,964,966],{"class":234,"line":482},[232,959,794],{"class":723},[232,961,206],{"class":242},[232,963,799],{"class":737},[232,965,802],{"class":242},[232,967,968],{"class":352},"\u002F\u002F floor(25 * 0.8) = 20\n",[232,970,971,973,975,977],{"class":234,"line":488},[232,972,810],{"class":723},[232,974,206],{"class":242},[232,976,815],{"class":737},[232,978,773],{"class":242},[232,980,981],{"class":234,"line":508},[232,982,825],{"class":242},[232,984,985],{"class":234,"line":513},[232,986,830],{"class":242},[22,988,989,995,996,998],{},[29,990,534,991,994],{},[53,992,993],{},"majority"," field",": This is the critical moment. This field contains the XRPL Time (seconds since 2000-01-01 00:00:00 UTC) when the 80% threshold was first exceeded (count > threshold). In our example: ",[53,997,929],{}," corresponds approximately to a date in 2025.",[22,1000,1001,1004],{},[29,1002,1003],{},"Support calculation",": 21\u002F25 = 84% > 80% ✓",[66,1006,1008],{"id":1007},"tfgotmajority-pseudo-transaction","tfGotMajority Pseudo-transaction",[22,1010,1011,1012,1015,1016,1019],{},"When the threshold is reached, an ",[53,1013,1014],{},"EnableAmendment"," pseudo-transaction with the ",[53,1017,1018],{},"tfGotMajority"," flag is injected into the ledger:",[46,1021,1023],{"className":709,"code":1022,"language":711,"meta":55,"style":55},"{\n  \"TransactionType\": \"EnableAmendment\",\n  \"Account\": \"rrrrrrrrrrrrrrrrrrrrrhoLvTp\",  \u002F\u002F Special network account\n  \"Amendment\": \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\",\n  \"Flags\": 65536,  \u002F\u002F tfGotMajority = 0x00010000\n  \"LedgerSequence\": 85432190,\n  \"TransactionIndex\": 0\n}\n",[53,1024,1025,1029,1041,1057,1069,1084,1096,1106],{"__ignoreMap":55},[232,1026,1027],{"class":234,"line":235},[232,1028,718],{"class":242},[232,1030,1031,1034,1036,1039],{"class":234,"line":356},[232,1032,1033],{"class":723},"  \"TransactionType\"",[232,1035,206],{"class":242},[232,1037,1038],{"class":362},"\"EnableAmendment\"",[232,1040,773],{"class":242},[232,1042,1043,1046,1048,1051,1054],{"class":234,"line":421},[232,1044,1045],{"class":723},"  \"Account\"",[232,1047,206],{"class":242},[232,1049,1050],{"class":362},"\"rrrrrrrrrrrrrrrrrrrrrhoLvTp\"",[232,1052,1053],{"class":242},",  ",[232,1055,1056],{"class":352},"\u002F\u002F Special network account\n",[232,1058,1059,1062,1064,1067],{"class":234,"line":433},[232,1060,1061],{"class":723},"  \"Amendment\"",[232,1063,206],{"class":242},[232,1065,1066],{"class":362},"\"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\"",[232,1068,773],{"class":242},[232,1070,1071,1074,1076,1079,1081],{"class":234,"line":445},[232,1072,1073],{"class":723},"  \"Flags\"",[232,1075,206],{"class":242},[232,1077,1078],{"class":737},"65536",[232,1080,1053],{"class":242},[232,1082,1083],{"class":352},"\u002F\u002F tfGotMajority = 0x00010000\n",[232,1085,1086,1089,1091,1094],{"class":234,"line":463},[232,1087,1088],{"class":723},"  \"LedgerSequence\"",[232,1090,206],{"class":242},[232,1092,1093],{"class":737},"85432190",[232,1095,773],{"class":242},[232,1097,1098,1101,1103],{"class":234,"line":475},[232,1099,1100],{"class":723},"  \"TransactionIndex\"",[232,1102,206],{"class":242},[232,1104,1105],{"class":737},"0\n",[232,1107,1108],{"class":234,"line":482},[232,1109,830],{"class":242},[22,1111,1112,1115,1116,1119],{},[29,1113,1114],{},"Impact on ledger",": This pseudo-transaction adds an entry to the ",[53,1117,1118],{},"sfMajorities"," field of the global ledger object:",[46,1121,1123],{"className":709,"code":1122,"language":711,"meta":55,"style":55},"{\n  \"Majorities\": [\n    {\n      \"Amendment\": \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\",\n      \"CloseTime\": 805385181\n    }\n  ]\n}\n",[53,1124,1125,1129,1137,1142,1153,1163,1168,1173],{"__ignoreMap":55},[232,1126,1127],{"class":234,"line":235},[232,1128,718],{"class":242},[232,1130,1131,1134],{"class":234,"line":356},[232,1132,1133],{"class":723},"  \"Majorities\"",[232,1135,1136],{"class":242},": [\n",[232,1138,1139],{"class":234,"line":421},[232,1140,1141],{"class":242},"    {\n",[232,1143,1144,1147,1149,1151],{"class":234,"line":433},[232,1145,1146],{"class":723},"      \"Amendment\"",[232,1148,206],{"class":242},[232,1150,1066],{"class":362},[232,1152,773],{"class":242},[232,1154,1155,1158,1160],{"class":234,"line":445},[232,1156,1157],{"class":723},"      \"CloseTime\"",[232,1159,206],{"class":242},[232,1161,1162],{"class":737},"805385181\n",[232,1164,1165],{"class":234,"line":463},[232,1166,1167],{"class":242},"    }\n",[232,1169,1170],{"class":234,"line":475},[232,1171,1172],{"class":242},"  ]\n",[232,1174,1175],{"class":234,"line":482},[232,1176,830],{"class":242},[66,1178,1180],{"id":1179},"two-week-stability-period","Two-Week Stability Period",[22,1182,1183,1184,1187],{},"From this moment, the amendment enters a mandatory ",[29,1185,1186],{},"two-week"," stability period (more precisely, two flag ledgers). Flag ledgers are special ledgers that occur approximately every 15 minutes (256 ledgers).",[22,1189,1190,78],{},[29,1191,1192],{},"Duration calculation",[80,1194,1195,1198,1201],{},[83,1196,1197],{},"1 flag ledger ≈ 15 minutes (256 ledgers × 3.5 seconds\u002Fledger)",[83,1199,1200],{},"2 flag ledgers ≈ 30 minutes in terms of ledgers",[83,1202,1203,1204],{},"But in practice, the minimum period is ",[29,1205,1206],{},"2 weeks in real time",[22,1208,1209,1212],{},[29,1210,1211],{},"Reason for the period",": This window allows:",[80,1214,1215,1218,1221,1224],{},[83,1216,1217],{},"Node operators to prepare and update their systems",[83,1219,1220],{},"The community to detect any potential problems",[83,1222,1223],{},"Exchanges and wallets to adapt their integrations to support subscriptions",[83,1225,1226],{},"A last opportunity for validators to withdraw their vote if necessary",[66,1228,1230],{"id":1229},"loss-of-majority-edge-case","Loss of Majority (Edge Case)",[22,1232,1233,1234,1015,1236,1239],{},"If during the stability period support falls below 80%, the amendment loses its majority. An ",[53,1235,1014],{},[53,1237,1238],{},"tfLostMajority"," flag is injected:",[46,1241,1243],{"className":709,"code":1242,"language":711,"meta":55,"style":55},"{\n  \"TransactionType\": \"EnableAmendment\",\n  \"Account\": \"rrrrrrrrrrrrrrrrrrrrrhoLvTp\",\n  \"Amendment\": \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\",\n  \"Flags\": 131072,  \u002F\u002F tfLostMajority = 0x00020000\n  \"LedgerSequence\": 85435000\n}\n",[53,1244,1245,1249,1259,1269,1279,1293,1302],{"__ignoreMap":55},[232,1246,1247],{"class":234,"line":235},[232,1248,718],{"class":242},[232,1250,1251,1253,1255,1257],{"class":234,"line":356},[232,1252,1033],{"class":723},[232,1254,206],{"class":242},[232,1256,1038],{"class":362},[232,1258,773],{"class":242},[232,1260,1261,1263,1265,1267],{"class":234,"line":421},[232,1262,1045],{"class":723},[232,1264,206],{"class":242},[232,1266,1050],{"class":362},[232,1268,773],{"class":242},[232,1270,1271,1273,1275,1277],{"class":234,"line":433},[232,1272,1061],{"class":723},[232,1274,206],{"class":242},[232,1276,1066],{"class":362},[232,1278,773],{"class":242},[232,1280,1281,1283,1285,1288,1290],{"class":234,"line":445},[232,1282,1073],{"class":723},[232,1284,206],{"class":242},[232,1286,1287],{"class":737},"131072",[232,1289,1053],{"class":242},[232,1291,1292],{"class":352},"\u002F\u002F tfLostMajority = 0x00020000\n",[232,1294,1295,1297,1299],{"class":234,"line":463},[232,1296,1088],{"class":723},[232,1298,206],{"class":242},[232,1300,1301],{"class":737},"85435000\n",[232,1303,1304],{"class":234,"line":475},[232,1305,830],{"class":242},[22,1307,534,1308,1310],{},[53,1309,993],{}," field disappears from the amendment status, and the countdown restarts from zero if the threshold is reached again.",[14,1312],{},[17,1314,1316],{"id":1315},"phase-4-activation","Phase 4: Activation",[66,1318,1320],{"id":1319},"expiration-of-stability-period","Expiration of Stability Period",[22,1322,1323,1324,1327,1328,1330],{},"After two weeks of uninterrupted majority, the amendment is ready to be activated. The network automatically calculates when this moment arrives based on the ",[53,1325,1326],{},"CloseTime"," recorded in ",[53,1329,1118],{},".",[66,1332,1334],{"id":1333},"enableamendment-pseudo-transaction","EnableAmendment Pseudo-transaction",[22,1336,1337,1338,1340,1341,1344],{},"At the next flag ledger after the period expires, an ",[53,1339,1014],{}," pseudo-transaction ",[29,1342,1343],{},"without flags"," is injected:",[46,1346,1348],{"className":709,"code":1347,"language":711,"meta":55,"style":55},"{\n  \"TransactionType\": \"EnableAmendment\",\n  \"Account\": \"rrrrrrrrrrrrrrrrrrrrrhoLvTp\",\n  \"Amendment\": \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\",\n  \"Flags\": 0,  \u002F\u002F No flag = activation\n  \"LedgerSequence\": 85987654,\n  \"TransactionIndex\": 0,\n  \"hash\": \"491378DA1BAAE870A6C247B3E42193E80E507A50858A4E51217685E2765E6CE8\"\n}\n",[53,1349,1350,1354,1364,1374,1384,1398,1409,1419,1429],{"__ignoreMap":55},[232,1351,1352],{"class":234,"line":235},[232,1353,718],{"class":242},[232,1355,1356,1358,1360,1362],{"class":234,"line":356},[232,1357,1033],{"class":723},[232,1359,206],{"class":242},[232,1361,1038],{"class":362},[232,1363,773],{"class":242},[232,1365,1366,1368,1370,1372],{"class":234,"line":421},[232,1367,1045],{"class":723},[232,1369,206],{"class":242},[232,1371,1050],{"class":362},[232,1373,773],{"class":242},[232,1375,1376,1378,1380,1382],{"class":234,"line":433},[232,1377,1061],{"class":723},[232,1379,206],{"class":242},[232,1381,1066],{"class":362},[232,1383,773],{"class":242},[232,1385,1386,1388,1390,1393,1395],{"class":234,"line":445},[232,1387,1073],{"class":723},[232,1389,206],{"class":242},[232,1391,1392],{"class":737},"0",[232,1394,1053],{"class":242},[232,1396,1397],{"class":352},"\u002F\u002F No flag = activation\n",[232,1399,1400,1402,1404,1407],{"class":234,"line":463},[232,1401,1088],{"class":723},[232,1403,206],{"class":242},[232,1405,1406],{"class":737},"85987654",[232,1408,773],{"class":242},[232,1410,1411,1413,1415,1417],{"class":234,"line":475},[232,1412,1100],{"class":723},[232,1414,206],{"class":242},[232,1416,1392],{"class":737},[232,1418,773],{"class":242},[232,1420,1421,1424,1426],{"class":234,"line":482},[232,1422,1423],{"class":723},"  \"hash\"",[232,1425,206],{"class":242},[232,1427,1428],{"class":362},"\"491378DA1BAAE870A6C247B3E42193E80E507A50858A4E51217685E2765E6CE8\"\n",[232,1430,1431],{"class":234,"line":488},[232,1432,830],{"class":242},[22,1434,1435,1438,1439,1442,1443,78],{},[29,1436,1437],{},"Processing by Change::applyAmendment",": This pseudo-transaction is processed by the ",[53,1440,1441],{},"Change::applyAmendment()"," function in ",[53,1444,1445],{},"src\u002Fxrpld\u002Fapp\u002Ftx\u002Fdetail\u002FChange.cpp",[46,1447,1449],{"className":226,"code":1448,"language":228,"meta":55,"style":55},"TER Change::applyAmendment() {\n    \u002F\u002F Extract the amendment hash from the transaction\n    uint256 amendment(ctx_.tx.getFieldH256(sfAmendment));\n\n    \u002F\u002F Retrieve the key of the ledger's global amendments object\n    auto const k = keylet::amendments();\n\n    \u002F\u002F Read or create the amendments object\n    SLE::pointer amendmentObject = view().peek(k);\n\n    if (!amendmentObject)\n    {\n        \u002F\u002F If the object doesn't exist yet, create it (rare)\n        amendmentObject = std::make_shared\u003CSLE>(k);\n        view().insert(amendmentObject);\n    }\n\n    \u002F\u002F Read the list of already enabled amendments\n    STVector256 amendments = amendmentObject->getFieldV256(sfAmendments);\n\n    \u002F\u002F Check if this amendment is already enabled\n    if (std::find(amendments.begin(), amendments.end(), amendment) !=\n        amendments.end())\n        return tefALREADY;  \u002F\u002F Already enabled, do nothing\n\n    \u002F\u002F Extract flags from the transaction\n    auto flags = ctx_.tx.getFlags();\n\n    bool const gotMajority = (flags & tfGotMajority) != 0;\n    bool const lostMajority = (flags & tfLostMajority) != 0;\n\n    \u002F\u002F Check flag consistency (can't have both)\n    if (gotMajority && lostMajority)\n        return temINVALID_FLAG;\n\n    \u002F\u002F Prepare a new majorities array\n    STArray newMajorities(sfMajorities);\n\n    \u002F\u002F Iterate through existing majorities to update\n    bool found = false;\n    if (amendmentObject->isFieldPresent(sfMajorities))\n    {\n        STArray const& oldMajorities =\n            amendmentObject->getFieldArray(sfMajorities);\n\n        for (auto const& majority : oldMajorities)\n        {\n            if (majority.getFieldH256(sfAmendment) == amendment)\n            {\n                \u002F\u002F This amendment is already in majorities\n                if (gotMajority)\n                    return tefALREADY;  \u002F\u002F Already recorded as majority\n                found = true;  \u002F\u002F Found, don't copy it (lost majority)\n            }\n            else\n            {\n                \u002F\u002F Copy other majorities\n                newMajorities.push_back(majority);\n            }\n        }\n    }\n\n    \u002F\u002F If lostMajority but not in list, error\n    if (!found && lostMajority)\n        return tefALREADY;\n\n    if (gotMajority)\n    {\n        \u002F\u002F Amendment just reached majority\n        \u002F\u002F Add a new entry to sfMajorities\n        newMajorities.push_back(STObject::makeInnerObject(sfMajority));\n        auto& entry = newMajorities.back();\n        entry[sfAmendment] = amendment;\n        entry[sfCloseTime] =\n            view().parentCloseTime().time_since_epoch().count();\n\n        \u002F\u002F Warn if amendment is not supported by this node\n        if (!ctx_.app.getAmendmentTable().isSupported(amendment))\n        {\n            JLOG(j_.warn()) \u003C\u003C \"Unsupported amendment \" \u003C\u003C amendment\n                            \u003C\u003C \" received a majority.\";\n        }\n    }\n    else if (!lostMajority)\n    {\n        \u002F\u002F No flags = ACTIVATION of the amendment\n        \u002F\u002F Add to list of enabled amendments\n        amendments.push_back(amendment);\n        amendmentObject->setFieldV256(sfAmendments, amendments);\n\n        \u002F\u002F Enable locally in AmendmentTable\n        ctx_.app.getAmendmentTable().enable(amendment);\n\n        \u002F\u002F Check if supported - block node if not supported\n        if (!ctx_.app.getAmendmentTable().isSupported(amendment))\n        {\n            JLOG(j_.error()) \u003C\u003C \"Unsupported amendment \" \u003C\u003C amendment\n                             \u003C\u003C \" activated: server blocked.\";\n            ctx_.app.getOPs().setAmendmentBlocked();\n        }\n    }\n\n    \u002F\u002F Update the sfMajorities field\n    if (newMajorities.empty())\n        amendmentObject->makeFieldAbsent(sfMajorities);  \u002F\u002F Remove if empty\n    else\n        amendmentObject->setFieldArray(sfMajorities, newMajorities);\n\n    \u002F\u002F Save changes to ledger\n    view().update(amendmentObject);\n\n    return tesSUCCESS;\n}\n",[53,1450,1451,1467,1472,1488,1492,1497,1521,1525,1530,1557,1561,1575,1579,1584,1607,1621,1626,1631,1637,1657,1662,1668,1701,1712,1724,1729,1735,1753,1758,1789,1814,1819,1825,1839,1847,1852,1858,1870,1875,1881,1896,1910,1915,1930,1941,1946,1962,1968,1988,1994,2000,2009,2020,2037,2043,2049,2054,2060,2072,2077,2083,2088,2093,2099,2115,2123,2128,2135,2140,2146,2152,2173,2192,2203,2211,2234,2239,2245,2269,2274,2301,2312,2317,2322,2338,2343,2349,2355,2365,2377,2382,2388,2403,2408,2414,2433,2438,2458,2469,2485,2490,2495,2500,2506,2519,2533,2539,2550,2555,2561,2574,2579,2588],{"__ignoreMap":55},[232,1452,1453,1456,1459,1461,1464],{"class":234,"line":235},[232,1454,1455],{"class":246},"TER",[232,1457,1458],{"class":246}," Change",[232,1460,451],{"class":242},[232,1462,1463],{"class":238},"applyAmendment",[232,1465,1466],{"class":242},"() {\n",[232,1468,1469],{"class":234,"line":356},[232,1470,1471],{"class":352},"    \u002F\u002F Extract the amendment hash from the transaction\n",[232,1473,1474,1476,1479,1482,1485],{"class":234,"line":421},[232,1475,424],{"class":246},[232,1477,1478],{"class":238}," amendment",[232,1480,1481],{"class":242},"(ctx_.tx.",[232,1483,1484],{"class":238},"getFieldH256",[232,1486,1487],{"class":242},"(sfAmendment));\n",[232,1489,1490],{"class":234,"line":433},[232,1491,479],{"emptyLinePlaceholder":478},[232,1493,1494],{"class":234,"line":445},[232,1495,1496],{"class":352},"    \u002F\u002F Retrieve the key of the ledger's global amendments object\n",[232,1498,1499,1502,1505,1508,1511,1514,1516,1518],{"class":234,"line":463},[232,1500,1501],{"class":411},"    auto",[232,1503,1504],{"class":411}," const",[232,1506,1507],{"class":242}," k ",[232,1509,1510],{"class":411},"=",[232,1512,1513],{"class":246}," keylet",[232,1515,451],{"class":242},[232,1517,537],{"class":238},[232,1519,1520],{"class":242},"();\n",[232,1522,1523],{"class":234,"line":475},[232,1524,479],{"emptyLinePlaceholder":478},[232,1526,1527],{"class":234,"line":482},[232,1528,1529],{"class":352},"    \u002F\u002F Read or create the amendments object\n",[232,1531,1532,1535,1537,1540,1543,1545,1548,1551,1554],{"class":234,"line":488},[232,1533,1534],{"class":246},"    SLE",[232,1536,451],{"class":242},[232,1538,1539],{"class":246},"pointer",[232,1541,1542],{"class":242}," amendmentObject ",[232,1544,1510],{"class":411},[232,1546,1547],{"class":238}," view",[232,1549,1550],{"class":242},"().",[232,1552,1553],{"class":238},"peek",[232,1555,1556],{"class":242},"(k);\n",[232,1558,1559],{"class":234,"line":508},[232,1560,479],{"emptyLinePlaceholder":478},[232,1562,1563,1566,1569,1572],{"class":234,"line":513},[232,1564,1565],{"class":411},"    if",[232,1567,1568],{"class":242}," (",[232,1570,1571],{"class":411},"!",[232,1573,1574],{"class":242},"amendmentObject)\n",[232,1576,1577],{"class":234,"line":519},[232,1578,1141],{"class":242},[232,1580,1581],{"class":234,"line":528},[232,1582,1583],{"class":352},"        \u002F\u002F If the object doesn't exist yet, create it (rare)\n",[232,1585,1586,1589,1591,1594,1596,1599,1601,1604],{"class":234,"line":689},[232,1587,1588],{"class":242},"        amendmentObject ",[232,1590,1510],{"class":411},[232,1592,1593],{"class":246}," std",[232,1595,451],{"class":242},[232,1597,1598],{"class":238},"make_shared",[232,1600,499],{"class":242},[232,1602,1603],{"class":246},"SLE",[232,1605,1606],{"class":242},">(k);\n",[232,1608,1610,1613,1615,1618],{"class":234,"line":1609},15,[232,1611,1612],{"class":238},"        view",[232,1614,1550],{"class":242},[232,1616,1617],{"class":238},"insert",[232,1619,1620],{"class":242},"(amendmentObject);\n",[232,1622,1624],{"class":234,"line":1623},16,[232,1625,1167],{"class":242},[232,1627,1629],{"class":234,"line":1628},17,[232,1630,479],{"emptyLinePlaceholder":478},[232,1632,1634],{"class":234,"line":1633},18,[232,1635,1636],{"class":352},"    \u002F\u002F Read the list of already enabled amendments\n",[232,1638,1640,1643,1646,1648,1651,1654],{"class":234,"line":1639},19,[232,1641,1642],{"class":246},"    STVector256",[232,1644,1645],{"class":242}," amendments ",[232,1647,1510],{"class":411},[232,1649,1650],{"class":242}," amendmentObject->",[232,1652,1653],{"class":238},"getFieldV256",[232,1655,1656],{"class":242},"(sfAmendments);\n",[232,1658,1660],{"class":234,"line":1659},20,[232,1661,479],{"emptyLinePlaceholder":478},[232,1663,1665],{"class":234,"line":1664},21,[232,1666,1667],{"class":352},"    \u002F\u002F Check if this amendment is already enabled\n",[232,1669,1671,1673,1675,1678,1680,1683,1686,1689,1692,1695,1698],{"class":234,"line":1670},22,[232,1672,1565],{"class":411},[232,1674,1568],{"class":242},[232,1676,1677],{"class":246},"std",[232,1679,451],{"class":242},[232,1681,1682],{"class":238},"find",[232,1684,1685],{"class":242},"(amendments.",[232,1687,1688],{"class":238},"begin",[232,1690,1691],{"class":242},"(), amendments.",[232,1693,1694],{"class":238},"end",[232,1696,1697],{"class":242},"(), amendment) ",[232,1699,1700],{"class":411},"!=\n",[232,1702,1704,1707,1709],{"class":234,"line":1703},23,[232,1705,1706],{"class":242},"        amendments.",[232,1708,1694],{"class":238},[232,1710,1711],{"class":242},"())\n",[232,1713,1715,1718,1721],{"class":234,"line":1714},24,[232,1716,1717],{"class":411},"        return",[232,1719,1720],{"class":242}," tefALREADY;",[232,1722,1723],{"class":352},"  \u002F\u002F Already enabled, do nothing\n",[232,1725,1727],{"class":234,"line":1726},25,[232,1728,479],{"emptyLinePlaceholder":478},[232,1730,1732],{"class":234,"line":1731},26,[232,1733,1734],{"class":352},"    \u002F\u002F Extract flags from the transaction\n",[232,1736,1738,1740,1743,1745,1748,1751],{"class":234,"line":1737},27,[232,1739,1501],{"class":411},[232,1741,1742],{"class":242}," flags ",[232,1744,1510],{"class":411},[232,1746,1747],{"class":242}," ctx_.tx.",[232,1749,1750],{"class":238},"getFlags",[232,1752,1520],{"class":242},[232,1754,1756],{"class":234,"line":1755},28,[232,1757,479],{"emptyLinePlaceholder":478},[232,1759,1761,1764,1766,1769,1771,1774,1777,1780,1783,1786],{"class":234,"line":1760},29,[232,1762,1763],{"class":411},"    bool",[232,1765,1504],{"class":411},[232,1767,1768],{"class":242}," gotMajority ",[232,1770,1510],{"class":411},[232,1772,1773],{"class":242}," (flags ",[232,1775,1776],{"class":411},"&",[232,1778,1779],{"class":242}," tfGotMajority) ",[232,1781,1782],{"class":411},"!=",[232,1784,1785],{"class":737}," 0",[232,1787,1788],{"class":242},";\n",[232,1790,1792,1794,1796,1799,1801,1803,1805,1808,1810,1812],{"class":234,"line":1791},30,[232,1793,1763],{"class":411},[232,1795,1504],{"class":411},[232,1797,1798],{"class":242}," lostMajority ",[232,1800,1510],{"class":411},[232,1802,1773],{"class":242},[232,1804,1776],{"class":411},[232,1806,1807],{"class":242}," tfLostMajority) ",[232,1809,1782],{"class":411},[232,1811,1785],{"class":737},[232,1813,1788],{"class":242},[232,1815,1817],{"class":234,"line":1816},31,[232,1818,479],{"emptyLinePlaceholder":478},[232,1820,1822],{"class":234,"line":1821},32,[232,1823,1824],{"class":352},"    \u002F\u002F Check flag consistency (can't have both)\n",[232,1826,1828,1830,1833,1836],{"class":234,"line":1827},33,[232,1829,1565],{"class":411},[232,1831,1832],{"class":242}," (gotMajority ",[232,1834,1835],{"class":411},"&&",[232,1837,1838],{"class":242}," lostMajority)\n",[232,1840,1842,1844],{"class":234,"line":1841},34,[232,1843,1717],{"class":411},[232,1845,1846],{"class":242}," temINVALID_FLAG;\n",[232,1848,1850],{"class":234,"line":1849},35,[232,1851,479],{"emptyLinePlaceholder":478},[232,1853,1855],{"class":234,"line":1854},36,[232,1856,1857],{"class":352},"    \u002F\u002F Prepare a new majorities array\n",[232,1859,1861,1864,1867],{"class":234,"line":1860},37,[232,1862,1863],{"class":246},"    STArray",[232,1865,1866],{"class":238}," newMajorities",[232,1868,1869],{"class":242},"(sfMajorities);\n",[232,1871,1873],{"class":234,"line":1872},38,[232,1874,479],{"emptyLinePlaceholder":478},[232,1876,1878],{"class":234,"line":1877},39,[232,1879,1880],{"class":352},"    \u002F\u002F Iterate through existing majorities to update\n",[232,1882,1884,1886,1889,1891,1894],{"class":234,"line":1883},40,[232,1885,1763],{"class":411},[232,1887,1888],{"class":242}," found ",[232,1890,1510],{"class":411},[232,1892,1893],{"class":737}," false",[232,1895,1788],{"class":242},[232,1897,1899,1901,1904,1907],{"class":234,"line":1898},41,[232,1900,1565],{"class":411},[232,1902,1903],{"class":242}," (amendmentObject->",[232,1905,1906],{"class":238},"isFieldPresent",[232,1908,1909],{"class":242},"(sfMajorities))\n",[232,1911,1913],{"class":234,"line":1912},42,[232,1914,1141],{"class":242},[232,1916,1918,1921,1924,1927],{"class":234,"line":1917},43,[232,1919,1920],{"class":242},"        STArray ",[232,1922,1923],{"class":411},"const&",[232,1925,1926],{"class":242}," oldMajorities ",[232,1928,1929],{"class":411},"=\n",[232,1931,1933,1936,1939],{"class":234,"line":1932},44,[232,1934,1935],{"class":242},"            amendmentObject->",[232,1937,1938],{"class":238},"getFieldArray",[232,1940,1869],{"class":242},[232,1942,1944],{"class":234,"line":1943},45,[232,1945,479],{"emptyLinePlaceholder":478},[232,1947,1949,1952,1954,1957,1959],{"class":234,"line":1948},46,[232,1950,1951],{"class":411},"        for",[232,1953,1568],{"class":242},[232,1955,1956],{"class":411},"auto",[232,1958,681],{"class":411},[232,1960,1961],{"class":242}," majority : oldMajorities)\n",[232,1963,1965],{"class":234,"line":1964},47,[232,1966,1967],{"class":242},"        {\n",[232,1969,1971,1974,1977,1979,1982,1985],{"class":234,"line":1970},48,[232,1972,1973],{"class":411},"            if",[232,1975,1976],{"class":242}," (majority.",[232,1978,1484],{"class":238},[232,1980,1981],{"class":242},"(sfAmendment) ",[232,1983,1984],{"class":411},"==",[232,1986,1987],{"class":242}," amendment)\n",[232,1989,1991],{"class":234,"line":1990},49,[232,1992,1993],{"class":242},"            {\n",[232,1995,1997],{"class":234,"line":1996},50,[232,1998,1999],{"class":352},"                \u002F\u002F This amendment is already in majorities\n",[232,2001,2003,2006],{"class":234,"line":2002},51,[232,2004,2005],{"class":411},"                if",[232,2007,2008],{"class":242}," (gotMajority)\n",[232,2010,2012,2015,2017],{"class":234,"line":2011},52,[232,2013,2014],{"class":411},"                    return",[232,2016,1720],{"class":242},[232,2018,2019],{"class":352},"  \u002F\u002F Already recorded as majority\n",[232,2021,2023,2026,2028,2031,2034],{"class":234,"line":2022},53,[232,2024,2025],{"class":242},"                found ",[232,2027,1510],{"class":411},[232,2029,2030],{"class":737}," true",[232,2032,2033],{"class":242},";",[232,2035,2036],{"class":352},"  \u002F\u002F Found, don't copy it (lost majority)\n",[232,2038,2040],{"class":234,"line":2039},54,[232,2041,2042],{"class":242},"            }\n",[232,2044,2046],{"class":234,"line":2045},55,[232,2047,2048],{"class":411},"            else\n",[232,2050,2052],{"class":234,"line":2051},56,[232,2053,1993],{"class":242},[232,2055,2057],{"class":234,"line":2056},57,[232,2058,2059],{"class":352},"                \u002F\u002F Copy other majorities\n",[232,2061,2063,2066,2069],{"class":234,"line":2062},58,[232,2064,2065],{"class":242},"                newMajorities.",[232,2067,2068],{"class":238},"push_back",[232,2070,2071],{"class":242},"(majority);\n",[232,2073,2075],{"class":234,"line":2074},59,[232,2076,2042],{"class":242},[232,2078,2080],{"class":234,"line":2079},60,[232,2081,2082],{"class":242},"        }\n",[232,2084,2086],{"class":234,"line":2085},61,[232,2087,1167],{"class":242},[232,2089,2091],{"class":234,"line":2090},62,[232,2092,479],{"emptyLinePlaceholder":478},[232,2094,2096],{"class":234,"line":2095},63,[232,2097,2098],{"class":352},"    \u002F\u002F If lostMajority but not in list, error\n",[232,2100,2102,2104,2106,2108,2111,2113],{"class":234,"line":2101},64,[232,2103,1565],{"class":411},[232,2105,1568],{"class":242},[232,2107,1571],{"class":411},[232,2109,2110],{"class":242},"found ",[232,2112,1835],{"class":411},[232,2114,1838],{"class":242},[232,2116,2118,2120],{"class":234,"line":2117},65,[232,2119,1717],{"class":411},[232,2121,2122],{"class":242}," tefALREADY;\n",[232,2124,2126],{"class":234,"line":2125},66,[232,2127,479],{"emptyLinePlaceholder":478},[232,2129,2131,2133],{"class":234,"line":2130},67,[232,2132,1565],{"class":411},[232,2134,2008],{"class":242},[232,2136,2138],{"class":234,"line":2137},68,[232,2139,1141],{"class":242},[232,2141,2143],{"class":234,"line":2142},69,[232,2144,2145],{"class":352},"        \u002F\u002F Amendment just reached majority\n",[232,2147,2149],{"class":234,"line":2148},70,[232,2150,2151],{"class":352},"        \u002F\u002F Add a new entry to sfMajorities\n",[232,2153,2155,2158,2160,2162,2165,2167,2170],{"class":234,"line":2154},71,[232,2156,2157],{"class":242},"        newMajorities.",[232,2159,2068],{"class":238},[232,2161,625],{"class":242},[232,2163,2164],{"class":246},"STObject",[232,2166,451],{"class":242},[232,2168,2169],{"class":238},"makeInnerObject",[232,2171,2172],{"class":242},"(sfMajority));\n",[232,2174,2176,2179,2182,2184,2187,2190],{"class":234,"line":2175},72,[232,2177,2178],{"class":411},"        auto&",[232,2180,2181],{"class":242}," entry ",[232,2183,1510],{"class":411},[232,2185,2186],{"class":242}," newMajorities.",[232,2188,2189],{"class":238},"back",[232,2191,1520],{"class":242},[232,2193,2195,2198,2200],{"class":234,"line":2194},73,[232,2196,2197],{"class":242},"        entry[sfAmendment] ",[232,2199,1510],{"class":411},[232,2201,2202],{"class":242}," amendment;\n",[232,2204,2206,2209],{"class":234,"line":2205},74,[232,2207,2208],{"class":242},"        entry[sfCloseTime] ",[232,2210,1929],{"class":411},[232,2212,2214,2217,2219,2222,2224,2227,2229,2232],{"class":234,"line":2213},75,[232,2215,2216],{"class":238},"            view",[232,2218,1550],{"class":242},[232,2220,2221],{"class":238},"parentCloseTime",[232,2223,1550],{"class":242},[232,2225,2226],{"class":238},"time_since_epoch",[232,2228,1550],{"class":242},[232,2230,2231],{"class":238},"count",[232,2233,1520],{"class":242},[232,2235,2237],{"class":234,"line":2236},76,[232,2238,479],{"emptyLinePlaceholder":478},[232,2240,2242],{"class":234,"line":2241},77,[232,2243,2244],{"class":352},"        \u002F\u002F Warn if amendment is not supported by this node\n",[232,2246,2248,2251,2253,2255,2258,2261,2263,2266],{"class":234,"line":2247},78,[232,2249,2250],{"class":411},"        if",[232,2252,1568],{"class":242},[232,2254,1571],{"class":411},[232,2256,2257],{"class":242},"ctx_.app.",[232,2259,2260],{"class":238},"getAmendmentTable",[232,2262,1550],{"class":242},[232,2264,2265],{"class":238},"isSupported",[232,2267,2268],{"class":242},"(amendment))\n",[232,2270,2272],{"class":234,"line":2271},79,[232,2273,1967],{"class":242},[232,2275,2277,2280,2283,2286,2289,2292,2295,2298],{"class":234,"line":2276},80,[232,2278,2279],{"class":238},"            JLOG",[232,2281,2282],{"class":242},"(j_.",[232,2284,2285],{"class":238},"warn",[232,2287,2288],{"class":242},"()) ",[232,2290,2291],{"class":411},"\u003C\u003C",[232,2293,2294],{"class":362}," \"Unsupported amendment \"",[232,2296,2297],{"class":411}," \u003C\u003C",[232,2299,2300],{"class":242}," amendment\n",[232,2302,2304,2307,2310],{"class":234,"line":2303},81,[232,2305,2306],{"class":411},"                            \u003C\u003C",[232,2308,2309],{"class":362}," \" received a majority.\"",[232,2311,1788],{"class":242},[232,2313,2315],{"class":234,"line":2314},82,[232,2316,2082],{"class":242},[232,2318,2320],{"class":234,"line":2319},83,[232,2321,1167],{"class":242},[232,2323,2325,2328,2331,2333,2335],{"class":234,"line":2324},84,[232,2326,2327],{"class":411},"    else",[232,2329,2330],{"class":411}," if",[232,2332,1568],{"class":242},[232,2334,1571],{"class":411},[232,2336,2337],{"class":242},"lostMajority)\n",[232,2339,2341],{"class":234,"line":2340},85,[232,2342,1141],{"class":242},[232,2344,2346],{"class":234,"line":2345},86,[232,2347,2348],{"class":352},"        \u002F\u002F No flags = ACTIVATION of the amendment\n",[232,2350,2352],{"class":234,"line":2351},87,[232,2353,2354],{"class":352},"        \u002F\u002F Add to list of enabled amendments\n",[232,2356,2358,2360,2362],{"class":234,"line":2357},88,[232,2359,1706],{"class":242},[232,2361,2068],{"class":238},[232,2363,2364],{"class":242},"(amendment);\n",[232,2366,2368,2371,2374],{"class":234,"line":2367},89,[232,2369,2370],{"class":242},"        amendmentObject->",[232,2372,2373],{"class":238},"setFieldV256",[232,2375,2376],{"class":242},"(sfAmendments, amendments);\n",[232,2378,2380],{"class":234,"line":2379},90,[232,2381,479],{"emptyLinePlaceholder":478},[232,2383,2385],{"class":234,"line":2384},91,[232,2386,2387],{"class":352},"        \u002F\u002F Enable locally in AmendmentTable\n",[232,2389,2391,2394,2396,2398,2401],{"class":234,"line":2390},92,[232,2392,2393],{"class":242},"        ctx_.app.",[232,2395,2260],{"class":238},[232,2397,1550],{"class":242},[232,2399,2400],{"class":238},"enable",[232,2402,2364],{"class":242},[232,2404,2406],{"class":234,"line":2405},93,[232,2407,479],{"emptyLinePlaceholder":478},[232,2409,2411],{"class":234,"line":2410},94,[232,2412,2413],{"class":352},"        \u002F\u002F Check if supported - block node if not supported\n",[232,2415,2417,2419,2421,2423,2425,2427,2429,2431],{"class":234,"line":2416},95,[232,2418,2250],{"class":411},[232,2420,1568],{"class":242},[232,2422,1571],{"class":411},[232,2424,2257],{"class":242},[232,2426,2260],{"class":238},[232,2428,1550],{"class":242},[232,2430,2265],{"class":238},[232,2432,2268],{"class":242},[232,2434,2436],{"class":234,"line":2435},96,[232,2437,1967],{"class":242},[232,2439,2441,2443,2445,2448,2450,2452,2454,2456],{"class":234,"line":2440},97,[232,2442,2279],{"class":238},[232,2444,2282],{"class":242},[232,2446,2447],{"class":238},"error",[232,2449,2288],{"class":242},[232,2451,2291],{"class":411},[232,2453,2294],{"class":362},[232,2455,2297],{"class":411},[232,2457,2300],{"class":242},[232,2459,2461,2464,2467],{"class":234,"line":2460},98,[232,2462,2463],{"class":411},"                             \u003C\u003C",[232,2465,2466],{"class":362}," \" activated: server blocked.\"",[232,2468,1788],{"class":242},[232,2470,2472,2475,2478,2480,2483],{"class":234,"line":2471},99,[232,2473,2474],{"class":242},"            ctx_.app.",[232,2476,2477],{"class":238},"getOPs",[232,2479,1550],{"class":242},[232,2481,2482],{"class":238},"setAmendmentBlocked",[232,2484,1520],{"class":242},[232,2486,2488],{"class":234,"line":2487},100,[232,2489,2082],{"class":242},[232,2491,2493],{"class":234,"line":2492},101,[232,2494,1167],{"class":242},[232,2496,2498],{"class":234,"line":2497},102,[232,2499,479],{"emptyLinePlaceholder":478},[232,2501,2503],{"class":234,"line":2502},103,[232,2504,2505],{"class":352},"    \u002F\u002F Update the sfMajorities field\n",[232,2507,2509,2511,2514,2517],{"class":234,"line":2508},104,[232,2510,1565],{"class":411},[232,2512,2513],{"class":242}," (newMajorities.",[232,2515,2516],{"class":238},"empty",[232,2518,1711],{"class":242},[232,2520,2522,2524,2527,2530],{"class":234,"line":2521},105,[232,2523,2370],{"class":242},[232,2525,2526],{"class":238},"makeFieldAbsent",[232,2528,2529],{"class":242},"(sfMajorities);",[232,2531,2532],{"class":352},"  \u002F\u002F Remove if empty\n",[232,2534,2536],{"class":234,"line":2535},106,[232,2537,2538],{"class":411},"    else\n",[232,2540,2542,2544,2547],{"class":234,"line":2541},107,[232,2543,2370],{"class":242},[232,2545,2546],{"class":238},"setFieldArray",[232,2548,2549],{"class":242},"(sfMajorities, newMajorities);\n",[232,2551,2553],{"class":234,"line":2552},108,[232,2554,479],{"emptyLinePlaceholder":478},[232,2556,2558],{"class":234,"line":2557},109,[232,2559,2560],{"class":352},"    \u002F\u002F Save changes to ledger\n",[232,2562,2564,2567,2569,2572],{"class":234,"line":2563},110,[232,2565,2566],{"class":238},"    view",[232,2568,1550],{"class":242},[232,2570,2571],{"class":238},"update",[232,2573,1620],{"class":242},[232,2575,2577],{"class":234,"line":2576},111,[232,2578,479],{"emptyLinePlaceholder":478},[232,2580,2582,2585],{"class":234,"line":2581},112,[232,2583,2584],{"class":411},"    return",[232,2586,2587],{"class":242}," tesSUCCESS;\n",[232,2589,2591],{"class":234,"line":2590},113,[232,2592,830],{"class":242},[66,2594,2596],{"id":2595},"ledger-update","Ledger Update",[22,2598,2599,2600,1119],{},"The amendment is added to the ",[53,2601,2602],{},"sfAmendments",[46,2604,2606],{"className":709,"code":2605,"language":711,"meta":55,"style":55},"{\n  \"Amendments\": [\n    \"...\",  \u002F\u002F Other already enabled amendments\n    \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\"\n  ]\n}\n",[53,2607,2608,2612,2619,2629,2634,2638],{"__ignoreMap":55},[232,2609,2610],{"class":234,"line":235},[232,2611,718],{"class":242},[232,2613,2614,2617],{"class":234,"line":356},[232,2615,2616],{"class":723},"  \"Amendments\"",[232,2618,1136],{"class":242},[232,2620,2621,2624,2626],{"class":234,"line":421},[232,2622,2623],{"class":362},"    \"...\"",[232,2625,1053],{"class":242},[232,2627,2628],{"class":352},"\u002F\u002F Other already enabled amendments\n",[232,2630,2631],{"class":234,"line":433},[232,2632,2633],{"class":362},"    \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\"\n",[232,2635,2636],{"class":234,"line":445},[232,2637,1172],{"class":242},[232,2639,2640],{"class":234,"line":463},[232,2641,830],{"class":242},[22,2643,2644,2645,2647],{},"The corresponding entry is removed from the ",[53,2646,1118],{}," field since the amendment is no longer pending.",[14,2649],{},[17,2651,2653],{"id":2652},"phase-5-enablement","Phase 5: Enablement",[66,2655,2657],{"id":2656},"application-of-new-rules","Application of New Rules",[22,2659,2660,2661,2663,2664,2667],{},"As soon as the amendment is added to the ",[53,2662,2602],{}," field, ",[29,2665,2666],{},"all new transactions and all new ledgers"," must apply the Subscriptions rules.",[22,2669,2670,78],{},[29,2671,2672],{},"For Subscriptions (XLS-0078), this means",[80,2674,2675,2680,2685,2690,2696,2699],{},[83,2676,2677,2679],{},[53,2678,148],{}," transactions are now valid and can be submitted to create\u002Fmodify subscriptions",[83,2681,2682,2684],{},[53,2683,154],{}," transactions can claim payments within available balance limits",[83,2686,2687,2689],{},[53,2688,160],{}," transactions can cancel existing subscriptions",[83,2691,2692,2693,2695],{},"The ledger can contain ",[53,2694,88],{}," objects (type 0x0055)",[83,2697,2698],{},"Logic for managing periods, balances, and arrears is activated",[83,2700,2701],{},"Support for XRP, IOUs with trustlines, and MPTs with their specific rules",[66,2703,2705],{"id":2704},"rules-object-construction","Rules Object Construction",[22,2707,2708,2709,2711],{},"The state of amendments is encapsulated in the ",[53,2710,678],{}," object which is constructed for each ledger:",[46,2713,2715],{"className":226,"code":2714,"language":228,"meta":55,"style":55},"class Rules {\nprivate:\n    std::set\u003Cuint256> enabledAmendments_;\n\npublic:\n    bool enabled(uint256 const& amendment) const {\n        return enabledAmendments_.count(amendment) > 0;\n    }\n};\n",[53,2716,2717,2726,2731,2747,2751,2756,2779,2798,2802],{"__ignoreMap":55},[232,2718,2719,2721,2724],{"class":234,"line":235},[232,2720,561],{"class":411},[232,2722,2723],{"class":246}," Rules",[232,2725,418],{"class":242},[232,2727,2728],{"class":234,"line":356},[232,2729,2730],{"class":411},"private:\n",[232,2732,2733,2735,2737,2740,2742,2744],{"class":234,"line":421},[232,2734,491],{"class":246},[232,2736,451],{"class":242},[232,2738,2739],{"class":246},"set",[232,2741,499],{"class":242},[232,2743,502],{"class":246},[232,2745,2746],{"class":242},"> enabledAmendments_;\n",[232,2748,2749],{"class":234,"line":433},[232,2750,479],{"emptyLinePlaceholder":478},[232,2752,2753],{"class":234,"line":445},[232,2754,2755],{"class":411},"public:\n",[232,2757,2758,2760,2763,2765,2767,2769,2771,2774,2777],{"class":234,"line":463},[232,2759,1763],{"class":411},[232,2761,2762],{"class":238}," enabled",[232,2764,625],{"class":242},[232,2766,502],{"class":246},[232,2768,681],{"class":411},[232,2770,1478],{"class":246},[232,2772,2773],{"class":242},") ",[232,2775,2776],{"class":411},"const",[232,2778,418],{"class":242},[232,2780,2781,2783,2786,2788,2791,2794,2796],{"class":234,"line":475},[232,2782,1717],{"class":411},[232,2784,2785],{"class":242}," enabledAmendments_.",[232,2787,2231],{"class":238},[232,2789,2790],{"class":242},"(amendment) ",[232,2792,2793],{"class":411},">",[232,2795,1785],{"class":737},[232,2797,1788],{"class":242},[232,2799,2800],{"class":234,"line":482},[232,2801,1167],{"class":242},[232,2803,2804],{"class":234,"line":488},[232,2805,531],{"class":242},[22,2807,2808],{},"Transactors and ledger logic consult this object to know which rules to apply:",[46,2810,2812],{"className":226,"code":2811,"language":228,"meta":55,"style":55},"\u002F\u002F In SubscriptionSet::preflight()\nNotTEC SubscriptionSet::preflight(PreflightContext const& ctx) {\n    if (!ctx.rules.enabled(featureSubscriptions))\n        return temDISABLED;\n\n    \u002F\u002F ... rest of validation\n}\n",[53,2813,2814,2819,2844,2861,2868,2872,2877],{"__ignoreMap":55},[232,2815,2816],{"class":234,"line":235},[232,2817,2818],{"class":352},"\u002F\u002F In SubscriptionSet::preflight()\n",[232,2820,2821,2824,2827,2829,2831,2833,2836,2838,2841],{"class":234,"line":356},[232,2822,2823],{"class":246},"NotTEC",[232,2825,2826],{"class":246}," SubscriptionSet",[232,2828,451],{"class":242},[232,2830,174],{"class":238},[232,2832,625],{"class":242},[232,2834,2835],{"class":246},"PreflightContext",[232,2837,681],{"class":411},[232,2839,2840],{"class":246}," ctx",[232,2842,2843],{"class":242},") {\n",[232,2845,2846,2848,2850,2852,2855,2858],{"class":234,"line":421},[232,2847,1565],{"class":411},[232,2849,1568],{"class":242},[232,2851,1571],{"class":411},[232,2853,2854],{"class":242},"ctx.rules.",[232,2856,2857],{"class":238},"enabled",[232,2859,2860],{"class":242},"(featureSubscriptions))\n",[232,2862,2863,2865],{"class":234,"line":433},[232,2864,1717],{"class":411},[232,2866,2867],{"class":242}," temDISABLED;\n",[232,2869,2870],{"class":234,"line":445},[232,2871,479],{"emptyLinePlaceholder":478},[232,2873,2874],{"class":234,"line":463},[232,2875,2876],{"class":352},"    \u002F\u002F ... rest of validation\n",[232,2878,2879],{"class":234,"line":475},[232,2880,830],{"class":242},[66,2882,2884],{"id":2883},"final-status","Final Status",[22,2886,2887],{},"The amendment status after activation simplifies:",[46,2889,2891],{"className":709,"code":2890,"language":711,"meta":55,"style":55},"{\n  \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\": {\n    \"enabled\": true,          \u002F\u002F ← Amendment active\n    \"name\": \"Subscriptions\",\n    \"supported\": true\n  }\n}\n",[53,2892,2893,2897,2903,2916,2926,2935,2939],{"__ignoreMap":55},[232,2894,2895],{"class":234,"line":235},[232,2896,718],{"class":242},[232,2898,2899,2901],{"class":234,"line":356},[232,2900,724],{"class":723},[232,2902,727],{"class":242},[232,2904,2905,2907,2909,2911,2913],{"class":234,"line":421},[232,2906,749],{"class":723},[232,2908,206],{"class":242},[232,2910,783],{"class":737},[232,2912,802],{"class":242},[232,2914,2915],{"class":352},"\u002F\u002F ← Amendment active\n",[232,2917,2918,2920,2922,2924],{"class":234,"line":433},[232,2919,765],{"class":723},[232,2921,206],{"class":242},[232,2923,770],{"class":362},[232,2925,773],{"class":242},[232,2927,2928,2930,2932],{"class":234,"line":445},[232,2929,778],{"class":723},[232,2931,206],{"class":242},[232,2933,2934],{"class":737},"true\n",[232,2936,2937],{"class":234,"line":463},[232,2938,825],{"class":242},[232,2940,2941],{"class":234,"line":475},[232,2942,830],{"class":242},[22,2944,2945,2946,175,2948,175,2950,175,2953,2955],{},"The fields ",[53,2947,2231],{},[53,2949,855],{},[53,2951,2952],{},"validations",[53,2954,993],{}," disappear because they are no longer relevant once the amendment is enabled.",[14,2957],{},[17,2959,2961],{"id":2960},"complete-timeline-concrete-example","Complete Timeline: Concrete Example",[22,2963,2964],{},"Here is a realistic timeline for Subscriptions on mainnet:",[22,2966,2967,2970],{},[29,2968,2969],{},"2025-03-01",": Release of rippled 2.3.0 including Subscriptions (XLS-0078)",[80,2972,2973,2976],{},[83,2974,2975],{},"Code distributed, nodes begin to update",[83,2977,2978],{},"Publication of detailed documentation on XRPL.org",[22,2980,2981,2984],{},[29,2982,2983],{},"2025-03-15",": First validators activate their vote",[80,2986,2987],{},[83,2988,2989],{},"5 out of 35 validators vote for (14%)",[22,2991,2992,2995],{},[29,2993,2994],{},"2025-04-01",": Growing momentum",[80,2997,2998,3001],{},[83,2999,3000],{},"20 out of 35 validators vote for (57%)",[83,3002,3003],{},"Exchanges and wallets begin to prepare their integrations",[22,3005,3006,3009],{},[29,3007,3008],{},"2025-04-20 14:32:15 UTC",": Threshold exceeded",[80,3011,3012,3015,3023],{},[83,3013,3014],{},"29 out of 35 validators vote for (82.9% > 80%)",[83,3016,3017,3019,3020],{},[53,3018,993],{}," field appears with timestamp ",[53,3021,3022],{},"806021535",[83,3024,3025,3027],{},[53,3026,1018],{}," pseudo-transaction injected at ledger 86245789",[22,3029,3030,3033],{},[29,3031,3032],{},"2025-04-20 → 2025-05-04",": Stability period",[80,3035,3036,3039,3042],{},[83,3037,3038],{},"2 weeks mandatory waiting",[83,3040,3041],{},"Support remains stable above 80%",[83,3043,3044],{},"Final tests on staging environments",[22,3046,3047,3050],{},[29,3048,3049],{},"2025-05-04 14:32:15 UTC",": Activation",[80,3052,3053,3058],{},[83,3054,3055,3057],{},[53,3056,1014],{}," pseudo-transaction (without flag) injected at ledger 86652345",[83,3059,3060,3061,994],{},"Subscriptions added to ",[53,3062,2602],{},[22,3064,3065,3068],{},[29,3066,3067],{},"2025-05-04 14:32:18 UTC",": Enablement",[80,3070,3071,3074,3080],{},[83,3072,3073],{},"First ledger with Subscriptions active",[83,3075,3076,3077,3079],{},"First ",[53,3078,148],{}," transactions processed",[83,3081,3082],{},"Users can now create subscriptions for recurring payments",[14,3084],{},[17,3086,3088],{"id":3087},"state-transition-management","State Transition Management",[66,3090,3092],{"id":3091},"dovalidatedledger-local-synchronization","doValidatedLedger: Local Synchronization",[22,3094,3095,3096,3099],{},"After each validated ledger, the ",[53,3097,3098],{},"AmendmentTableImpl::doValidatedLedger()"," function synchronizes the local state of amendments with the ledger state:",[46,3101,3103],{"className":226,"code":3102,"language":228,"meta":55,"style":55},"void AmendmentTableImpl::doValidatedLedger(\n    std::shared_ptr\u003CReadView const> const& ledger)\n{\n    std::lock_guard lock(mutex_);\n\n    \u002F\u002F Read enabled amendments from ledger\n    auto const amendments = ledger->rules().prevalidate();\n\n    \u002F\u002F Enable locally all amendments from ledger\n    for (auto const& amendment : amendments) {\n        auto it = amendmentMap_.find(amendment);\n        if (it != amendmentMap_.end()) {\n            it->second.enabled = true;\n        }\n    }\n\n    \u002F\u002F Update majority status\n    updateMajorities(ledger);\n\n    \u002F\u002F Check unsupported amendments\n    checkUnsupported(ledger);\n}\n",[53,3104,3105,3121,3148,3152,3167,3171,3176,3199,3203,3208,3222,3239,3255,3266,3270,3274,3278,3283,3291,3295,3300,3307],{"__ignoreMap":55},[232,3106,3107,3110,3113,3115,3118],{"class":234,"line":235},[232,3108,3109],{"class":411},"void",[232,3111,3112],{"class":246}," AmendmentTableImpl",[232,3114,451],{"class":242},[232,3116,3117],{"class":238},"doValidatedLedger",[232,3119,3120],{"class":242},"(\n",[232,3122,3123,3125,3127,3130,3132,3135,3137,3140,3142,3145],{"class":234,"line":356},[232,3124,491],{"class":246},[232,3126,451],{"class":242},[232,3128,3129],{"class":246},"shared_ptr",[232,3131,499],{"class":242},[232,3133,3134],{"class":246},"ReadView",[232,3136,1504],{"class":411},[232,3138,3139],{"class":242},"> ",[232,3141,1923],{"class":411},[232,3143,3144],{"class":246}," ledger",[232,3146,3147],{"class":242},")\n",[232,3149,3150],{"class":234,"line":421},[232,3151,718],{"class":242},[232,3153,3154,3156,3158,3161,3164],{"class":234,"line":433},[232,3155,491],{"class":246},[232,3157,451],{"class":242},[232,3159,3160],{"class":246},"lock_guard",[232,3162,3163],{"class":238}," lock",[232,3165,3166],{"class":242},"(mutex_);\n",[232,3168,3169],{"class":234,"line":445},[232,3170,479],{"emptyLinePlaceholder":478},[232,3172,3173],{"class":234,"line":463},[232,3174,3175],{"class":352},"    \u002F\u002F Read enabled amendments from ledger\n",[232,3177,3178,3180,3182,3184,3186,3189,3192,3194,3197],{"class":234,"line":475},[232,3179,1501],{"class":411},[232,3181,1504],{"class":411},[232,3183,1645],{"class":242},[232,3185,1510],{"class":411},[232,3187,3188],{"class":242}," ledger->",[232,3190,3191],{"class":238},"rules",[232,3193,1550],{"class":242},[232,3195,3196],{"class":238},"prevalidate",[232,3198,1520],{"class":242},[232,3200,3201],{"class":234,"line":482},[232,3202,479],{"emptyLinePlaceholder":478},[232,3204,3205],{"class":234,"line":488},[232,3206,3207],{"class":352},"    \u002F\u002F Enable locally all amendments from ledger\n",[232,3209,3210,3213,3215,3217,3219],{"class":234,"line":508},[232,3211,3212],{"class":411},"    for",[232,3214,1568],{"class":242},[232,3216,1956],{"class":411},[232,3218,681],{"class":411},[232,3220,3221],{"class":242}," amendment : amendments) {\n",[232,3223,3224,3227,3230,3232,3235,3237],{"class":234,"line":513},[232,3225,3226],{"class":411},"        auto",[232,3228,3229],{"class":242}," it ",[232,3231,1510],{"class":411},[232,3233,3234],{"class":242}," amendmentMap_.",[232,3236,1682],{"class":238},[232,3238,2364],{"class":242},[232,3240,3241,3243,3246,3248,3250,3252],{"class":234,"line":519},[232,3242,2250],{"class":411},[232,3244,3245],{"class":242}," (it ",[232,3247,1782],{"class":411},[232,3249,3234],{"class":242},[232,3251,1694],{"class":238},[232,3253,3254],{"class":242},"()) {\n",[232,3256,3257,3260,3262,3264],{"class":234,"line":528},[232,3258,3259],{"class":242},"            it->second.enabled ",[232,3261,1510],{"class":411},[232,3263,2030],{"class":737},[232,3265,1788],{"class":242},[232,3267,3268],{"class":234,"line":689},[232,3269,2082],{"class":242},[232,3271,3272],{"class":234,"line":1609},[232,3273,1167],{"class":242},[232,3275,3276],{"class":234,"line":1623},[232,3277,479],{"emptyLinePlaceholder":478},[232,3279,3280],{"class":234,"line":1628},[232,3281,3282],{"class":352},"    \u002F\u002F Update majority status\n",[232,3284,3285,3288],{"class":234,"line":1633},[232,3286,3287],{"class":238},"    updateMajorities",[232,3289,3290],{"class":242},"(ledger);\n",[232,3292,3293],{"class":234,"line":1639},[232,3294,479],{"emptyLinePlaceholder":478},[232,3296,3297],{"class":234,"line":1659},[232,3298,3299],{"class":352},"    \u002F\u002F Check unsupported amendments\n",[232,3301,3302,3305],{"class":234,"line":1664},[232,3303,3304],{"class":238},"    checkUnsupported",[232,3306,3290],{"class":242},[232,3308,3309],{"class":234,"line":1670},[232,3310,830],{"class":242},[22,3312,3313],{},"This synchronization ensures that the node's internal state always reflects the validated ledger state.",[66,3315,3317],{"id":3316},"detection-of-unsupported-amendments","Detection of Unsupported Amendments",[22,3319,3320],{},"If an amendment is enabled but the local node does not support it, the node enters \"amendment blocked\" mode:",[46,3322,3324],{"className":226,"code":3323,"language":228,"meta":55,"style":55},"if (!isSupported(amendment)) {\n    JLOG(j_.error())\n        \u003C\u003C \"Unsupported amendment \" \u003C\u003C amendment \u003C\u003C \" activated!\";\n    app_.getOPs().setAmendmentBlocked();\n    \u002F\u002F Node ceases to participate in consensus\n}\n",[53,3325,3326,3340,3351,3370,3383,3388],{"__ignoreMap":55},[232,3327,3328,3331,3333,3335,3337],{"class":234,"line":235},[232,3329,3330],{"class":411},"if",[232,3332,1568],{"class":242},[232,3334,1571],{"class":411},[232,3336,2265],{"class":238},[232,3338,3339],{"class":242},"(amendment)) {\n",[232,3341,3342,3345,3347,3349],{"class":234,"line":356},[232,3343,3344],{"class":238},"    JLOG",[232,3346,2282],{"class":242},[232,3348,2447],{"class":238},[232,3350,1711],{"class":242},[232,3352,3353,3356,3358,3360,3363,3365,3368],{"class":234,"line":421},[232,3354,3355],{"class":411},"        \u003C\u003C",[232,3357,2294],{"class":362},[232,3359,2297],{"class":411},[232,3361,3362],{"class":242}," amendment ",[232,3364,2291],{"class":411},[232,3366,3367],{"class":362}," \" activated!\"",[232,3369,1788],{"class":242},[232,3371,3372,3375,3377,3379,3381],{"class":234,"line":433},[232,3373,3374],{"class":242},"    app_.",[232,3376,2477],{"class":238},[232,3378,1550],{"class":242},[232,3380,2482],{"class":238},[232,3382,1520],{"class":242},[232,3384,3385],{"class":234,"line":445},[232,3386,3387],{"class":352},"    \u002F\u002F Node ceases to participate in consensus\n",[232,3389,3390],{"class":234,"line":463},[232,3391,830],{"class":242},[22,3393,3394],{},"This protects network integrity by preventing an outdated node from applying incorrect rules.",[14,3396],{},[17,3398,3400],{"id":3399},"special-cases-and-edge-cases","Special Cases and Edge Cases",[66,3402,3404],{"id":3403},"changes-in-unl-list","Changes in UNL List",[22,3406,3407],{},"If the list of trusted validators (UNL) changes during the voting or majority phase, the threshold calculation adapts dynamically:",[80,3409,3410,3413,3416],{},[83,3411,3412],{},"If validators are added to the UNL, the absolute threshold increases",[83,3414,3415],{},"If validators are removed, the threshold decreases",[83,3417,3418],{},"An amendment can lose its majority if enough validators supporting the amendment leave the UNL",[66,3420,3422],{"id":3421},"rollback-and-contingency","Rollback and Contingency",[22,3424,3425,3428],{},[29,3426,3427],{},"There is no mechanism to disable an amendment once enabled",". If a critical problem is discovered after activation:",[3430,3431,3432,3435,3438],"ol",{},[83,3433,3434],{},"A fix must be developed and deployed via a new amendment",[83,3436,3437],{},"Or a security patch must be distributed urgently",[83,3439,3440],{},"In extreme cases, out-of-band coordination may be necessary",[22,3442,3443],{},"This is why the two-week stability period is crucial: it offers a last opportunity to detect problems before irreversible activation.",[3445,3446,3447],"style",{},"html pre.shiki code .sj_SG, html code.shiki .sj_SG{--shiki-default:#DBB7FF}html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}html pre.shiki code .s_sBn, html code.shiki .s_sBn{--shiki-default:#FFB757}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sQrFR, html code.shiki .sQrFR{--shiki-default:#BDC4CC}html pre.shiki code .sTRMh, html code.shiki .sTRMh{--shiki-default:#ADDCFF}html pre.shiki code .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}html pre.shiki code .sKpQp, html code.shiki .sKpQp{--shiki-default:#72F088}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}",{"title":55,"searchDepth":356,"depth":356,"links":3449},[3450,3451,3452,3458,3464,3470,3475,3480,3481,3485],{"id":19,"depth":356,"text":20},{"id":40,"depth":356,"text":41},{"id":63,"depth":356,"text":64,"children":3453},[3454,3455,3456,3457],{"id":68,"depth":421,"text":69},{"id":216,"depth":421,"text":217},{"id":283,"depth":421,"text":284},{"id":299,"depth":421,"text":300},{"id":329,"depth":356,"text":330,"children":3459},[3460,3461,3462,3463],{"id":333,"depth":421,"text":334},{"id":392,"depth":421,"text":393},{"id":541,"depth":421,"text":542},{"id":700,"depth":421,"text":701},{"id":869,"depth":356,"text":870,"children":3465},[3466,3467,3468,3469],{"id":873,"depth":421,"text":874},{"id":1007,"depth":421,"text":1008},{"id":1179,"depth":421,"text":1180},{"id":1229,"depth":421,"text":1230},{"id":1315,"depth":356,"text":1316,"children":3471},[3472,3473,3474],{"id":1319,"depth":421,"text":1320},{"id":1333,"depth":421,"text":1334},{"id":2595,"depth":421,"text":2596},{"id":2652,"depth":356,"text":2653,"children":3476},[3477,3478,3479],{"id":2656,"depth":421,"text":2657},{"id":2704,"depth":421,"text":2705},{"id":2883,"depth":421,"text":2884},{"id":2960,"depth":356,"text":2961},{"id":3087,"depth":356,"text":3088,"children":3482},[3483,3484],{"id":3091,"depth":421,"text":3092},{"id":3316,"depth":421,"text":3317},{"id":3399,"depth":356,"text":3400,"children":3486},[3487,3488],{"id":3403,"depth":421,"text":3404},{"id":3421,"depth":421,"text":3422},"Amendment Lifecycle for Building Amendments: Lifecycle and Core Protocol Impact, in the Core Dev Bootcamp: XRPL Commons docs.","md",{},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":5,"description":3489},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle.md","docs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle","DUVGLmxJ7tW8f9ucptd_ny67b6edObPduYmlPsv0Yjk",[],[3499,3540,3554,3574,3597,3989],{"title":3500,"path":3501,"children":3502,"description":3539,"pages":528},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[3503,3506,3509,3512,3515,3518,3521,3524,3527,3530,3533,3536],{"title":3504,"path":3505},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":3507,"path":3508},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":3510,"path":3511},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":3513,"path":3514},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":3516,"path":3517},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":3519,"path":3520},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":3522,"path":3523},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":3525,"path":3526},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":3528,"path":3529},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":3531,"path":3532},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":3534,"path":3535},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":3537,"path":3538},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",{"title":3541,"path":3542,"children":3543,"description":3553,"pages":433},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[3544,3547,3550],{"title":3545,"path":3546},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":3548,"path":3549},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":3551,"path":3552},"Creating an AMM Pool","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-an-amm-pool","This session will cover token issuance and providing liquidity for your tokens using the automatic market maker built in to the XRPL",{"title":3555,"path":3556,"children":3557,"description":3573,"pages":463},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[3558,3561,3564,3567,3570],{"title":3559,"path":3560},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":3562,"path":3563},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":3565,"path":3566},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":3568,"path":3569},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":3571,"path":3572},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":3575,"path":3576,"children":3577,"description":3596,"pages":475},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[3578,3581,3584,3587,3590,3593],{"title":3579,"path":3580},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":3582,"path":3583},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":3585,"path":3586},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":3588,"path":3589},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":3591,"path":3592},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":3594,"path":3595},"Banking Contract Key Concepts","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-contract-key-concepts","This workshop will walk you through deploying a smart contract and building a full app on the XRPL EVM sidechain",{"title":3598,"path":3599,"children":3600,"description":3987,"pages":3988},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[3601,3621,3664,3714,3745,3802,3833,3849,3889,3923,3948,3964],{"title":3602,"path":3603,"children":3604},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[3605,3608,3611,3614],{"title":3606,"path":3607},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":3609,"path":3610},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":3612,"path":3613},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":3615,"path":3616,"children":3617},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[3618],{"title":3619,"path":3620},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":3622,"path":3623,"children":3624},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[3625,3628,3631,3634,3637,3640,3643,3646,3649],{"title":3626,"path":3627},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":3629,"path":3630},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":3632,"path":3633},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":3635,"path":3636},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":3638,"path":3639},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":3641,"path":3642},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":3644,"path":3645},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":3647,"path":3648},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":3615,"path":3650,"children":3651},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[3652,3655,3658,3661],{"title":3653,"path":3654},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":3656,"path":3657},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":3659,"path":3660},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":3662,"path":3663},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":3665,"path":3666,"children":3667},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[3668,3671,3674,3677,3680,3683,3686,3689,3692,3695,3698,3701],{"title":3669,"path":3670},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":3672,"path":3673},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":3675,"path":3676},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":3678,"path":3679},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":3681,"path":3682},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":3684,"path":3685},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":3687,"path":3688},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":3690,"path":3691},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":3693,"path":3694},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":3696,"path":3697},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":3699,"path":3700},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":3702,"path":3703,"children":3704},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[3705,3708,3711],{"title":3706,"path":3707},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":3709,"path":3710},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":3712,"path":3713},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":3715,"path":3716,"children":3717},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[3718,3721,3724,3727,3730,3733,3736,3739,3742],{"title":3719,"path":3720},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":3722,"path":3723},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":3725,"path":3726},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":3728,"path":3729},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":3731,"path":3732},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":3734,"path":3735},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":3737,"path":3738},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":3740,"path":3741},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":3743,"path":3744},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":3746,"path":3747,"children":3748},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[3749,3752,3755,3758,3761,3764,3767,3770,3773,3776,3779,3782,3785,3796],{"title":3750,"path":3751},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":3753,"path":3754},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":3756,"path":3757},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":3759,"path":3760},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":3762,"path":3763},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":3765,"path":3766},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":3768,"path":3769},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":3771,"path":3772},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":3774,"path":3775},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":3777,"path":3778},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":3780,"path":3781},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":3783,"path":3784},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":3702,"path":3786,"children":3787},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[3788,3790,3793],{"title":3706,"path":3789},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":3791,"path":3792},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":3794,"path":3795},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":3615,"path":3797,"children":3798},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[3799],{"title":3800,"path":3801},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":3803,"path":3804,"children":3805},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[3806,3809,3812,3815,3818,3821,3827],{"title":3807,"path":3808},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":3810,"path":3811},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":3813,"path":3814},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":3816,"path":3817},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":3819,"path":3820},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":3702,"path":3822,"children":3823},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[3824],{"title":3825,"path":3826},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":3615,"path":3828,"children":3829},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[3830],{"title":3831,"path":3832},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":3834,"path":3835,"children":3836},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[3837,3840,3843,3846],{"title":3838,"path":3839},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":3841,"path":3842},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":3844,"path":3845},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":3847,"path":3848},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":3850,"path":3851,"children":3852},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[3853,3856,3859,3862,3865,3877],{"title":3854,"path":3855},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":3857,"path":3858},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":3860,"path":3861},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":3863,"path":3864},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":3702,"path":3866,"children":3867},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[3868,3871,3874],{"title":3869,"path":3870},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":3872,"path":3873},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":3875,"path":3876},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":3615,"path":3878,"children":3879},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[3880,3883,3886],{"title":3881,"path":3882},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":3884,"path":3885},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":3887,"path":3888},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":3890,"path":3891,"children":3892},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[3893,3896,3899,3902,3905,3908,3911,3914],{"title":3894,"path":3895},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":3897,"path":3898},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":3900,"path":3901},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":3903,"path":3904},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":3906,"path":3907},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":3909,"path":3910},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":3912,"path":3913},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":3615,"path":3915,"children":3916},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[3917,3920],{"title":3918,"path":3919},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":3921,"path":3922},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":3924,"path":3925,"children":3926},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[3927,3930,3933,3936,3939,3942,3945],{"title":3928,"path":3929},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":3931,"path":3932},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":3934,"path":3935},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":3937,"path":3938},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":3940,"path":3941},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":3943,"path":3944},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":3946,"path":3947},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":3949,"path":3950,"children":3951},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[3952,3955,3958,3961],{"title":3953,"path":3954},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":3956,"path":3957},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":3959,"path":3960},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":3962,"path":3963},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":3965,"path":3966,"children":3967},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[3968,3971,3972,3975,3978,3981,3984],{"title":3969,"path":3970},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":5,"path":3492},{"title":3973,"path":3974},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":3976,"path":3977},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":3979,"path":3980},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":3982,"path":3983},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":3985,"path":3986},"Homework 1: Amendment Status Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fhomework\u002Fhomework1","The XRPL Core Dev Bootcamp – Online Edition is a program designed for intermediate to advanced C++ developers looking to deepen their skills in the core of the XRP Ledger.",126,{"title":3990,"path":3991,"children":3992,"description":3999,"pages":421},"Tools","\u002Fdocs\u002Ftools",[3993,3996],{"title":3994,"path":3995},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":3997,"path":3998},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220775587]