[{"data":1,"prerenderedAt":6219},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation":5716,"docs-tracks":5717},{"id":4,"title":5,"body":6,"description":5708,"extension":5709,"meta":5710,"navigation":99,"path":5711,"seo":5712,"source":5713,"stem":5714,"__hash__":5715},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation.md","Voting and Activation",{"type":7,"value":8,"toc":5678},"minimark",[9,14,17,22,26,29,37,39,43,48,51,62,113,119,166,176,261,265,272,278,414,424,777,783,785,789,793,800,805,1364,1370,1374,1380,1385,1945,1950,1961,1964,1969,1977,1982,1988,1993,1999,2012,2014,2018,2024,2028,3089,3093,3096,3126,3129,3131,3135,3139,3146,3151,3435,3440,3484,3488,3497,4414,4418,4423,4563,4577,4589,4591,4595,4598,4602,4607,4677,4681,4684,4689,4759,4771,4776,4791,4796,4878,4883,4958,4962,4968,5021,5025,5028,5032,5048,5052,5129,5137,5142,5187,5189,5193,5197,5204,5516,5519,5521,5525,5528,5533,5599,5604,5618,5628,5674],[10,11,13],"h1",{"id":12},"voting-and-amendment-activation","Voting and Amendment Activation",[15,16],"hr",{},[18,19,21],"h2",{"id":20},"introduction","Introduction",[23,24,25],"p",{},"The voting and activation mechanism for amendments is at the heart of XRPL's decentralized governance. This system allows the network to make collective decisions on protocol changes without a central authority, while ensuring a high level of consensus before any modification.",[23,27,28],{},"In this section, we will dive into the technical details of the voting process: how validators express their preferences, how these votes are collected and aggregated, how the threshold (over 80%) is calculated and verified, and finally how the network automatically activates amendments once consensus is reached.",[23,30,31,32,36],{},"We will continue to follow the example of ",[33,34,35],"strong",{},"Subscriptions"," (XLS-0078) to concretely illustrate each mechanism.",[15,38],{},[18,40,42],{"id":41},"validator-voting-mechanism","Validator Voting Mechanism",[44,45,47],"h3",{"id":46},"vote-expression","Vote Expression",[23,49,50],{},"A validator expresses their vote for an amendment in several ways:",[23,52,53,56,57,61],{},[33,54,55],{},"1. Static configuration",": Via the ",[58,59,60],"code",{},"rippled.cfg"," configuration file:",[63,64,69],"pre",{"className":65,"code":66,"language":67,"meta":68,"style":68},"language-ini shiki shiki-themes github-dark-high-contrast","[amendments]\n# Vote for Subscriptions\n7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\n\n# Vote against (or remove vote) by commenting out or removing the line\n# 7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\n","ini","",[58,70,71,80,87,94,101,107],{"__ignoreMap":68},[72,73,76],"span",{"class":74,"line":75},"line",1,[72,77,79],{"class":78},"s_sBn","[amendments]\n",[72,81,83],{"class":74,"line":82},2,[72,84,86],{"class":85},"sQrFR","# Vote for Subscriptions\n",[72,88,90],{"class":74,"line":89},3,[72,91,93],{"class":92},"sMAXC","7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\n",[72,95,97],{"class":74,"line":96},4,[72,98,100],{"emptyLinePlaceholder":99},true,"\n",[72,102,104],{"class":74,"line":103},5,[72,105,106],{"class":85},"# Vote against (or remove vote) by commenting out or removing the line\n",[72,108,110],{"class":74,"line":109},6,[72,111,112],{"class":85},"# 7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\n",[23,114,115,118],{},[33,116,117],{},"2. Dynamic RPC command",": Via the admin interface:",[63,120,124],{"className":121,"code":122,"language":123,"meta":68,"style":68},"language-bash shiki shiki-themes github-dark-high-contrast","# Enable voting\nrippled feature 7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8 accept\n\n# Disable voting\nrippled feature 7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8 reject\n","bash",[58,125,126,131,146,150,155],{"__ignoreMap":68},[72,127,128],{"class":74,"line":75},[72,129,130],{"class":85},"# Enable voting\n",[72,132,133,136,140,143],{"class":74,"line":82},[72,134,135],{"class":78},"rippled",[72,137,139],{"class":138},"sTRMh"," feature",[72,141,142],{"class":138}," 7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8",[72,144,145],{"class":138}," accept\n",[72,147,148],{"class":74,"line":89},[72,149,100],{"emptyLinePlaceholder":99},[72,151,152],{"class":74,"line":96},[72,153,154],{"class":85},"# Disable voting\n",[72,156,157,159,161,163],{"class":74,"line":103},[72,158,135],{"class":78},[72,160,139],{"class":138},[72,162,142],{"class":138},[72,164,165],{"class":138}," reject\n",[23,167,168,171,172,175],{},[33,169,170],{},"3. Default vote",": If no explicit configuration is provided, the default behavior defined in ",[58,173,174],{},"features.macro"," applies:",[63,177,181],{"className":178,"code":179,"language":180,"meta":68,"style":68},"language-cpp shiki shiki-themes github-dark-high-contrast","\u002F\u002F Automatically vote for\nXRPL_FEATURE(Tickets, Supported::yes, VoteBehavior::DefaultYes)\n\n\u002F\u002F Don't vote by default (requires explicit activation)\nXRPL_FEATURE(Subscriptions, Supported::yes, VoteBehavior::DefaultNo)\n\n\u002F\u002F Never vote (obsolete)\nXRPL_FEATURE(OldFeature, Supported::yes, VoteBehavior::Obsolete)\n","cpp",[58,182,183,188,209,213,218,234,238,244],{"__ignoreMap":68},[72,184,185],{"class":74,"line":75},[72,186,187],{"class":85},"\u002F\u002F Automatically vote for\n",[72,189,190,194,197,200,203,206],{"class":74,"line":82},[72,191,193],{"class":192},"sj_SG","XRPL_FEATURE",[72,195,196],{"class":92},"(Tickets, ",[72,198,199],{"class":78},"Supported",[72,201,202],{"class":92},"::yes, ",[72,204,205],{"class":78},"VoteBehavior",[72,207,208],{"class":92},"::DefaultYes)\n",[72,210,211],{"class":74,"line":89},[72,212,100],{"emptyLinePlaceholder":99},[72,214,215],{"class":74,"line":96},[72,216,217],{"class":85},"\u002F\u002F Don't vote by default (requires explicit activation)\n",[72,219,220,222,225,227,229,231],{"class":74,"line":103},[72,221,193],{"class":192},[72,223,224],{"class":92},"(Subscriptions, ",[72,226,199],{"class":78},[72,228,202],{"class":92},[72,230,205],{"class":78},[72,232,233],{"class":92},"::DefaultNo)\n",[72,235,236],{"class":74,"line":109},[72,237,100],{"emptyLinePlaceholder":99},[72,239,241],{"class":74,"line":240},7,[72,242,243],{"class":85},"\u002F\u002F Never vote (obsolete)\n",[72,245,247,249,252,254,256,258],{"class":74,"line":246},8,[72,248,193],{"class":192},[72,250,251],{"class":92},"(OldFeature, ",[72,253,199],{"class":78},[72,255,202],{"class":92},[72,257,205],{"class":78},[72,259,260],{"class":92},"::Obsolete)\n",[44,262,264],{"id":263},"inclusion-in-validations","Inclusion in Validations",[23,266,267,268,271],{},"A validator's vote is communicated to the network via the ",[33,269,270],{},"validation messages"," they publish after validating each ledger.",[23,273,274,277],{},[33,275,276],{},"Structure of a validation message",":",[63,279,281],{"className":178,"code":280,"language":180,"meta":68,"style":68},"class STValidation {\n    \u002F\u002F Identification of validated ledger\n    uint256 ledgerHash_;\n    uint32 ledgerSeq_;\n    NetClock::time_point signTime_;\n\n    \u002F\u002F List of supported\u002Fdesired amendments\n    std::optional\u003Cstd::vector\u003Cuint256>> amendments_;\n\n    \u002F\u002F Validator's public key\n    PublicKey publicKey_;\n\n    \u002F\u002F Cryptographic signature\n    Buffer signature_;\n};\n",[58,282,283,295,300,308,316,330,334,339,368,373,379,388,393,399,408],{"__ignoreMap":68},[72,284,285,289,292],{"class":74,"line":75},[72,286,288],{"class":287},"sWyjQ","class",[72,290,291],{"class":78}," STValidation",[72,293,294],{"class":92}," {\n",[72,296,297],{"class":74,"line":82},[72,298,299],{"class":85},"    \u002F\u002F Identification of validated ledger\n",[72,301,302,305],{"class":74,"line":89},[72,303,304],{"class":78},"    uint256",[72,306,307],{"class":92}," ledgerHash_;\n",[72,309,310,313],{"class":74,"line":96},[72,311,312],{"class":78},"    uint32",[72,314,315],{"class":92}," ledgerSeq_;\n",[72,317,318,321,324,327],{"class":74,"line":103},[72,319,320],{"class":78},"    NetClock",[72,322,323],{"class":92},"::",[72,325,326],{"class":78},"time_point",[72,328,329],{"class":92}," signTime_;\n",[72,331,332],{"class":74,"line":109},[72,333,100],{"emptyLinePlaceholder":99},[72,335,336],{"class":74,"line":240},[72,337,338],{"class":85},"    \u002F\u002F List of supported\u002Fdesired amendments\n",[72,340,341,344,346,349,352,355,357,360,362,365],{"class":74,"line":246},[72,342,343],{"class":78},"    std",[72,345,323],{"class":92},[72,347,348],{"class":78},"optional",[72,350,351],{"class":92},"\u003C",[72,353,354],{"class":78},"std",[72,356,323],{"class":92},[72,358,359],{"class":78},"vector",[72,361,351],{"class":92},[72,363,364],{"class":78},"uint256",[72,366,367],{"class":92},">> amendments_;\n",[72,369,371],{"class":74,"line":370},9,[72,372,100],{"emptyLinePlaceholder":99},[72,374,376],{"class":74,"line":375},10,[72,377,378],{"class":85},"    \u002F\u002F Validator's public key\n",[72,380,382,385],{"class":74,"line":381},11,[72,383,384],{"class":78},"    PublicKey",[72,386,387],{"class":92}," publicKey_;\n",[72,389,391],{"class":74,"line":390},12,[72,392,100],{"emptyLinePlaceholder":99},[72,394,396],{"class":74,"line":395},13,[72,397,398],{"class":85},"    \u002F\u002F Cryptographic signature\n",[72,400,402,405],{"class":74,"line":401},14,[72,403,404],{"class":78},"    Buffer",[72,406,407],{"class":92}," signature_;\n",[72,409,411],{"class":74,"line":410},15,[72,412,413],{"class":92},"};\n",[23,415,416,419,420,423],{},[33,417,418],{},"Generation of amendments list",": This list is generated by the ",[58,421,422],{},"doValidation()"," function of AmendmentTable:",[63,425,427],{"className":178,"code":426,"language":180,"meta":68,"style":68},"std::vector\u003Cuint256>\nAmendmentTableImpl::doValidation(std::set\u003Cuint256> const& enabled) const\n{\n    \u002F\u002F Get the list of amendments we support and do not\n    \u002F\u002F veto, but that are not already enabled\n    std::vector\u003Cuint256> amendments;\n\n    {\n        std::lock_guard lock(mutex_);\n        amendments.reserve(amendmentMap_.size());\n        for (auto const& e : amendmentMap_)\n        {\n            \u002F\u002F Include only if:\n            \u002F\u002F 1. Amendment is supported by this node\n            \u002F\u002F 2. Node votes \"up\" for the amendment\n            \u002F\u002F 3. Amendment is not already enabled\n            if (e.second.supported && e.second.vote == AmendmentVote::up &&\n                (enabled.count(e.first) == 0))\n            {\n                amendments.push_back(e.first);\n                JLOG(j_.info()) \u003C\u003C \"Voting for amendment \" \u003C\u003C e.second.name;\n            }\n        }\n    }\n\n    if (!amendments.empty())\n        \u002F\u002F Sort to ensure deterministic order\n        std::sort(amendments.begin(), amendments.end());\n\n    return amendments;\n}\n",[58,428,429,443,477,482,487,492,507,511,516,532,549,565,570,575,580,585,591,618,639,645,657,684,690,696,702,707,727,733,757,762,771],{"__ignoreMap":68},[72,430,431,433,436,438,440],{"class":74,"line":75},[72,432,354],{"class":78},[72,434,435],{"class":92},"::vector",[72,437,351],{"class":287},[72,439,364],{"class":92},[72,441,442],{"class":287},">\n",[72,444,445,448,450,453,456,458,461,463,465,468,471,474],{"class":74,"line":82},[72,446,447],{"class":78},"AmendmentTableImpl",[72,449,323],{"class":92},[72,451,452],{"class":192},"doValidation",[72,454,455],{"class":92},"(",[72,457,354],{"class":78},[72,459,460],{"class":92},"::set",[72,462,351],{"class":287},[72,464,364],{"class":92},[72,466,467],{"class":287},">",[72,469,470],{"class":287}," const&",[72,472,473],{"class":92}," enabled) ",[72,475,476],{"class":287},"const\n",[72,478,479],{"class":74,"line":89},[72,480,481],{"class":92},"{\n",[72,483,484],{"class":74,"line":96},[72,485,486],{"class":85},"    \u002F\u002F Get the list of amendments we support and do not\n",[72,488,489],{"class":74,"line":103},[72,490,491],{"class":85},"    \u002F\u002F veto, but that are not already enabled\n",[72,493,494,496,498,500,502,504],{"class":74,"line":109},[72,495,343],{"class":78},[72,497,323],{"class":92},[72,499,359],{"class":78},[72,501,351],{"class":92},[72,503,364],{"class":78},[72,505,506],{"class":92},"> amendments;\n",[72,508,509],{"class":74,"line":240},[72,510,100],{"emptyLinePlaceholder":99},[72,512,513],{"class":74,"line":246},[72,514,515],{"class":92},"    {\n",[72,517,518,521,523,526,529],{"class":74,"line":370},[72,519,520],{"class":78},"        std",[72,522,323],{"class":92},[72,524,525],{"class":78},"lock_guard",[72,527,528],{"class":192}," lock",[72,530,531],{"class":92},"(mutex_);\n",[72,533,534,537,540,543,546],{"class":74,"line":375},[72,535,536],{"class":92},"        amendments.",[72,538,539],{"class":192},"reserve",[72,541,542],{"class":92},"(amendmentMap_.",[72,544,545],{"class":192},"size",[72,547,548],{"class":92},"());\n",[72,550,551,554,557,560,562],{"class":74,"line":381},[72,552,553],{"class":287},"        for",[72,555,556],{"class":92}," (",[72,558,559],{"class":287},"auto",[72,561,470],{"class":287},[72,563,564],{"class":92}," e : amendmentMap_)\n",[72,566,567],{"class":74,"line":390},[72,568,569],{"class":92},"        {\n",[72,571,572],{"class":74,"line":395},[72,573,574],{"class":85},"            \u002F\u002F Include only if:\n",[72,576,577],{"class":74,"line":401},[72,578,579],{"class":85},"            \u002F\u002F 1. Amendment is supported by this node\n",[72,581,582],{"class":74,"line":410},[72,583,584],{"class":85},"            \u002F\u002F 2. Node votes \"up\" for the amendment\n",[72,586,588],{"class":74,"line":587},16,[72,589,590],{"class":85},"            \u002F\u002F 3. Amendment is not already enabled\n",[72,592,594,597,600,603,606,609,612,615],{"class":74,"line":593},17,[72,595,596],{"class":287},"            if",[72,598,599],{"class":92}," (e.second.supported ",[72,601,602],{"class":287},"&&",[72,604,605],{"class":92}," e.second.vote ",[72,607,608],{"class":287},"==",[72,610,611],{"class":78}," AmendmentVote",[72,613,614],{"class":92},"::up ",[72,616,617],{"class":287},"&&\n",[72,619,621,624,627,630,632,636],{"class":74,"line":620},18,[72,622,623],{"class":92},"                (enabled.",[72,625,626],{"class":192},"count",[72,628,629],{"class":92},"(e.first) ",[72,631,608],{"class":287},[72,633,635],{"class":634},"sCcAr"," 0",[72,637,638],{"class":92},"))\n",[72,640,642],{"class":74,"line":641},19,[72,643,644],{"class":92},"            {\n",[72,646,648,651,654],{"class":74,"line":647},20,[72,649,650],{"class":92},"                amendments.",[72,652,653],{"class":192},"push_back",[72,655,656],{"class":92},"(e.first);\n",[72,658,660,663,666,669,672,675,678,681],{"class":74,"line":659},21,[72,661,662],{"class":192},"                JLOG",[72,664,665],{"class":92},"(j_.",[72,667,668],{"class":192},"info",[72,670,671],{"class":92},"()) ",[72,673,674],{"class":287},"\u003C\u003C",[72,676,677],{"class":138}," \"Voting for amendment \"",[72,679,680],{"class":287}," \u003C\u003C",[72,682,683],{"class":92}," e.second.name;\n",[72,685,687],{"class":74,"line":686},22,[72,688,689],{"class":92},"            }\n",[72,691,693],{"class":74,"line":692},23,[72,694,695],{"class":92},"        }\n",[72,697,699],{"class":74,"line":698},24,[72,700,701],{"class":92},"    }\n",[72,703,705],{"class":74,"line":704},25,[72,706,100],{"emptyLinePlaceholder":99},[72,708,710,713,715,718,721,724],{"class":74,"line":709},26,[72,711,712],{"class":287},"    if",[72,714,556],{"class":92},[72,716,717],{"class":287},"!",[72,719,720],{"class":92},"amendments.",[72,722,723],{"class":192},"empty",[72,725,726],{"class":92},"())\n",[72,728,730],{"class":74,"line":729},27,[72,731,732],{"class":85},"        \u002F\u002F Sort to ensure deterministic order\n",[72,734,736,738,740,743,746,749,752,755],{"class":74,"line":735},28,[72,737,520],{"class":78},[72,739,323],{"class":92},[72,741,742],{"class":192},"sort",[72,744,745],{"class":92},"(amendments.",[72,747,748],{"class":192},"begin",[72,750,751],{"class":92},"(), amendments.",[72,753,754],{"class":192},"end",[72,756,548],{"class":92},[72,758,760],{"class":74,"line":759},29,[72,761,100],{"emptyLinePlaceholder":99},[72,763,765,768],{"class":74,"line":764},30,[72,766,767],{"class":287},"    return",[72,769,770],{"class":92}," amendments;\n",[72,772,774],{"class":74,"line":773},31,[72,775,776],{"class":92},"}\n",[23,778,779,782],{},[33,780,781],{},"Network broadcast",": The signed validation message is broadcast via the overlay network to all connected peers. Each node that receives this validation extracts and stores the list of voted amendments.",[15,784],{},[18,786,788],{"id":787},"vote-collection-and-aggregation","Vote Collection and Aggregation",[44,790,792],{"id":791},"trustedvotes-structure","TrustedVotes Structure",[23,794,795,796,799],{},"The ",[58,797,798],{},"TrustedVotes"," class maintains a real-time count of amendment votes from trusted validators.",[23,801,802,277],{},[33,803,804],{},"Internal structure",[63,806,808],{"className":178,"code":807,"language":180,"meta":68,"style":68},"class TrustedVotes {\nprivate:\n    \u002F\u002F Structure for an individual vote\n    struct Vote {\n        NetClock::time_point expiration;  \u002F\u002F When this vote expires\n        std::vector\u003Cuint256> amendments;  \u002F\u002F Voted amendments\n    };\n\n    \u002F\u002F Map: Validator's public key -> Current vote\n    hash_map\u003CPublicKey, Vote> votes_;\n\n    \u002F\u002F Timeout parameters\n    NetClock::duration const validationFreshness_{5min};\n\npublic:\n    \u002F\u002F Add or update a vote\n    void addVote(\n        PublicKey const& key,\n        std::vector\u003Cuint256> const& amendments,\n        NetClock::time_point now)\n    {\n        votes_[key] = Vote{\n            now + validationFreshness_,\n            amendments\n        };\n    }\n\n    \u002F\u002F Expire old votes\n    void expire(NetClock::time_point now) {\n        for (auto it = votes_.begin(); it != votes_.end();) {\n            if (it->second.expiration \u003C now)\n                it = votes_.erase(it);\n            else\n                ++it;\n        }\n    }\n\n    \u002F\u002F Aggregate votes\n    std::pair\u003Cint, hash_map\u003Cuint256, int>>\n    getVotes(Rules const& rules, std::lock_guard\u003Cstd::mutex> const&)\n    {\n        hash_map\u003Cuint256, int> amendmentVotes;\n        int trustedValidations = 0;\n\n        for (auto const& [key, vote] : votes_) {\n            trustedValidations++;\n            for (auto const& amendment : vote.amendments) {\n                amendmentVotes[amendment]++;\n            }\n        }\n\n        return {trustedValidations, amendmentVotes};\n    }\n};\n",[58,809,810,819,824,829,839,854,872,877,881,886,905,909,914,935,939,944,949,960,973,996,1010,1014,1025,1036,1041,1046,1050,1054,1059,1080,1111,1123,1139,1145,1154,1159,1164,1169,1175,1197,1236,1241,1259,1275,1280,1294,1305,1320,1330,1335,1340,1345,1354,1359],{"__ignoreMap":68},[72,811,812,814,817],{"class":74,"line":75},[72,813,288],{"class":287},[72,815,816],{"class":78}," TrustedVotes",[72,818,294],{"class":92},[72,820,821],{"class":74,"line":82},[72,822,823],{"class":287},"private:\n",[72,825,826],{"class":74,"line":89},[72,827,828],{"class":85},"    \u002F\u002F Structure for an individual vote\n",[72,830,831,834,837],{"class":74,"line":96},[72,832,833],{"class":287},"    struct",[72,835,836],{"class":78}," Vote",[72,838,294],{"class":92},[72,840,841,844,846,848,851],{"class":74,"line":103},[72,842,843],{"class":78},"        NetClock",[72,845,323],{"class":92},[72,847,326],{"class":78},[72,849,850],{"class":92}," expiration;",[72,852,853],{"class":85},"  \u002F\u002F When this vote expires\n",[72,855,856,858,860,862,864,866,869],{"class":74,"line":109},[72,857,520],{"class":78},[72,859,323],{"class":92},[72,861,359],{"class":78},[72,863,351],{"class":92},[72,865,364],{"class":78},[72,867,868],{"class":92},"> amendments;",[72,870,871],{"class":85},"  \u002F\u002F Voted amendments\n",[72,873,874],{"class":74,"line":240},[72,875,876],{"class":92},"    };\n",[72,878,879],{"class":74,"line":246},[72,880,100],{"emptyLinePlaceholder":99},[72,882,883],{"class":74,"line":370},[72,884,885],{"class":85},"    \u002F\u002F Map: Validator's public key -> Current vote\n",[72,887,888,891,893,896,899,902],{"class":74,"line":375},[72,889,890],{"class":78},"    hash_map",[72,892,351],{"class":92},[72,894,895],{"class":78},"PublicKey",[72,897,898],{"class":92},", ",[72,900,901],{"class":78},"Vote",[72,903,904],{"class":92},"> votes_;\n",[72,906,907],{"class":74,"line":381},[72,908,100],{"emptyLinePlaceholder":99},[72,910,911],{"class":74,"line":390},[72,912,913],{"class":85},"    \u002F\u002F Timeout parameters\n",[72,915,916,918,921,924,927,930,933],{"class":74,"line":395},[72,917,320],{"class":78},[72,919,920],{"class":92},"::duration ",[72,922,923],{"class":287},"const",[72,925,926],{"class":92}," validationFreshness_{",[72,928,929],{"class":634},"5",[72,931,932],{"class":287},"min",[72,934,413],{"class":92},[72,936,937],{"class":74,"line":401},[72,938,100],{"emptyLinePlaceholder":99},[72,940,941],{"class":74,"line":410},[72,942,943],{"class":287},"public:\n",[72,945,946],{"class":74,"line":587},[72,947,948],{"class":85},"    \u002F\u002F Add or update a vote\n",[72,950,951,954,957],{"class":74,"line":593},[72,952,953],{"class":287},"    void",[72,955,956],{"class":192}," addVote",[72,958,959],{"class":92},"(\n",[72,961,962,965,967,970],{"class":74,"line":620},[72,963,964],{"class":78},"        PublicKey",[72,966,470],{"class":287},[72,968,969],{"class":78}," key",[72,971,972],{"class":92},",\n",[72,974,975,977,979,981,983,985,988,991,994],{"class":74,"line":641},[72,976,520],{"class":78},[72,978,323],{"class":92},[72,980,359],{"class":78},[72,982,351],{"class":92},[72,984,364],{"class":78},[72,986,987],{"class":92},"> ",[72,989,990],{"class":287},"const&",[72,992,993],{"class":78}," amendments",[72,995,972],{"class":92},[72,997,998,1000,1002,1004,1007],{"class":74,"line":647},[72,999,843],{"class":78},[72,1001,323],{"class":92},[72,1003,326],{"class":78},[72,1005,1006],{"class":78}," now",[72,1008,1009],{"class":92},")\n",[72,1011,1012],{"class":74,"line":659},[72,1013,515],{"class":92},[72,1015,1016,1019,1022],{"class":74,"line":686},[72,1017,1018],{"class":92},"        votes_[key] ",[72,1020,1021],{"class":287},"=",[72,1023,1024],{"class":92}," Vote{\n",[72,1026,1027,1030,1033],{"class":74,"line":692},[72,1028,1029],{"class":92},"            now ",[72,1031,1032],{"class":287},"+",[72,1034,1035],{"class":92}," validationFreshness_,\n",[72,1037,1038],{"class":74,"line":698},[72,1039,1040],{"class":92},"            amendments\n",[72,1042,1043],{"class":74,"line":704},[72,1044,1045],{"class":92},"        };\n",[72,1047,1048],{"class":74,"line":709},[72,1049,701],{"class":92},[72,1051,1052],{"class":74,"line":729},[72,1053,100],{"emptyLinePlaceholder":99},[72,1055,1056],{"class":74,"line":735},[72,1057,1058],{"class":85},"    \u002F\u002F Expire old votes\n",[72,1060,1061,1063,1066,1068,1071,1073,1075,1077],{"class":74,"line":759},[72,1062,953],{"class":287},[72,1064,1065],{"class":192}," expire",[72,1067,455],{"class":92},[72,1069,1070],{"class":78},"NetClock",[72,1072,323],{"class":92},[72,1074,326],{"class":78},[72,1076,1006],{"class":78},[72,1078,1079],{"class":92},") {\n",[72,1081,1082,1084,1086,1088,1091,1093,1096,1098,1101,1104,1106,1108],{"class":74,"line":764},[72,1083,553],{"class":287},[72,1085,556],{"class":92},[72,1087,559],{"class":287},[72,1089,1090],{"class":92}," it ",[72,1092,1021],{"class":287},[72,1094,1095],{"class":92}," votes_.",[72,1097,748],{"class":192},[72,1099,1100],{"class":92},"(); it ",[72,1102,1103],{"class":287},"!=",[72,1105,1095],{"class":92},[72,1107,754],{"class":192},[72,1109,1110],{"class":92},"();) {\n",[72,1112,1113,1115,1118,1120],{"class":74,"line":773},[72,1114,596],{"class":287},[72,1116,1117],{"class":92}," (it->second.expiration ",[72,1119,351],{"class":287},[72,1121,1122],{"class":92}," now)\n",[72,1124,1126,1129,1131,1133,1136],{"class":74,"line":1125},32,[72,1127,1128],{"class":92},"                it ",[72,1130,1021],{"class":287},[72,1132,1095],{"class":92},[72,1134,1135],{"class":192},"erase",[72,1137,1138],{"class":92},"(it);\n",[72,1140,1142],{"class":74,"line":1141},33,[72,1143,1144],{"class":287},"            else\n",[72,1146,1148,1151],{"class":74,"line":1147},34,[72,1149,1150],{"class":287},"                ++",[72,1152,1153],{"class":92},"it;\n",[72,1155,1157],{"class":74,"line":1156},35,[72,1158,695],{"class":92},[72,1160,1162],{"class":74,"line":1161},36,[72,1163,701],{"class":92},[72,1165,1167],{"class":74,"line":1166},37,[72,1168,100],{"emptyLinePlaceholder":99},[72,1170,1172],{"class":74,"line":1171},38,[72,1173,1174],{"class":85},"    \u002F\u002F Aggregate votes\n",[72,1176,1178,1180,1183,1186,1189,1191,1194],{"class":74,"line":1177},39,[72,1179,343],{"class":78},[72,1181,1182],{"class":92},"::pair",[72,1184,1185],{"class":287},"\u003Cint",[72,1187,1188],{"class":92},", hash_map",[72,1190,351],{"class":287},[72,1192,1193],{"class":92},"uint256, ",[72,1195,1196],{"class":287},"int>>\n",[72,1198,1200,1203,1205,1208,1210,1213,1215,1217,1219,1221,1223,1225,1227,1230,1232,1234],{"class":74,"line":1199},40,[72,1201,1202],{"class":192},"    getVotes",[72,1204,455],{"class":92},[72,1206,1207],{"class":78},"Rules",[72,1209,470],{"class":287},[72,1211,1212],{"class":78}," rules",[72,1214,898],{"class":92},[72,1216,354],{"class":78},[72,1218,323],{"class":92},[72,1220,525],{"class":78},[72,1222,351],{"class":92},[72,1224,354],{"class":78},[72,1226,323],{"class":92},[72,1228,1229],{"class":78},"mutex",[72,1231,987],{"class":92},[72,1233,990],{"class":287},[72,1235,1009],{"class":92},[72,1237,1239],{"class":74,"line":1238},41,[72,1240,515],{"class":92},[72,1242,1244,1247,1249,1251,1253,1256],{"class":74,"line":1243},42,[72,1245,1246],{"class":78},"        hash_map",[72,1248,351],{"class":92},[72,1250,364],{"class":78},[72,1252,898],{"class":92},[72,1254,1255],{"class":287},"int",[72,1257,1258],{"class":92},"> amendmentVotes;\n",[72,1260,1262,1265,1268,1270,1272],{"class":74,"line":1261},43,[72,1263,1264],{"class":287},"        int",[72,1266,1267],{"class":92}," trustedValidations ",[72,1269,1021],{"class":287},[72,1271,635],{"class":634},[72,1273,1274],{"class":92},";\n",[72,1276,1278],{"class":74,"line":1277},44,[72,1279,100],{"emptyLinePlaceholder":99},[72,1281,1283,1285,1287,1289,1291],{"class":74,"line":1282},45,[72,1284,553],{"class":287},[72,1286,556],{"class":92},[72,1288,559],{"class":287},[72,1290,470],{"class":287},[72,1292,1293],{"class":92}," [key, vote] : votes_) {\n",[72,1295,1297,1300,1303],{"class":74,"line":1296},46,[72,1298,1299],{"class":92},"            trustedValidations",[72,1301,1302],{"class":287},"++",[72,1304,1274],{"class":92},[72,1306,1308,1311,1313,1315,1317],{"class":74,"line":1307},47,[72,1309,1310],{"class":287},"            for",[72,1312,556],{"class":92},[72,1314,559],{"class":287},[72,1316,470],{"class":287},[72,1318,1319],{"class":92}," amendment : vote.amendments) {\n",[72,1321,1323,1326,1328],{"class":74,"line":1322},48,[72,1324,1325],{"class":92},"                amendmentVotes[amendment]",[72,1327,1302],{"class":287},[72,1329,1274],{"class":92},[72,1331,1333],{"class":74,"line":1332},49,[72,1334,689],{"class":92},[72,1336,1338],{"class":74,"line":1337},50,[72,1339,695],{"class":92},[72,1341,1343],{"class":74,"line":1342},51,[72,1344,100],{"emptyLinePlaceholder":99},[72,1346,1348,1351],{"class":74,"line":1347},52,[72,1349,1350],{"class":287},"        return",[72,1352,1353],{"class":92}," {trustedValidations, amendmentVotes};\n",[72,1355,1357],{"class":74,"line":1356},53,[72,1358,701],{"class":92},[72,1360,1362],{"class":74,"line":1361},54,[72,1363,413],{"class":92},[23,1365,1366,1369],{},[33,1367,1368],{},"Expiration mechanism",": Votes are considered \"fresh\" for 5 minutes. If a validator doesn't publish a new validation within this time, their vote is removed from the count. This ensures counts reflect the current state of active validators.",[44,1371,1373],{"id":1372},"amendmentset-calculating-the-threshold","AmendmentSet: Calculating the Threshold",[23,1375,795,1376,1379],{},[58,1377,1378],{},"AmendmentSet"," class calculates which amendments have exceeded the required threshold for activation.",[23,1381,1382,277],{},[33,1383,1384],{},"Construction",[63,1386,1388],{"className":178,"code":1387,"language":180,"meta":68,"style":68},"class AmendmentSet\n{\nprivate:\n    \u002F\u002F How many yes votes each amendment received\n    hash_map\u003Cuint256, int> votes_;\n    \u002F\u002F number of trusted validations\n    int trustedValidations_ = 0;\n    \u002F\u002F number of votes needed\n    int threshold_ = 0;\n\npublic:\n    AmendmentSet(\n        Rules const& rules,\n        TrustedVotes const& trustedVotes,\n        std::lock_guard\u003Cstd::mutex> const& lock)\n    {\n        \u002F\u002F process validations for ledger before flag ledger.\n        auto [trustedCount, newVotes] = trustedVotes.getVotes(rules, lock);\n\n        trustedValidations_ = trustedCount;\n        votes_.swap(newVotes);\n\n        threshold_ = std::max(\n            1L,\n            static_cast\u003Clong>(\n                (trustedValidations_ * amendmentMajorityCalcThreshold.num) \u002F\n                amendmentMajorityCalcThreshold.den));\n    }\n\n    bool\n    passes(uint256 const& amendment) const\n    {\n        auto const& it = votes_.find(amendment);\n\n        if (it == votes_.end())\n            return false;\n\n        \u002F\u002F One validator is an exception, otherwise it is not possible\n        \u002F\u002F to gain majority.\n        if (trustedValidations_ == 1)\n            return it->second >= threshold_;\n\n        return it->second > threshold_;\n    }\n\n    int\n    votes(uint256 const& amendment) const\n    {\n        auto const& it = votes_.find(amendment);\n\n        if (it == votes_.end())\n            return 0;\n\n        return it->second;\n    }\n\n    int\n    trustedValidations() const\n    {\n        return trustedValidations_;\n    }\n\n    int\n    threshold() const\n    {\n        return threshold_;\n    }\n};\n",[58,1389,1390,1397,1401,1405,1410,1424,1429,1443,1448,1461,1465,1469,1476,1487,1499,1523,1527,1532,1551,1555,1565,1576,1580,1597,1607,1614,1628,1633,1637,1641,1646,1665,1669,1687,1691,1707,1717,1721,1726,1731,1745,1758,1762,1772,1776,1780,1785,1802,1806,1822,1826,1840,1848,1852,1859,1864,1869,1874,1885,1890,1898,1903,1908,1913,1923,1928,1935,1940],{"__ignoreMap":68},[72,1391,1392,1394],{"class":74,"line":75},[72,1393,288],{"class":287},[72,1395,1396],{"class":78}," AmendmentSet\n",[72,1398,1399],{"class":74,"line":82},[72,1400,481],{"class":92},[72,1402,1403],{"class":74,"line":89},[72,1404,823],{"class":287},[72,1406,1407],{"class":74,"line":96},[72,1408,1409],{"class":85},"    \u002F\u002F How many yes votes each amendment received\n",[72,1411,1412,1414,1416,1418,1420,1422],{"class":74,"line":103},[72,1413,890],{"class":78},[72,1415,351],{"class":92},[72,1417,364],{"class":78},[72,1419,898],{"class":92},[72,1421,1255],{"class":287},[72,1423,904],{"class":92},[72,1425,1426],{"class":74,"line":109},[72,1427,1428],{"class":85},"    \u002F\u002F number of trusted validations\n",[72,1430,1431,1434,1437,1439,1441],{"class":74,"line":240},[72,1432,1433],{"class":287},"    int",[72,1435,1436],{"class":92}," trustedValidations_ ",[72,1438,1021],{"class":287},[72,1440,635],{"class":634},[72,1442,1274],{"class":92},[72,1444,1445],{"class":74,"line":246},[72,1446,1447],{"class":85},"    \u002F\u002F number of votes needed\n",[72,1449,1450,1452,1455,1457,1459],{"class":74,"line":370},[72,1451,1433],{"class":287},[72,1453,1454],{"class":92}," threshold_ ",[72,1456,1021],{"class":287},[72,1458,635],{"class":634},[72,1460,1274],{"class":92},[72,1462,1463],{"class":74,"line":375},[72,1464,100],{"emptyLinePlaceholder":99},[72,1466,1467],{"class":74,"line":381},[72,1468,943],{"class":287},[72,1470,1471,1474],{"class":74,"line":390},[72,1472,1473],{"class":192},"    AmendmentSet",[72,1475,959],{"class":92},[72,1477,1478,1481,1483,1485],{"class":74,"line":395},[72,1479,1480],{"class":78},"        Rules",[72,1482,470],{"class":287},[72,1484,1212],{"class":78},[72,1486,972],{"class":92},[72,1488,1489,1492,1494,1497],{"class":74,"line":401},[72,1490,1491],{"class":78},"        TrustedVotes",[72,1493,470],{"class":287},[72,1495,1496],{"class":78}," trustedVotes",[72,1498,972],{"class":92},[72,1500,1501,1503,1505,1507,1509,1511,1513,1515,1517,1519,1521],{"class":74,"line":410},[72,1502,520],{"class":78},[72,1504,323],{"class":92},[72,1506,525],{"class":78},[72,1508,351],{"class":92},[72,1510,354],{"class":78},[72,1512,323],{"class":92},[72,1514,1229],{"class":78},[72,1516,987],{"class":92},[72,1518,990],{"class":287},[72,1520,528],{"class":78},[72,1522,1009],{"class":92},[72,1524,1525],{"class":74,"line":587},[72,1526,515],{"class":92},[72,1528,1529],{"class":74,"line":593},[72,1530,1531],{"class":85},"        \u002F\u002F process validations for ledger before flag ledger.\n",[72,1533,1534,1537,1540,1542,1545,1548],{"class":74,"line":620},[72,1535,1536],{"class":287},"        auto",[72,1538,1539],{"class":92}," [trustedCount, newVotes] ",[72,1541,1021],{"class":287},[72,1543,1544],{"class":92}," trustedVotes.",[72,1546,1547],{"class":192},"getVotes",[72,1549,1550],{"class":92},"(rules, lock);\n",[72,1552,1553],{"class":74,"line":641},[72,1554,100],{"emptyLinePlaceholder":99},[72,1556,1557,1560,1562],{"class":74,"line":647},[72,1558,1559],{"class":92},"        trustedValidations_ ",[72,1561,1021],{"class":287},[72,1563,1564],{"class":92}," trustedCount;\n",[72,1566,1567,1570,1573],{"class":74,"line":659},[72,1568,1569],{"class":92},"        votes_.",[72,1571,1572],{"class":192},"swap",[72,1574,1575],{"class":92},"(newVotes);\n",[72,1577,1578],{"class":74,"line":686},[72,1579,100],{"emptyLinePlaceholder":99},[72,1581,1582,1585,1587,1590,1592,1595],{"class":74,"line":692},[72,1583,1584],{"class":92},"        threshold_ ",[72,1586,1021],{"class":287},[72,1588,1589],{"class":78}," std",[72,1591,323],{"class":92},[72,1593,1594],{"class":192},"max",[72,1596,959],{"class":92},[72,1598,1599,1602,1605],{"class":74,"line":698},[72,1600,1601],{"class":634},"            1",[72,1603,1604],{"class":287},"L",[72,1606,972],{"class":92},[72,1608,1609,1612],{"class":74,"line":704},[72,1610,1611],{"class":287},"            static_cast\u003Clong>",[72,1613,959],{"class":92},[72,1615,1616,1619,1622,1625],{"class":74,"line":709},[72,1617,1618],{"class":92},"                (trustedValidations_ ",[72,1620,1621],{"class":287},"*",[72,1623,1624],{"class":92}," amendmentMajorityCalcThreshold.num) ",[72,1626,1627],{"class":287},"\u002F\n",[72,1629,1630],{"class":74,"line":729},[72,1631,1632],{"class":92},"                amendmentMajorityCalcThreshold.den));\n",[72,1634,1635],{"class":74,"line":735},[72,1636,701],{"class":92},[72,1638,1639],{"class":74,"line":759},[72,1640,100],{"emptyLinePlaceholder":99},[72,1642,1643],{"class":74,"line":764},[72,1644,1645],{"class":287},"    bool\n",[72,1647,1648,1651,1653,1655,1657,1660,1663],{"class":74,"line":773},[72,1649,1650],{"class":192},"    passes",[72,1652,455],{"class":92},[72,1654,364],{"class":78},[72,1656,470],{"class":287},[72,1658,1659],{"class":78}," amendment",[72,1661,1662],{"class":92},") ",[72,1664,476],{"class":287},[72,1666,1667],{"class":74,"line":1125},[72,1668,515],{"class":92},[72,1670,1671,1673,1675,1677,1679,1681,1684],{"class":74,"line":1141},[72,1672,1536],{"class":287},[72,1674,470],{"class":287},[72,1676,1090],{"class":92},[72,1678,1021],{"class":287},[72,1680,1095],{"class":92},[72,1682,1683],{"class":192},"find",[72,1685,1686],{"class":92},"(amendment);\n",[72,1688,1689],{"class":74,"line":1147},[72,1690,100],{"emptyLinePlaceholder":99},[72,1692,1693,1696,1699,1701,1703,1705],{"class":74,"line":1156},[72,1694,1695],{"class":287},"        if",[72,1697,1698],{"class":92}," (it ",[72,1700,608],{"class":287},[72,1702,1095],{"class":92},[72,1704,754],{"class":192},[72,1706,726],{"class":92},[72,1708,1709,1712,1715],{"class":74,"line":1161},[72,1710,1711],{"class":287},"            return",[72,1713,1714],{"class":634}," false",[72,1716,1274],{"class":92},[72,1718,1719],{"class":74,"line":1166},[72,1720,100],{"emptyLinePlaceholder":99},[72,1722,1723],{"class":74,"line":1171},[72,1724,1725],{"class":85},"        \u002F\u002F One validator is an exception, otherwise it is not possible\n",[72,1727,1728],{"class":74,"line":1177},[72,1729,1730],{"class":85},"        \u002F\u002F to gain majority.\n",[72,1732,1733,1735,1738,1740,1743],{"class":74,"line":1199},[72,1734,1695],{"class":287},[72,1736,1737],{"class":92}," (trustedValidations_ ",[72,1739,608],{"class":287},[72,1741,1742],{"class":634}," 1",[72,1744,1009],{"class":92},[72,1746,1747,1749,1752,1755],{"class":74,"line":1238},[72,1748,1711],{"class":287},[72,1750,1751],{"class":92}," it->second ",[72,1753,1754],{"class":287},">=",[72,1756,1757],{"class":92}," threshold_;\n",[72,1759,1760],{"class":74,"line":1243},[72,1761,100],{"emptyLinePlaceholder":99},[72,1763,1764,1766,1768,1770],{"class":74,"line":1261},[72,1765,1350],{"class":287},[72,1767,1751],{"class":92},[72,1769,467],{"class":287},[72,1771,1757],{"class":92},[72,1773,1774],{"class":74,"line":1277},[72,1775,701],{"class":92},[72,1777,1778],{"class":74,"line":1282},[72,1779,100],{"emptyLinePlaceholder":99},[72,1781,1782],{"class":74,"line":1296},[72,1783,1784],{"class":287},"    int\n",[72,1786,1787,1790,1792,1794,1796,1798,1800],{"class":74,"line":1307},[72,1788,1789],{"class":192},"    votes",[72,1791,455],{"class":92},[72,1793,364],{"class":78},[72,1795,470],{"class":287},[72,1797,1659],{"class":78},[72,1799,1662],{"class":92},[72,1801,476],{"class":287},[72,1803,1804],{"class":74,"line":1322},[72,1805,515],{"class":92},[72,1807,1808,1810,1812,1814,1816,1818,1820],{"class":74,"line":1332},[72,1809,1536],{"class":287},[72,1811,470],{"class":287},[72,1813,1090],{"class":92},[72,1815,1021],{"class":287},[72,1817,1095],{"class":92},[72,1819,1683],{"class":192},[72,1821,1686],{"class":92},[72,1823,1824],{"class":74,"line":1337},[72,1825,100],{"emptyLinePlaceholder":99},[72,1827,1828,1830,1832,1834,1836,1838],{"class":74,"line":1342},[72,1829,1695],{"class":287},[72,1831,1698],{"class":92},[72,1833,608],{"class":287},[72,1835,1095],{"class":92},[72,1837,754],{"class":192},[72,1839,726],{"class":92},[72,1841,1842,1844,1846],{"class":74,"line":1347},[72,1843,1711],{"class":287},[72,1845,635],{"class":634},[72,1847,1274],{"class":92},[72,1849,1850],{"class":74,"line":1356},[72,1851,100],{"emptyLinePlaceholder":99},[72,1853,1854,1856],{"class":74,"line":1361},[72,1855,1350],{"class":287},[72,1857,1858],{"class":92}," it->second;\n",[72,1860,1862],{"class":74,"line":1861},55,[72,1863,701],{"class":92},[72,1865,1867],{"class":74,"line":1866},56,[72,1868,100],{"emptyLinePlaceholder":99},[72,1870,1872],{"class":74,"line":1871},57,[72,1873,1784],{"class":287},[72,1875,1877,1880,1883],{"class":74,"line":1876},58,[72,1878,1879],{"class":192},"    trustedValidations",[72,1881,1882],{"class":92},"() ",[72,1884,476],{"class":287},[72,1886,1888],{"class":74,"line":1887},59,[72,1889,515],{"class":92},[72,1891,1893,1895],{"class":74,"line":1892},60,[72,1894,1350],{"class":287},[72,1896,1897],{"class":92}," trustedValidations_;\n",[72,1899,1901],{"class":74,"line":1900},61,[72,1902,701],{"class":92},[72,1904,1906],{"class":74,"line":1905},62,[72,1907,100],{"emptyLinePlaceholder":99},[72,1909,1911],{"class":74,"line":1910},63,[72,1912,1784],{"class":287},[72,1914,1916,1919,1921],{"class":74,"line":1915},64,[72,1917,1918],{"class":192},"    threshold",[72,1920,1882],{"class":92},[72,1922,476],{"class":287},[72,1924,1926],{"class":74,"line":1925},65,[72,1927,515],{"class":92},[72,1929,1931,1933],{"class":74,"line":1930},66,[72,1932,1350],{"class":287},[72,1934,1757],{"class":92},[72,1936,1938],{"class":74,"line":1937},67,[72,1939,701],{"class":92},[72,1941,1943],{"class":74,"line":1942},68,[72,1944,413],{"class":92},[23,1946,1947,277],{},[33,1948,1949],{},"Threshold calculation (over 80%)",[23,1951,1952,1953,1956,1957,1960],{},"The displayed threshold is calculated as ",[58,1954,1955],{},"floor(validations * 0.8)",", but the comparison uses ",[58,1958,1959],{},"votes > threshold"," (strictly greater), which ensures over 80% of validators vote for the amendment.",[23,1962,1963],{},"Examples with Subscriptions:",[23,1965,1966,277],{},[33,1967,1968],{},"25 trusted validators",[63,1970,1975],{"className":1971,"code":1973,"language":1974},[1972],"language-text","threshold = floor(25 * 0.8) = floor(20.0) = 20\nTo pass: votes > 20, so minimum 21 votes required\nActual percentage: 21\u002F25 = 84% > 80% ✓\n","text",[58,1976,1973],{"__ignoreMap":68},[23,1978,1979,277],{},[33,1980,1981],{},"26 validators",[63,1983,1986],{"className":1984,"code":1985,"language":1974},[1972],"threshold = floor(26 * 0.8) = floor(20.8) = 20\nTo pass: votes > 20, so minimum 21 votes required\nActual percentage: 21\u002F26 = 80.77% > 80% ✓\n",[58,1987,1985],{"__ignoreMap":68},[23,1989,1990,277],{},[33,1991,1992],{},"35 validators",[63,1994,1997],{"className":1995,"code":1996,"language":1974},[1972],"threshold = floor(35 * 0.8) = floor(28.0) = 28\nTo pass: votes > 28, so minimum 29 votes required\nActual percentage: 29\u002F35 = 82.86% > 80% ✓\n",[58,1998,1996],{"__ignoreMap":68},[23,2000,2001,2004,2005,2008,2009,2011],{},[33,2002,2003],{},"Special case - 1 validator",": With a single validator (test networks), the comparison becomes ",[58,2006,2007],{},"votes >= threshold"," instead of ",[58,2010,1959],{},", allowing the single validator to activate the amendment.",[15,2013],{},[18,2015,2017],{"id":2016},"dovoting-function-vote-orchestration","doVoting Function: Vote Orchestration",[23,2019,795,2020,2023],{},[58,2021,2022],{},"doVoting()"," function is called at each consensus round (before each flag ledger) to determine what actions to take for amendments.",[44,2025,2027],{"id":2026},"complete-algorithm","Complete Algorithm",[63,2029,2031],{"className":178,"code":2030,"language":180,"meta":68,"style":68},"std::map\u003Cuint256, std::uint32_t>\nAmendmentTableImpl::doVoting(\n    Rules const& rules,\n    NetClock::time_point closeTime,\n    std::set\u003Cuint256> const& enabledAmendments,\n    majorityAmendments_t const& majorityAmendments,\n    std::vector\u003Cstd::shared_ptr\u003CSTValidation>> const& valSet)\n{\n    JLOG(j_.trace()) \u003C\u003C \"voting at \" \u003C\u003C closeTime.time_since_epoch().count()\n                     \u003C\u003C \": \" \u003C\u003C enabledAmendments.size() \u003C\u003C \", \"\n                     \u003C\u003C majorityAmendments.size() \u003C\u003C \", \" \u003C\u003C valSet.size();\n\n    std::lock_guard lock(mutex_);\n\n    \u002F\u002F Keep a record of the votes we received.\n    previousTrustedVotes_.recordVotes(rules, valSet, closeTime, j_, lock);\n\n    \u002F\u002F Tally the most recent votes.\n    auto vote =\n        std::make_unique\u003CAmendmentSet>(rules, previousTrustedVotes_, lock);\n    JLOG(j_.debug()) \u003C\u003C \"Counted votes from \" \u003C\u003C vote->trustedValidations()\n                     \u003C\u003C \" valid trusted validations, threshold is: \"\n                     \u003C\u003C vote->threshold();\n\n    \u002F\u002F Map of amendments to the action to be taken for each one. The action is\n    \u002F\u002F the value of the flags in the pseudo-transaction\n    std::map\u003Cuint256, std::uint32_t> actions;\n\n    \u002F\u002F process all amendments we know of\n    for (auto const& entry : amendmentMap_)\n    {\n        if (enabledAmendments.contains(entry.first))\n        {\n            JLOG(j_.trace()) \u003C\u003C entry.first \u003C\u003C \": amendment already enabled\";\n\n            continue;\n        }\n\n        bool const hasValMajority = vote->passes(entry.first);\n\n        auto const majorityTime = [&]() -> std::optional\u003CNetClock::time_point> {\n            auto const it = majorityAmendments.find(entry.first);\n            if (it != majorityAmendments.end())\n                return it->second;\n            return std::nullopt;\n        }();\n\n        bool const hasLedgerMajority = majorityTime.has_value();\n\n        auto const logStr = [&entry, &vote]() {\n            std::stringstream ss;\n            ss \u003C\u003C entry.first \u003C\u003C \" (\" \u003C\u003C entry.second.name \u003C\u003C \") has \"\n               \u003C\u003C vote->votes(entry.first) \u003C\u003C \" votes\";\n            return ss.str();\n        }();\n\n        if (hasValMajority && !hasLedgerMajority &&\n            entry.second.vote == AmendmentVote::up)\n        {\n            \u002F\u002F Ledger says no majority, validators say yes, and voting yes\n            \u002F\u002F locally\n            JLOG(j_.debug()) \u003C\u003C logStr \u003C\u003C \": amendment got majority\";\n            actions[entry.first] = tfGotMajority;\n        }\n        else if (!hasValMajority && hasLedgerMajority)\n        {\n            \u002F\u002F Ledger says majority, validators say no\n            JLOG(j_.debug()) \u003C\u003C logStr \u003C\u003C \": amendment lost majority\";\n            actions[entry.first] = tfLostMajority;\n        }\n        else if (\n            hasLedgerMajority &&\n            ((*majorityTime + majorityTime_) \u003C= closeTime) &&\n            entry.second.vote == AmendmentVote::up)\n        {\n            \u002F\u002F Ledger says majority held\n            JLOG(j_.debug()) \u003C\u003C logStr \u003C\u003C \": amendment majority held\";\n            actions[entry.first] = 0;\n        }\n        \u002F\u002F Logging only below this point\n        else if (hasValMajority && hasLedgerMajority)\n        {\n            JLOG(j_.debug())\n                \u003C\u003C logStr\n                \u003C\u003C \": amendment holding majority, waiting to be enabled\";\n        }\n        else if (!hasValMajority)\n        {\n            JLOG(j_.debug()) \u003C\u003C logStr \u003C\u003C \": amendment does not have majority\";\n        }\n    }\n\n    \u002F\u002F Stash for reporting\n    lastVote_ = std::move(vote);\n    return actions;\n}\n",[58,2032,2033,2051,2062,2072,2079,2096,2106,2132,2136,2169,2191,2217,2221,2233,2237,2242,2253,2257,2262,2273,2289,2315,2322,2333,2337,2342,2347,2372,2376,2381,2395,2399,2412,2416,2439,2443,2450,2454,2458,2479,2483,2508,2525,2539,2546,2555,2560,2564,2583,2587,2615,2628,2652,2672,2684,2688,2692,2709,2721,2725,2730,2735,2756,2766,2770,2790,2794,2799,2820,2830,2835,2845,2853,2877,2888,2893,2899,2921,2932,2937,2943,2956,2961,2972,2981,2991,2996,3010,3015,3037,3042,3047,3052,3058,3076,3084],{"__ignoreMap":68},[72,2034,2035,2037,2040,2042,2044,2046,2048],{"class":74,"line":75},[72,2036,354],{"class":78},[72,2038,2039],{"class":92},"::map",[72,2041,351],{"class":287},[72,2043,1193],{"class":92},[72,2045,354],{"class":78},[72,2047,323],{"class":92},[72,2049,2050],{"class":287},"uint32_t>\n",[72,2052,2053,2055,2057,2060],{"class":74,"line":82},[72,2054,447],{"class":78},[72,2056,323],{"class":92},[72,2058,2059],{"class":192},"doVoting",[72,2061,959],{"class":92},[72,2063,2064,2067,2069],{"class":74,"line":89},[72,2065,2066],{"class":92},"    Rules ",[72,2068,990],{"class":287},[72,2070,2071],{"class":92}," rules,\n",[72,2073,2074,2076],{"class":74,"line":96},[72,2075,320],{"class":78},[72,2077,2078],{"class":92},"::time_point closeTime,\n",[72,2080,2081,2083,2085,2087,2089,2091,2093],{"class":74,"line":103},[72,2082,343],{"class":78},[72,2084,460],{"class":92},[72,2086,351],{"class":287},[72,2088,364],{"class":92},[72,2090,467],{"class":287},[72,2092,470],{"class":287},[72,2094,2095],{"class":92}," enabledAmendments,\n",[72,2097,2098,2101,2103],{"class":74,"line":109},[72,2099,2100],{"class":634},"    majorityAmendments_t",[72,2102,470],{"class":287},[72,2104,2105],{"class":92}," majorityAmendments,\n",[72,2107,2108,2110,2112,2114,2116,2119,2121,2124,2127,2129],{"class":74,"line":240},[72,2109,343],{"class":78},[72,2111,435],{"class":92},[72,2113,351],{"class":287},[72,2115,354],{"class":78},[72,2117,2118],{"class":92},"::shared_ptr",[72,2120,351],{"class":287},[72,2122,2123],{"class":92},"STValidation",[72,2125,2126],{"class":287},">>",[72,2128,470],{"class":287},[72,2130,2131],{"class":92}," valSet)\n",[72,2133,2134],{"class":74,"line":246},[72,2135,481],{"class":92},[72,2137,2138,2141,2143,2146,2148,2150,2153,2155,2158,2161,2164,2166],{"class":74,"line":370},[72,2139,2140],{"class":192},"    JLOG",[72,2142,665],{"class":92},[72,2144,2145],{"class":192},"trace",[72,2147,671],{"class":92},[72,2149,674],{"class":287},[72,2151,2152],{"class":138}," \"voting at \"",[72,2154,680],{"class":287},[72,2156,2157],{"class":92}," closeTime.",[72,2159,2160],{"class":192},"time_since_epoch",[72,2162,2163],{"class":92},"().",[72,2165,626],{"class":192},[72,2167,2168],{"class":92},"()\n",[72,2170,2171,2174,2177,2179,2182,2184,2186,2188],{"class":74,"line":375},[72,2172,2173],{"class":287},"                     \u003C\u003C",[72,2175,2176],{"class":138}," \": \"",[72,2178,680],{"class":287},[72,2180,2181],{"class":92}," enabledAmendments.",[72,2183,545],{"class":192},[72,2185,1882],{"class":92},[72,2187,674],{"class":287},[72,2189,2190],{"class":138}," \", \"\n",[72,2192,2193,2195,2198,2200,2202,2204,2207,2209,2212,2214],{"class":74,"line":381},[72,2194,2173],{"class":287},[72,2196,2197],{"class":92}," majorityAmendments.",[72,2199,545],{"class":192},[72,2201,1882],{"class":92},[72,2203,674],{"class":287},[72,2205,2206],{"class":138}," \", \"",[72,2208,680],{"class":287},[72,2210,2211],{"class":92}," valSet.",[72,2213,545],{"class":192},[72,2215,2216],{"class":92},"();\n",[72,2218,2219],{"class":74,"line":390},[72,2220,100],{"emptyLinePlaceholder":99},[72,2222,2223,2225,2227,2229,2231],{"class":74,"line":395},[72,2224,343],{"class":78},[72,2226,323],{"class":92},[72,2228,525],{"class":78},[72,2230,528],{"class":192},[72,2232,531],{"class":92},[72,2234,2235],{"class":74,"line":401},[72,2236,100],{"emptyLinePlaceholder":99},[72,2238,2239],{"class":74,"line":410},[72,2240,2241],{"class":85},"    \u002F\u002F Keep a record of the votes we received.\n",[72,2243,2244,2247,2250],{"class":74,"line":587},[72,2245,2246],{"class":92},"    previousTrustedVotes_.",[72,2248,2249],{"class":192},"recordVotes",[72,2251,2252],{"class":92},"(rules, valSet, closeTime, j_, lock);\n",[72,2254,2255],{"class":74,"line":593},[72,2256,100],{"emptyLinePlaceholder":99},[72,2258,2259],{"class":74,"line":620},[72,2260,2261],{"class":85},"    \u002F\u002F Tally the most recent votes.\n",[72,2263,2264,2267,2270],{"class":74,"line":641},[72,2265,2266],{"class":287},"    auto",[72,2268,2269],{"class":92}," vote ",[72,2271,2272],{"class":287},"=\n",[72,2274,2275,2277,2279,2282,2284,2286],{"class":74,"line":647},[72,2276,520],{"class":78},[72,2278,323],{"class":92},[72,2280,2281],{"class":192},"make_unique",[72,2283,351],{"class":92},[72,2285,1378],{"class":78},[72,2287,2288],{"class":92},">(rules, previousTrustedVotes_, lock);\n",[72,2290,2291,2293,2295,2298,2300,2302,2305,2307,2310,2313],{"class":74,"line":659},[72,2292,2140],{"class":192},[72,2294,665],{"class":92},[72,2296,2297],{"class":192},"debug",[72,2299,671],{"class":92},[72,2301,674],{"class":287},[72,2303,2304],{"class":138}," \"Counted votes from \"",[72,2306,680],{"class":287},[72,2308,2309],{"class":92}," vote->",[72,2311,2312],{"class":192},"trustedValidations",[72,2314,2168],{"class":92},[72,2316,2317,2319],{"class":74,"line":686},[72,2318,2173],{"class":287},[72,2320,2321],{"class":138}," \" valid trusted validations, threshold is: \"\n",[72,2323,2324,2326,2328,2331],{"class":74,"line":692},[72,2325,2173],{"class":287},[72,2327,2309],{"class":92},[72,2329,2330],{"class":192},"threshold",[72,2332,2216],{"class":92},[72,2334,2335],{"class":74,"line":698},[72,2336,100],{"emptyLinePlaceholder":99},[72,2338,2339],{"class":74,"line":704},[72,2340,2341],{"class":85},"    \u002F\u002F Map of amendments to the action to be taken for each one. The action is\n",[72,2343,2344],{"class":74,"line":709},[72,2345,2346],{"class":85},"    \u002F\u002F the value of the flags in the pseudo-transaction\n",[72,2348,2349,2351,2353,2356,2358,2360,2362,2364,2366,2369],{"class":74,"line":729},[72,2350,343],{"class":78},[72,2352,323],{"class":92},[72,2354,2355],{"class":78},"map",[72,2357,351],{"class":92},[72,2359,364],{"class":78},[72,2361,898],{"class":92},[72,2363,354],{"class":78},[72,2365,323],{"class":92},[72,2367,2368],{"class":287},"uint32_t",[72,2370,2371],{"class":92},"> actions;\n",[72,2373,2374],{"class":74,"line":735},[72,2375,100],{"emptyLinePlaceholder":99},[72,2377,2378],{"class":74,"line":759},[72,2379,2380],{"class":85},"    \u002F\u002F process all amendments we know of\n",[72,2382,2383,2386,2388,2390,2392],{"class":74,"line":764},[72,2384,2385],{"class":287},"    for",[72,2387,556],{"class":92},[72,2389,559],{"class":287},[72,2391,470],{"class":287},[72,2393,2394],{"class":92}," entry : amendmentMap_)\n",[72,2396,2397],{"class":74,"line":773},[72,2398,515],{"class":92},[72,2400,2401,2403,2406,2409],{"class":74,"line":1125},[72,2402,1695],{"class":287},[72,2404,2405],{"class":92}," (enabledAmendments.",[72,2407,2408],{"class":192},"contains",[72,2410,2411],{"class":92},"(entry.first))\n",[72,2413,2414],{"class":74,"line":1141},[72,2415,569],{"class":92},[72,2417,2418,2421,2423,2425,2427,2429,2432,2434,2437],{"class":74,"line":1147},[72,2419,2420],{"class":192},"            JLOG",[72,2422,665],{"class":92},[72,2424,2145],{"class":192},[72,2426,671],{"class":92},[72,2428,674],{"class":287},[72,2430,2431],{"class":92}," entry.first ",[72,2433,674],{"class":287},[72,2435,2436],{"class":138}," \": amendment already enabled\"",[72,2438,1274],{"class":92},[72,2440,2441],{"class":74,"line":1156},[72,2442,100],{"emptyLinePlaceholder":99},[72,2444,2445,2448],{"class":74,"line":1161},[72,2446,2447],{"class":287},"            continue",[72,2449,1274],{"class":92},[72,2451,2452],{"class":74,"line":1166},[72,2453,695],{"class":92},[72,2455,2456],{"class":74,"line":1171},[72,2457,100],{"emptyLinePlaceholder":99},[72,2459,2460,2463,2466,2469,2471,2473,2476],{"class":74,"line":1177},[72,2461,2462],{"class":287},"        bool",[72,2464,2465],{"class":287}," const",[72,2467,2468],{"class":92}," hasValMajority ",[72,2470,1021],{"class":287},[72,2472,2309],{"class":92},[72,2474,2475],{"class":192},"passes",[72,2477,2478],{"class":92},"(entry.first);\n",[72,2480,2481],{"class":74,"line":1199},[72,2482,100],{"emptyLinePlaceholder":99},[72,2484,2485,2487,2489,2492,2494,2497,2500,2503,2506],{"class":74,"line":1238},[72,2486,1536],{"class":287},[72,2488,2465],{"class":287},[72,2490,2491],{"class":92}," majorityTime ",[72,2493,1021],{"class":287},[72,2495,2496],{"class":92}," [",[72,2498,2499],{"class":287},"&",[72,2501,2502],{"class":92},"]() -> ",[72,2504,2505],{"class":287},"std::optional\u003CNetClock::time_point>",[72,2507,294],{"class":92},[72,2509,2510,2513,2515,2517,2519,2521,2523],{"class":74,"line":1243},[72,2511,2512],{"class":287},"            auto",[72,2514,2465],{"class":287},[72,2516,1090],{"class":92},[72,2518,1021],{"class":287},[72,2520,2197],{"class":92},[72,2522,1683],{"class":192},[72,2524,2478],{"class":92},[72,2526,2527,2529,2531,2533,2535,2537],{"class":74,"line":1261},[72,2528,596],{"class":287},[72,2530,1698],{"class":92},[72,2532,1103],{"class":287},[72,2534,2197],{"class":92},[72,2536,754],{"class":192},[72,2538,726],{"class":92},[72,2540,2541,2544],{"class":74,"line":1277},[72,2542,2543],{"class":287},"                return",[72,2545,1858],{"class":92},[72,2547,2548,2550,2552],{"class":74,"line":1282},[72,2549,1711],{"class":287},[72,2551,1589],{"class":78},[72,2553,2554],{"class":92},"::nullopt;\n",[72,2556,2557],{"class":74,"line":1296},[72,2558,2559],{"class":92},"        }();\n",[72,2561,2562],{"class":74,"line":1307},[72,2563,100],{"emptyLinePlaceholder":99},[72,2565,2566,2568,2570,2573,2575,2578,2581],{"class":74,"line":1322},[72,2567,2462],{"class":287},[72,2569,2465],{"class":287},[72,2571,2572],{"class":92}," hasLedgerMajority ",[72,2574,1021],{"class":287},[72,2576,2577],{"class":92}," majorityTime.",[72,2579,2580],{"class":192},"has_value",[72,2582,2216],{"class":92},[72,2584,2585],{"class":74,"line":1332},[72,2586,100],{"emptyLinePlaceholder":99},[72,2588,2589,2591,2593,2596,2598,2600,2602,2605,2607,2609,2612],{"class":74,"line":1337},[72,2590,1536],{"class":287},[72,2592,2465],{"class":287},[72,2594,2595],{"class":92}," logStr ",[72,2597,1021],{"class":287},[72,2599,2496],{"class":92},[72,2601,2499],{"class":287},[72,2603,2604],{"class":78},"entry",[72,2606,898],{"class":92},[72,2608,2499],{"class":287},[72,2610,2611],{"class":78},"vote",[72,2613,2614],{"class":92},"]() {\n",[72,2616,2617,2620,2622,2625],{"class":74,"line":1342},[72,2618,2619],{"class":78},"            std",[72,2621,323],{"class":92},[72,2623,2624],{"class":78},"stringstream",[72,2626,2627],{"class":92}," ss;\n",[72,2629,2630,2633,2635,2637,2639,2642,2644,2647,2649],{"class":74,"line":1347},[72,2631,2632],{"class":92},"            ss ",[72,2634,674],{"class":287},[72,2636,2431],{"class":92},[72,2638,674],{"class":287},[72,2640,2641],{"class":138}," \" (\"",[72,2643,680],{"class":287},[72,2645,2646],{"class":92}," entry.second.name ",[72,2648,674],{"class":287},[72,2650,2651],{"class":138}," \") has \"\n",[72,2653,2654,2657,2659,2662,2665,2667,2670],{"class":74,"line":1356},[72,2655,2656],{"class":287},"               \u003C\u003C",[72,2658,2309],{"class":92},[72,2660,2661],{"class":192},"votes",[72,2663,2664],{"class":92},"(entry.first) ",[72,2666,674],{"class":287},[72,2668,2669],{"class":138}," \" votes\"",[72,2671,1274],{"class":92},[72,2673,2674,2676,2679,2682],{"class":74,"line":1361},[72,2675,1711],{"class":287},[72,2677,2678],{"class":92}," ss.",[72,2680,2681],{"class":192},"str",[72,2683,2216],{"class":92},[72,2685,2686],{"class":74,"line":1861},[72,2687,2559],{"class":92},[72,2689,2690],{"class":74,"line":1866},[72,2691,100],{"emptyLinePlaceholder":99},[72,2693,2694,2696,2699,2701,2704,2707],{"class":74,"line":1871},[72,2695,1695],{"class":287},[72,2697,2698],{"class":92}," (hasValMajority ",[72,2700,602],{"class":287},[72,2702,2703],{"class":287}," !",[72,2705,2706],{"class":92},"hasLedgerMajority ",[72,2708,617],{"class":287},[72,2710,2711,2714,2716,2718],{"class":74,"line":1876},[72,2712,2713],{"class":92},"            entry.second.vote ",[72,2715,608],{"class":287},[72,2717,611],{"class":78},[72,2719,2720],{"class":92},"::up)\n",[72,2722,2723],{"class":74,"line":1887},[72,2724,569],{"class":92},[72,2726,2727],{"class":74,"line":1892},[72,2728,2729],{"class":85},"            \u002F\u002F Ledger says no majority, validators say yes, and voting yes\n",[72,2731,2732],{"class":74,"line":1900},[72,2733,2734],{"class":85},"            \u002F\u002F locally\n",[72,2736,2737,2739,2741,2743,2745,2747,2749,2751,2754],{"class":74,"line":1905},[72,2738,2420],{"class":192},[72,2740,665],{"class":92},[72,2742,2297],{"class":192},[72,2744,671],{"class":92},[72,2746,674],{"class":287},[72,2748,2595],{"class":92},[72,2750,674],{"class":287},[72,2752,2753],{"class":138}," \": amendment got majority\"",[72,2755,1274],{"class":92},[72,2757,2758,2761,2763],{"class":74,"line":1910},[72,2759,2760],{"class":92},"            actions[entry.first] ",[72,2762,1021],{"class":287},[72,2764,2765],{"class":92}," tfGotMajority;\n",[72,2767,2768],{"class":74,"line":1915},[72,2769,695],{"class":92},[72,2771,2772,2775,2778,2780,2782,2785,2787],{"class":74,"line":1925},[72,2773,2774],{"class":287},"        else",[72,2776,2777],{"class":287}," if",[72,2779,556],{"class":92},[72,2781,717],{"class":287},[72,2783,2784],{"class":92},"hasValMajority ",[72,2786,602],{"class":287},[72,2788,2789],{"class":92}," hasLedgerMajority)\n",[72,2791,2792],{"class":74,"line":1930},[72,2793,569],{"class":92},[72,2795,2796],{"class":74,"line":1937},[72,2797,2798],{"class":85},"            \u002F\u002F Ledger says majority, validators say no\n",[72,2800,2801,2803,2805,2807,2809,2811,2813,2815,2818],{"class":74,"line":1942},[72,2802,2420],{"class":192},[72,2804,665],{"class":92},[72,2806,2297],{"class":192},[72,2808,671],{"class":92},[72,2810,674],{"class":287},[72,2812,2595],{"class":92},[72,2814,674],{"class":287},[72,2816,2817],{"class":138}," \": amendment lost majority\"",[72,2819,1274],{"class":92},[72,2821,2823,2825,2827],{"class":74,"line":2822},69,[72,2824,2760],{"class":92},[72,2826,1021],{"class":287},[72,2828,2829],{"class":92}," tfLostMajority;\n",[72,2831,2833],{"class":74,"line":2832},70,[72,2834,695],{"class":92},[72,2836,2838,2840,2842],{"class":74,"line":2837},71,[72,2839,2774],{"class":287},[72,2841,2777],{"class":287},[72,2843,2844],{"class":92}," (\n",[72,2846,2848,2851],{"class":74,"line":2847},72,[72,2849,2850],{"class":92},"            hasLedgerMajority ",[72,2852,617],{"class":287},[72,2854,2856,2859,2861,2864,2866,2869,2872,2875],{"class":74,"line":2855},73,[72,2857,2858],{"class":92},"            ((",[72,2860,1621],{"class":287},[72,2862,2863],{"class":92},"majorityTime ",[72,2865,1032],{"class":287},[72,2867,2868],{"class":92}," majorityTime_) ",[72,2870,2871],{"class":287},"\u003C=",[72,2873,2874],{"class":92}," closeTime) ",[72,2876,617],{"class":287},[72,2878,2880,2882,2884,2886],{"class":74,"line":2879},74,[72,2881,2713],{"class":92},[72,2883,608],{"class":287},[72,2885,611],{"class":78},[72,2887,2720],{"class":92},[72,2889,2891],{"class":74,"line":2890},75,[72,2892,569],{"class":92},[72,2894,2896],{"class":74,"line":2895},76,[72,2897,2898],{"class":85},"            \u002F\u002F Ledger says majority held\n",[72,2900,2902,2904,2906,2908,2910,2912,2914,2916,2919],{"class":74,"line":2901},77,[72,2903,2420],{"class":192},[72,2905,665],{"class":92},[72,2907,2297],{"class":192},[72,2909,671],{"class":92},[72,2911,674],{"class":287},[72,2913,2595],{"class":92},[72,2915,674],{"class":287},[72,2917,2918],{"class":138}," \": amendment majority held\"",[72,2920,1274],{"class":92},[72,2922,2924,2926,2928,2930],{"class":74,"line":2923},78,[72,2925,2760],{"class":92},[72,2927,1021],{"class":287},[72,2929,635],{"class":634},[72,2931,1274],{"class":92},[72,2933,2935],{"class":74,"line":2934},79,[72,2936,695],{"class":92},[72,2938,2940],{"class":74,"line":2939},80,[72,2941,2942],{"class":85},"        \u002F\u002F Logging only below this point\n",[72,2944,2946,2948,2950,2952,2954],{"class":74,"line":2945},81,[72,2947,2774],{"class":287},[72,2949,2777],{"class":287},[72,2951,2698],{"class":92},[72,2953,602],{"class":287},[72,2955,2789],{"class":92},[72,2957,2959],{"class":74,"line":2958},82,[72,2960,569],{"class":92},[72,2962,2964,2966,2968,2970],{"class":74,"line":2963},83,[72,2965,2420],{"class":192},[72,2967,665],{"class":92},[72,2969,2297],{"class":192},[72,2971,726],{"class":92},[72,2973,2975,2978],{"class":74,"line":2974},84,[72,2976,2977],{"class":287},"                \u003C\u003C",[72,2979,2980],{"class":92}," logStr\n",[72,2982,2984,2986,2989],{"class":74,"line":2983},85,[72,2985,2977],{"class":287},[72,2987,2988],{"class":138}," \": amendment holding majority, waiting to be enabled\"",[72,2990,1274],{"class":92},[72,2992,2994],{"class":74,"line":2993},86,[72,2995,695],{"class":92},[72,2997,2999,3001,3003,3005,3007],{"class":74,"line":2998},87,[72,3000,2774],{"class":287},[72,3002,2777],{"class":287},[72,3004,556],{"class":92},[72,3006,717],{"class":287},[72,3008,3009],{"class":92},"hasValMajority)\n",[72,3011,3013],{"class":74,"line":3012},88,[72,3014,569],{"class":92},[72,3016,3018,3020,3022,3024,3026,3028,3030,3032,3035],{"class":74,"line":3017},89,[72,3019,2420],{"class":192},[72,3021,665],{"class":92},[72,3023,2297],{"class":192},[72,3025,671],{"class":92},[72,3027,674],{"class":287},[72,3029,2595],{"class":92},[72,3031,674],{"class":287},[72,3033,3034],{"class":138}," \": amendment does not have majority\"",[72,3036,1274],{"class":92},[72,3038,3040],{"class":74,"line":3039},90,[72,3041,695],{"class":92},[72,3043,3045],{"class":74,"line":3044},91,[72,3046,701],{"class":92},[72,3048,3050],{"class":74,"line":3049},92,[72,3051,100],{"emptyLinePlaceholder":99},[72,3053,3055],{"class":74,"line":3054},93,[72,3056,3057],{"class":85},"    \u002F\u002F Stash for reporting\n",[72,3059,3061,3064,3066,3068,3070,3073],{"class":74,"line":3060},94,[72,3062,3063],{"class":92},"    lastVote_ ",[72,3065,1021],{"class":287},[72,3067,1589],{"class":78},[72,3069,323],{"class":92},[72,3071,3072],{"class":192},"move",[72,3074,3075],{"class":92},"(vote);\n",[72,3077,3079,3081],{"class":74,"line":3078},95,[72,3080,767],{"class":287},[72,3082,3083],{"class":92}," actions;\n",[72,3085,3087],{"class":74,"line":3086},96,[72,3088,776],{"class":92},[44,3090,3092],{"id":3091},"returned-action-codes","Returned Action Codes",[23,3094,3095],{},"The returned map associates each amendment with an action code:",[3097,3098,3099,3109,3118],"ul",{},[3100,3101,3102,3108],"li",{},[33,3103,3104,3107],{},[58,3105,3106],{},"tfGotMajority"," (0x00010000)",": Amendment exceeded the 80% threshold",[3100,3110,3111,3117],{},[33,3112,3113,3116],{},[58,3114,3115],{},"tfLostMajority"," (0x00020000)",": Amendment fell below the threshold",[3100,3119,3120,3125],{},[33,3121,3122],{},[58,3123,3124],{},"0",": Amendment must be activated (stability period elapsed)",[23,3127,3128],{},"These codes are used to generate appropriate pseudo-transactions.",[15,3130],{},[18,3132,3134],{"id":3133},"enableamendment-pseudo-transactions","EnableAmendment Pseudo-transactions",[44,3136,3138],{"id":3137},"pseudo-transaction-generation","Pseudo-transaction Generation",[23,3140,3141,3142,3145],{},"Pseudo-transactions are generated by the consensus engine in ",[58,3143,3144],{},"RCLConsensus::onAccept()"," after a ledger has been accepted.",[23,3147,3148,277],{},[33,3149,3150],{},"Process",[63,3152,3154],{"className":178,"code":3153,"language":180,"meta":68,"style":68},"RCLConsensus::Adaptor::onAccept(\n    Result const& result,\n    RCLCxLedger const& prevLedger,\n    NetClock::duration const& closeResolution,\n    ConsensusCloseTimes const& rawCloseTimes,\n    ConsensusMode const& mode,\n    Json::Value&& consensusJson,\n    bool const validating)\n{\n    app_.getJobQueue().addJob(\n        jtACCEPT,\n        \"acceptLedger\",\n        [=, this, cj = std::move(consensusJson)]() mutable {\n            \u002F\u002F Note that no lock is held or acquired during this job.\n            \u002F\u002F This is because generic Consensus guarantees that once a ledger\n            \u002F\u002F is accepted, the consensus results and capture by reference state\n            \u002F\u002F will not change until startRound is called (which happens via\n            \u002F\u002F endConsensus).\n            RclConsensusLogger clog(\"onAccept\", validating, j_);\n            this->doAccept(\n                result,\n                prevLedger,\n                closeResolution,\n                rawCloseTimes,\n                mode,\n                std::move(cj));\n            this->app_.getOPs().endConsensus(clog.ss());\n        });\n}\n",[58,3155,3156,3173,3183,3193,3204,3214,3224,3237,3247,3251,3266,3271,3278,3312,3317,3322,3327,3332,3337,3353,3366,3371,3376,3381,3386,3391,3403,3426,3431],{"__ignoreMap":68},[72,3157,3158,3161,3163,3166,3168,3171],{"class":74,"line":75},[72,3159,3160],{"class":78},"RCLConsensus",[72,3162,323],{"class":92},[72,3164,3165],{"class":78},"Adaptor",[72,3167,323],{"class":92},[72,3169,3170],{"class":192},"onAccept",[72,3172,959],{"class":92},[72,3174,3175,3178,3180],{"class":74,"line":82},[72,3176,3177],{"class":92},"    Result ",[72,3179,990],{"class":287},[72,3181,3182],{"class":92}," result,\n",[72,3184,3185,3188,3190],{"class":74,"line":89},[72,3186,3187],{"class":92},"    RCLCxLedger ",[72,3189,990],{"class":287},[72,3191,3192],{"class":92}," prevLedger,\n",[72,3194,3195,3197,3199,3201],{"class":74,"line":96},[72,3196,320],{"class":78},[72,3198,920],{"class":92},[72,3200,990],{"class":287},[72,3202,3203],{"class":92}," closeResolution,\n",[72,3205,3206,3209,3211],{"class":74,"line":103},[72,3207,3208],{"class":92},"    ConsensusCloseTimes ",[72,3210,990],{"class":287},[72,3212,3213],{"class":92}," rawCloseTimes,\n",[72,3215,3216,3219,3221],{"class":74,"line":109},[72,3217,3218],{"class":92},"    ConsensusMode ",[72,3220,990],{"class":287},[72,3222,3223],{"class":92}," mode,\n",[72,3225,3226,3229,3232,3234],{"class":74,"line":240},[72,3227,3228],{"class":78},"    Json",[72,3230,3231],{"class":92},"::Value",[72,3233,602],{"class":287},[72,3235,3236],{"class":92}," consensusJson,\n",[72,3238,3239,3242,3244],{"class":74,"line":246},[72,3240,3241],{"class":287},"    bool",[72,3243,2465],{"class":287},[72,3245,3246],{"class":92}," validating)\n",[72,3248,3249],{"class":74,"line":370},[72,3250,481],{"class":92},[72,3252,3253,3256,3259,3261,3264],{"class":74,"line":375},[72,3254,3255],{"class":92},"    app_.",[72,3257,3258],{"class":192},"getJobQueue",[72,3260,2163],{"class":92},[72,3262,3263],{"class":192},"addJob",[72,3265,959],{"class":92},[72,3267,3268],{"class":74,"line":381},[72,3269,3270],{"class":92},"        jtACCEPT,\n",[72,3272,3273,3276],{"class":74,"line":390},[72,3274,3275],{"class":138},"        \"acceptLedger\"",[72,3277,972],{"class":92},[72,3279,3280,3283,3285,3287,3290,3292,3295,3298,3300,3302,3304,3307,3310],{"class":74,"line":395},[72,3281,3282],{"class":92},"        [",[72,3284,1021],{"class":287},[72,3286,898],{"class":92},[72,3288,3289],{"class":634},"this",[72,3291,898],{"class":92},[72,3293,3294],{"class":78},"cj",[72,3296,3297],{"class":287}," =",[72,3299,1589],{"class":78},[72,3301,323],{"class":92},[72,3303,3072],{"class":192},[72,3305,3306],{"class":92},"(consensusJson)]() ",[72,3308,3309],{"class":287},"mutable",[72,3311,294],{"class":92},[72,3313,3314],{"class":74,"line":401},[72,3315,3316],{"class":85},"            \u002F\u002F Note that no lock is held or acquired during this job.\n",[72,3318,3319],{"class":74,"line":410},[72,3320,3321],{"class":85},"            \u002F\u002F This is because generic Consensus guarantees that once a ledger\n",[72,3323,3324],{"class":74,"line":587},[72,3325,3326],{"class":85},"            \u002F\u002F is accepted, the consensus results and capture by reference state\n",[72,3328,3329],{"class":74,"line":593},[72,3330,3331],{"class":85},"            \u002F\u002F will not change until startRound is called (which happens via\n",[72,3333,3334],{"class":74,"line":620},[72,3335,3336],{"class":85},"            \u002F\u002F endConsensus).\n",[72,3338,3339,3342,3345,3347,3350],{"class":74,"line":641},[72,3340,3341],{"class":78},"            RclConsensusLogger",[72,3343,3344],{"class":192}," clog",[72,3346,455],{"class":92},[72,3348,3349],{"class":138},"\"onAccept\"",[72,3351,3352],{"class":92},", validating, j_);\n",[72,3354,3355,3358,3361,3364],{"class":74,"line":647},[72,3356,3357],{"class":634},"            this",[72,3359,3360],{"class":92},"->",[72,3362,3363],{"class":192},"doAccept",[72,3365,959],{"class":92},[72,3367,3368],{"class":74,"line":659},[72,3369,3370],{"class":92},"                result,\n",[72,3372,3373],{"class":74,"line":686},[72,3374,3375],{"class":92},"                prevLedger,\n",[72,3377,3378],{"class":74,"line":692},[72,3379,3380],{"class":92},"                closeResolution,\n",[72,3382,3383],{"class":74,"line":698},[72,3384,3385],{"class":92},"                rawCloseTimes,\n",[72,3387,3388],{"class":74,"line":704},[72,3389,3390],{"class":92},"                mode,\n",[72,3392,3393,3396,3398,3400],{"class":74,"line":709},[72,3394,3395],{"class":78},"                std",[72,3397,323],{"class":92},[72,3399,3072],{"class":192},[72,3401,3402],{"class":92},"(cj));\n",[72,3404,3405,3407,3410,3413,3415,3418,3421,3424],{"class":74,"line":729},[72,3406,3357],{"class":634},[72,3408,3409],{"class":92},"->app_.",[72,3411,3412],{"class":192},"getOPs",[72,3414,2163],{"class":92},[72,3416,3417],{"class":192},"endConsensus",[72,3419,3420],{"class":92},"(clog.",[72,3422,3423],{"class":192},"ss",[72,3425,548],{"class":92},[72,3427,3428],{"class":74,"line":735},[72,3429,3430],{"class":92},"        });\n",[72,3432,3433],{"class":74,"line":759},[72,3434,776],{"class":92},[23,3436,3437,277],{},[33,3438,3439],{},"Pseudo-transaction properties",[3097,3441,3442,3451,3460,3466,3472,3478],{},[3100,3443,3444,3447,3448],{},[33,3445,3446],{},"Type",": ",[58,3449,3450],{},"ttENABLE_AMENDMENT",[3100,3452,3453,3447,3456,3459],{},[33,3454,3455],{},"Account",[58,3457,3458],{},"rrrrrrrrrrrrrrrrrrrrrhoLvTp"," (special account = AccountID(0))",[3100,3461,3462,3465],{},[33,3463,3464],{},"No signature",": Pseudo-transactions are not signed",[3100,3467,3468,3471],{},[33,3469,3470],{},"No fees",": No fee is deducted",[3100,3473,3474,3477],{},[33,3475,3476],{},"TransactionIndex",": Generally 0 (first transaction in ledger)",[3100,3479,3480,3483],{},[33,3481,3482],{},"Automatically injected",": Generated by the network, not submitted by a user",[44,3485,3487],{"id":3486},"processing-by-changeapplyamendment","Processing by Change::applyAmendment",[23,3489,3490,3493,3494,277],{},[58,3491,3492],{},"EnableAmendment"," pseudo-transactions are processed by a specialized function in ",[58,3495,3496],{},"Change.cpp",[63,3498,3500],{"className":178,"code":3499,"language":180,"meta":68,"style":68},"\nTER\nChange::applyAmendment()\n{\n    \u002F\u002F Extract the amendment hash\n    uint256 amendment(ctx_.tx.getFieldH256(sfAmendment));\n\n    \u002F\u002F Get the amendments object from the ledger\n    auto const k = keylet::amendments();\n\n    SLE::pointer amendmentObject = view().peek(k);\n\n    if (!amendmentObject)\n    {\n        amendmentObject = std::make_shared\u003CSLE>(k);\n        view().insert(amendmentObject);\n    }\n\n    STVector256 amendments = amendmentObject->getFieldV256(sfAmendments);\n\n    if (std::find(amendments.begin(), amendments.end(), amendment) !=\n        amendments.end())\n        return tefALREADY;\n\n    auto flags = ctx_.tx.getFlags();\n\n    bool const gotMajority = (flags & tfGotMajority) != 0;\n    bool const lostMajority = (flags & tfLostMajority) != 0;\n\n    if (gotMajority && lostMajority)\n        return temINVALID_FLAG;\n\n    STArray newMajorities(sfMajorities);\n\n    bool found = false;\n    \u002F\u002F Check if already enabled\n    if (amendmentObject->isFieldPresent(sfMajorities))\n    {\n        STArray const& oldMajorities =\n            amendmentObject->getFieldArray(sfMajorities);\n        for (auto const& majority : oldMajorities)\n        {\n            if (majority.getFieldH256(sfAmendment) == amendment)\n            {\n                if (gotMajority)\n                    return tefALREADY;\n                found = true;\n            }\n            else\n            {\n                \u002F\u002F pass through\n                newMajorities.push_back(majority);\n            }\n        }\n    }\n\n    if (!found && lostMajority)\n        return tefALREADY;\n\n    if (gotMajority)\n    {\n        \u002F\u002F This amendment now has a majority\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        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, enable amendment\n        amendments.push_back(amendment);\n        amendmentObject->setFieldV256(sfAmendments, amendments);\n\n        ctx_.app.getAmendmentTable().enable(amendment);\n\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    if (newMajorities.empty())\n        amendmentObject->makeFieldAbsent(sfMajorities);\n    else\n        amendmentObject->setFieldArray(sfMajorities, newMajorities);\n\n    \u002F\u002F Update the object in the ledger\n    view().update(amendmentObject);\n\n    return tesSUCCESS;\n}\n",[58,3501,3502,3506,3511,3523,3527,3532,3547,3551,3556,3577,3581,3607,3611,3622,3626,3648,3661,3665,3669,3688,3692,3718,3726,3733,3737,3754,3758,3783,3807,3811,3823,3830,3834,3845,3849,3862,3867,3880,3884,3896,3906,3919,3923,3940,3944,3952,3959,3971,3975,3979,3983,3988,3998,4002,4006,4010,4014,4029,4035,4039,4045,4049,4054,4074,4092,4102,4109,4129,4133,4155,4159,4180,4190,4194,4198,4212,4216,4221,4229,4240,4244,4258,4262,4280,4284,4303,4313,4327,4331,4335,4339,4350,4359,4364,4374,4378,4383,4396,4401,4409],{"__ignoreMap":68},[72,3503,3504],{"class":74,"line":75},[72,3505,100],{"emptyLinePlaceholder":99},[72,3507,3508],{"class":74,"line":82},[72,3509,3510],{"class":92},"TER\n",[72,3512,3513,3516,3518,3521],{"class":74,"line":89},[72,3514,3515],{"class":78},"Change",[72,3517,323],{"class":92},[72,3519,3520],{"class":192},"applyAmendment",[72,3522,2168],{"class":92},[72,3524,3525],{"class":74,"line":96},[72,3526,481],{"class":92},[72,3528,3529],{"class":74,"line":103},[72,3530,3531],{"class":85},"    \u002F\u002F Extract the amendment hash\n",[72,3533,3534,3536,3538,3541,3544],{"class":74,"line":109},[72,3535,304],{"class":78},[72,3537,1659],{"class":192},[72,3539,3540],{"class":92},"(ctx_.tx.",[72,3542,3543],{"class":192},"getFieldH256",[72,3545,3546],{"class":92},"(sfAmendment));\n",[72,3548,3549],{"class":74,"line":240},[72,3550,100],{"emptyLinePlaceholder":99},[72,3552,3553],{"class":74,"line":246},[72,3554,3555],{"class":85},"    \u002F\u002F Get the amendments object from the ledger\n",[72,3557,3558,3560,3562,3565,3567,3570,3572,3575],{"class":74,"line":370},[72,3559,2266],{"class":287},[72,3561,2465],{"class":287},[72,3563,3564],{"class":92}," k ",[72,3566,1021],{"class":287},[72,3568,3569],{"class":78}," keylet",[72,3571,323],{"class":92},[72,3573,3574],{"class":192},"amendments",[72,3576,2216],{"class":92},[72,3578,3579],{"class":74,"line":375},[72,3580,100],{"emptyLinePlaceholder":99},[72,3582,3583,3586,3588,3591,3594,3596,3599,3601,3604],{"class":74,"line":381},[72,3584,3585],{"class":78},"    SLE",[72,3587,323],{"class":92},[72,3589,3590],{"class":78},"pointer",[72,3592,3593],{"class":92}," amendmentObject ",[72,3595,1021],{"class":287},[72,3597,3598],{"class":192}," view",[72,3600,2163],{"class":92},[72,3602,3603],{"class":192},"peek",[72,3605,3606],{"class":92},"(k);\n",[72,3608,3609],{"class":74,"line":390},[72,3610,100],{"emptyLinePlaceholder":99},[72,3612,3613,3615,3617,3619],{"class":74,"line":395},[72,3614,712],{"class":287},[72,3616,556],{"class":92},[72,3618,717],{"class":287},[72,3620,3621],{"class":92},"amendmentObject)\n",[72,3623,3624],{"class":74,"line":401},[72,3625,515],{"class":92},[72,3627,3628,3631,3633,3635,3637,3640,3642,3645],{"class":74,"line":410},[72,3629,3630],{"class":92},"        amendmentObject ",[72,3632,1021],{"class":287},[72,3634,1589],{"class":78},[72,3636,323],{"class":92},[72,3638,3639],{"class":192},"make_shared",[72,3641,351],{"class":92},[72,3643,3644],{"class":78},"SLE",[72,3646,3647],{"class":92},">(k);\n",[72,3649,3650,3653,3655,3658],{"class":74,"line":587},[72,3651,3652],{"class":192},"        view",[72,3654,2163],{"class":92},[72,3656,3657],{"class":192},"insert",[72,3659,3660],{"class":92},"(amendmentObject);\n",[72,3662,3663],{"class":74,"line":593},[72,3664,701],{"class":92},[72,3666,3667],{"class":74,"line":620},[72,3668,100],{"emptyLinePlaceholder":99},[72,3670,3671,3674,3677,3679,3682,3685],{"class":74,"line":641},[72,3672,3673],{"class":78},"    STVector256",[72,3675,3676],{"class":92}," amendments ",[72,3678,1021],{"class":287},[72,3680,3681],{"class":92}," amendmentObject->",[72,3683,3684],{"class":192},"getFieldV256",[72,3686,3687],{"class":92},"(sfAmendments);\n",[72,3689,3690],{"class":74,"line":647},[72,3691,100],{"emptyLinePlaceholder":99},[72,3693,3694,3696,3698,3700,3702,3704,3706,3708,3710,3712,3715],{"class":74,"line":659},[72,3695,712],{"class":287},[72,3697,556],{"class":92},[72,3699,354],{"class":78},[72,3701,323],{"class":92},[72,3703,1683],{"class":192},[72,3705,745],{"class":92},[72,3707,748],{"class":192},[72,3709,751],{"class":92},[72,3711,754],{"class":192},[72,3713,3714],{"class":92},"(), amendment) ",[72,3716,3717],{"class":287},"!=\n",[72,3719,3720,3722,3724],{"class":74,"line":686},[72,3721,536],{"class":92},[72,3723,754],{"class":192},[72,3725,726],{"class":92},[72,3727,3728,3730],{"class":74,"line":692},[72,3729,1350],{"class":287},[72,3731,3732],{"class":92}," tefALREADY;\n",[72,3734,3735],{"class":74,"line":698},[72,3736,100],{"emptyLinePlaceholder":99},[72,3738,3739,3741,3744,3746,3749,3752],{"class":74,"line":704},[72,3740,2266],{"class":287},[72,3742,3743],{"class":92}," flags ",[72,3745,1021],{"class":287},[72,3747,3748],{"class":92}," ctx_.tx.",[72,3750,3751],{"class":192},"getFlags",[72,3753,2216],{"class":92},[72,3755,3756],{"class":74,"line":709},[72,3757,100],{"emptyLinePlaceholder":99},[72,3759,3760,3762,3764,3767,3769,3772,3774,3777,3779,3781],{"class":74,"line":729},[72,3761,3241],{"class":287},[72,3763,2465],{"class":287},[72,3765,3766],{"class":92}," gotMajority ",[72,3768,1021],{"class":287},[72,3770,3771],{"class":92}," (flags ",[72,3773,2499],{"class":287},[72,3775,3776],{"class":92}," tfGotMajority) ",[72,3778,1103],{"class":287},[72,3780,635],{"class":634},[72,3782,1274],{"class":92},[72,3784,3785,3787,3789,3792,3794,3796,3798,3801,3803,3805],{"class":74,"line":735},[72,3786,3241],{"class":287},[72,3788,2465],{"class":287},[72,3790,3791],{"class":92}," lostMajority ",[72,3793,1021],{"class":287},[72,3795,3771],{"class":92},[72,3797,2499],{"class":287},[72,3799,3800],{"class":92}," tfLostMajority) ",[72,3802,1103],{"class":287},[72,3804,635],{"class":634},[72,3806,1274],{"class":92},[72,3808,3809],{"class":74,"line":759},[72,3810,100],{"emptyLinePlaceholder":99},[72,3812,3813,3815,3818,3820],{"class":74,"line":764},[72,3814,712],{"class":287},[72,3816,3817],{"class":92}," (gotMajority ",[72,3819,602],{"class":287},[72,3821,3822],{"class":92}," lostMajority)\n",[72,3824,3825,3827],{"class":74,"line":773},[72,3826,1350],{"class":287},[72,3828,3829],{"class":92}," temINVALID_FLAG;\n",[72,3831,3832],{"class":74,"line":1125},[72,3833,100],{"emptyLinePlaceholder":99},[72,3835,3836,3839,3842],{"class":74,"line":1141},[72,3837,3838],{"class":78},"    STArray",[72,3840,3841],{"class":192}," newMajorities",[72,3843,3844],{"class":92},"(sfMajorities);\n",[72,3846,3847],{"class":74,"line":1147},[72,3848,100],{"emptyLinePlaceholder":99},[72,3850,3851,3853,3856,3858,3860],{"class":74,"line":1156},[72,3852,3241],{"class":287},[72,3854,3855],{"class":92}," found ",[72,3857,1021],{"class":287},[72,3859,1714],{"class":634},[72,3861,1274],{"class":92},[72,3863,3864],{"class":74,"line":1161},[72,3865,3866],{"class":85},"    \u002F\u002F Check if already enabled\n",[72,3868,3869,3871,3874,3877],{"class":74,"line":1166},[72,3870,712],{"class":287},[72,3872,3873],{"class":92}," (amendmentObject->",[72,3875,3876],{"class":192},"isFieldPresent",[72,3878,3879],{"class":92},"(sfMajorities))\n",[72,3881,3882],{"class":74,"line":1171},[72,3883,515],{"class":92},[72,3885,3886,3889,3891,3894],{"class":74,"line":1177},[72,3887,3888],{"class":92},"        STArray ",[72,3890,990],{"class":287},[72,3892,3893],{"class":92}," oldMajorities ",[72,3895,2272],{"class":287},[72,3897,3898,3901,3904],{"class":74,"line":1199},[72,3899,3900],{"class":92},"            amendmentObject->",[72,3902,3903],{"class":192},"getFieldArray",[72,3905,3844],{"class":92},[72,3907,3908,3910,3912,3914,3916],{"class":74,"line":1238},[72,3909,553],{"class":287},[72,3911,556],{"class":92},[72,3913,559],{"class":287},[72,3915,470],{"class":287},[72,3917,3918],{"class":92}," majority : oldMajorities)\n",[72,3920,3921],{"class":74,"line":1243},[72,3922,569],{"class":92},[72,3924,3925,3927,3930,3932,3935,3937],{"class":74,"line":1261},[72,3926,596],{"class":287},[72,3928,3929],{"class":92}," (majority.",[72,3931,3543],{"class":192},[72,3933,3934],{"class":92},"(sfAmendment) ",[72,3936,608],{"class":287},[72,3938,3939],{"class":92}," amendment)\n",[72,3941,3942],{"class":74,"line":1277},[72,3943,644],{"class":92},[72,3945,3946,3949],{"class":74,"line":1282},[72,3947,3948],{"class":287},"                if",[72,3950,3951],{"class":92}," (gotMajority)\n",[72,3953,3954,3957],{"class":74,"line":1296},[72,3955,3956],{"class":287},"                    return",[72,3958,3732],{"class":92},[72,3960,3961,3964,3966,3969],{"class":74,"line":1307},[72,3962,3963],{"class":92},"                found ",[72,3965,1021],{"class":287},[72,3967,3968],{"class":634}," true",[72,3970,1274],{"class":92},[72,3972,3973],{"class":74,"line":1322},[72,3974,689],{"class":92},[72,3976,3977],{"class":74,"line":1332},[72,3978,1144],{"class":287},[72,3980,3981],{"class":74,"line":1337},[72,3982,644],{"class":92},[72,3984,3985],{"class":74,"line":1342},[72,3986,3987],{"class":85},"                \u002F\u002F pass through\n",[72,3989,3990,3993,3995],{"class":74,"line":1347},[72,3991,3992],{"class":92},"                newMajorities.",[72,3994,653],{"class":192},[72,3996,3997],{"class":92},"(majority);\n",[72,3999,4000],{"class":74,"line":1356},[72,4001,689],{"class":92},[72,4003,4004],{"class":74,"line":1361},[72,4005,695],{"class":92},[72,4007,4008],{"class":74,"line":1861},[72,4009,701],{"class":92},[72,4011,4012],{"class":74,"line":1866},[72,4013,100],{"emptyLinePlaceholder":99},[72,4015,4016,4018,4020,4022,4025,4027],{"class":74,"line":1871},[72,4017,712],{"class":287},[72,4019,556],{"class":92},[72,4021,717],{"class":287},[72,4023,4024],{"class":92},"found ",[72,4026,602],{"class":287},[72,4028,3822],{"class":92},[72,4030,4031,4033],{"class":74,"line":1876},[72,4032,1350],{"class":287},[72,4034,3732],{"class":92},[72,4036,4037],{"class":74,"line":1887},[72,4038,100],{"emptyLinePlaceholder":99},[72,4040,4041,4043],{"class":74,"line":1892},[72,4042,712],{"class":287},[72,4044,3951],{"class":92},[72,4046,4047],{"class":74,"line":1900},[72,4048,515],{"class":92},[72,4050,4051],{"class":74,"line":1905},[72,4052,4053],{"class":85},"        \u002F\u002F This amendment now has a majority\n",[72,4055,4056,4059,4061,4063,4066,4068,4071],{"class":74,"line":1910},[72,4057,4058],{"class":92},"        newMajorities.",[72,4060,653],{"class":192},[72,4062,455],{"class":92},[72,4064,4065],{"class":78},"STObject",[72,4067,323],{"class":92},[72,4069,4070],{"class":192},"makeInnerObject",[72,4072,4073],{"class":92},"(sfMajority));\n",[72,4075,4076,4079,4082,4084,4087,4090],{"class":74,"line":1915},[72,4077,4078],{"class":287},"        auto&",[72,4080,4081],{"class":92}," entry ",[72,4083,1021],{"class":287},[72,4085,4086],{"class":92}," newMajorities.",[72,4088,4089],{"class":192},"back",[72,4091,2216],{"class":92},[72,4093,4094,4097,4099],{"class":74,"line":1925},[72,4095,4096],{"class":92},"        entry[sfAmendment] ",[72,4098,1021],{"class":287},[72,4100,4101],{"class":92}," amendment;\n",[72,4103,4104,4107],{"class":74,"line":1930},[72,4105,4106],{"class":92},"        entry[sfCloseTime] ",[72,4108,2272],{"class":287},[72,4110,4111,4114,4116,4119,4121,4123,4125,4127],{"class":74,"line":1937},[72,4112,4113],{"class":192},"            view",[72,4115,2163],{"class":92},[72,4117,4118],{"class":192},"parentCloseTime",[72,4120,2163],{"class":92},[72,4122,2160],{"class":192},[72,4124,2163],{"class":92},[72,4126,626],{"class":192},[72,4128,2216],{"class":92},[72,4130,4131],{"class":74,"line":1942},[72,4132,100],{"emptyLinePlaceholder":99},[72,4134,4135,4137,4139,4141,4144,4147,4149,4152],{"class":74,"line":2822},[72,4136,1695],{"class":287},[72,4138,556],{"class":92},[72,4140,717],{"class":287},[72,4142,4143],{"class":92},"ctx_.app.",[72,4145,4146],{"class":192},"getAmendmentTable",[72,4148,2163],{"class":92},[72,4150,4151],{"class":192},"isSupported",[72,4153,4154],{"class":92},"(amendment))\n",[72,4156,4157],{"class":74,"line":2832},[72,4158,569],{"class":92},[72,4160,4161,4163,4165,4168,4170,4172,4175,4177],{"class":74,"line":2837},[72,4162,2420],{"class":192},[72,4164,665],{"class":92},[72,4166,4167],{"class":192},"warn",[72,4169,671],{"class":92},[72,4171,674],{"class":287},[72,4173,4174],{"class":138}," \"Unsupported amendment \"",[72,4176,680],{"class":287},[72,4178,4179],{"class":92}," amendment\n",[72,4181,4182,4185,4188],{"class":74,"line":2847},[72,4183,4184],{"class":287},"                            \u003C\u003C",[72,4186,4187],{"class":138}," \" received a majority.\"",[72,4189,1274],{"class":92},[72,4191,4192],{"class":74,"line":2855},[72,4193,695],{"class":92},[72,4195,4196],{"class":74,"line":2879},[72,4197,701],{"class":92},[72,4199,4200,4203,4205,4207,4209],{"class":74,"line":2890},[72,4201,4202],{"class":287},"    else",[72,4204,2777],{"class":287},[72,4206,556],{"class":92},[72,4208,717],{"class":287},[72,4210,4211],{"class":92},"lostMajority)\n",[72,4213,4214],{"class":74,"line":2895},[72,4215,515],{"class":92},[72,4217,4218],{"class":74,"line":2901},[72,4219,4220],{"class":85},"        \u002F\u002F No flags, enable amendment\n",[72,4222,4223,4225,4227],{"class":74,"line":2923},[72,4224,536],{"class":92},[72,4226,653],{"class":192},[72,4228,1686],{"class":92},[72,4230,4231,4234,4237],{"class":74,"line":2934},[72,4232,4233],{"class":92},"        amendmentObject->",[72,4235,4236],{"class":192},"setFieldV256",[72,4238,4239],{"class":92},"(sfAmendments, amendments);\n",[72,4241,4242],{"class":74,"line":2939},[72,4243,100],{"emptyLinePlaceholder":99},[72,4245,4246,4249,4251,4253,4256],{"class":74,"line":2945},[72,4247,4248],{"class":92},"        ctx_.app.",[72,4250,4146],{"class":192},[72,4252,2163],{"class":92},[72,4254,4255],{"class":192},"enable",[72,4257,1686],{"class":92},[72,4259,4260],{"class":74,"line":2958},[72,4261,100],{"emptyLinePlaceholder":99},[72,4263,4264,4266,4268,4270,4272,4274,4276,4278],{"class":74,"line":2963},[72,4265,1695],{"class":287},[72,4267,556],{"class":92},[72,4269,717],{"class":287},[72,4271,4143],{"class":92},[72,4273,4146],{"class":192},[72,4275,2163],{"class":92},[72,4277,4151],{"class":192},[72,4279,4154],{"class":92},[72,4281,4282],{"class":74,"line":2974},[72,4283,569],{"class":92},[72,4285,4286,4288,4290,4293,4295,4297,4299,4301],{"class":74,"line":2983},[72,4287,2420],{"class":192},[72,4289,665],{"class":92},[72,4291,4292],{"class":192},"error",[72,4294,671],{"class":92},[72,4296,674],{"class":287},[72,4298,4174],{"class":138},[72,4300,680],{"class":287},[72,4302,4179],{"class":92},[72,4304,4305,4308,4311],{"class":74,"line":2993},[72,4306,4307],{"class":287},"                             \u003C\u003C",[72,4309,4310],{"class":138}," \" activated: server blocked.\"",[72,4312,1274],{"class":92},[72,4314,4315,4318,4320,4322,4325],{"class":74,"line":2998},[72,4316,4317],{"class":92},"            ctx_.app.",[72,4319,3412],{"class":192},[72,4321,2163],{"class":92},[72,4323,4324],{"class":192},"setAmendmentBlocked",[72,4326,2216],{"class":92},[72,4328,4329],{"class":74,"line":3012},[72,4330,695],{"class":92},[72,4332,4333],{"class":74,"line":3017},[72,4334,701],{"class":92},[72,4336,4337],{"class":74,"line":3039},[72,4338,100],{"emptyLinePlaceholder":99},[72,4340,4341,4343,4346,4348],{"class":74,"line":3044},[72,4342,712],{"class":287},[72,4344,4345],{"class":92}," (newMajorities.",[72,4347,723],{"class":192},[72,4349,726],{"class":92},[72,4351,4352,4354,4357],{"class":74,"line":3049},[72,4353,4233],{"class":92},[72,4355,4356],{"class":192},"makeFieldAbsent",[72,4358,3844],{"class":92},[72,4360,4361],{"class":74,"line":3054},[72,4362,4363],{"class":287},"    else\n",[72,4365,4366,4368,4371],{"class":74,"line":3060},[72,4367,4233],{"class":92},[72,4369,4370],{"class":192},"setFieldArray",[72,4372,4373],{"class":92},"(sfMajorities, newMajorities);\n",[72,4375,4376],{"class":74,"line":3078},[72,4377,100],{"emptyLinePlaceholder":99},[72,4379,4380],{"class":74,"line":3086},[72,4381,4382],{"class":85},"    \u002F\u002F Update the object in the ledger\n",[72,4384,4386,4389,4391,4394],{"class":74,"line":4385},97,[72,4387,4388],{"class":192},"    view",[72,4390,2163],{"class":92},[72,4392,4393],{"class":192},"update",[72,4395,3660],{"class":92},[72,4397,4399],{"class":74,"line":4398},98,[72,4400,100],{"emptyLinePlaceholder":99},[72,4402,4404,4406],{"class":74,"line":4403},99,[72,4405,767],{"class":287},[72,4407,4408],{"class":92}," tesSUCCESS;\n",[72,4410,4412],{"class":74,"line":4411},100,[72,4413,776],{"class":92},[44,4415,4417],{"id":4416},"modified-ledger-fields","Modified Ledger Fields",[23,4419,4420,277],{},[33,4421,4422],{},"Ledger Amendments Object",[63,4424,4428],{"className":4425,"code":4426,"language":4427,"meta":68,"style":68},"language-json shiki shiki-themes github-dark-high-contrast","{\n  \"LedgerEntryType\": \"Amendments\",\n  \"Amendments\": [\n    \"42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE\",\n    \u002F\u002F ... other enabled amendments ...\n    \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\"  \u002F\u002F Subscriptions\n  ],\n  \"Majorities\": [\n    {\n      \"Majority\": {\n        \"Amendment\": \"AAAA...\",  \u002F\u002F Another amendment pending\n        \"CloseTime\": 805500000\n      }\n    }\n  ],\n  \"Flags\": 0,\n  \"index\": \"7DB0788C020F02780A673DC74757F23823FA3014C1866E72CC4CD8B226CD6EF4\"\n}\n","json",[58,4429,4430,4434,4447,4455,4462,4467,4475,4480,4487,4491,4499,4515,4525,4530,4534,4538,4549,4559],{"__ignoreMap":68},[72,4431,4432],{"class":74,"line":75},[72,4433,481],{"class":92},[72,4435,4436,4440,4442,4445],{"class":74,"line":82},[72,4437,4439],{"class":4438},"sKpQp","  \"LedgerEntryType\"",[72,4441,3447],{"class":92},[72,4443,4444],{"class":138},"\"Amendments\"",[72,4446,972],{"class":92},[72,4448,4449,4452],{"class":74,"line":89},[72,4450,4451],{"class":4438},"  \"Amendments\"",[72,4453,4454],{"class":92},": [\n",[72,4456,4457,4460],{"class":74,"line":96},[72,4458,4459],{"class":138},"    \"42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE\"",[72,4461,972],{"class":92},[72,4463,4464],{"class":74,"line":103},[72,4465,4466],{"class":85},"    \u002F\u002F ... other enabled amendments ...\n",[72,4468,4469,4472],{"class":74,"line":109},[72,4470,4471],{"class":138},"    \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\"",[72,4473,4474],{"class":85},"  \u002F\u002F Subscriptions\n",[72,4476,4477],{"class":74,"line":240},[72,4478,4479],{"class":92},"  ],\n",[72,4481,4482,4485],{"class":74,"line":246},[72,4483,4484],{"class":4438},"  \"Majorities\"",[72,4486,4454],{"class":92},[72,4488,4489],{"class":74,"line":370},[72,4490,515],{"class":92},[72,4492,4493,4496],{"class":74,"line":375},[72,4494,4495],{"class":4438},"      \"Majority\"",[72,4497,4498],{"class":92},": {\n",[72,4500,4501,4504,4506,4509,4512],{"class":74,"line":381},[72,4502,4503],{"class":4438},"        \"Amendment\"",[72,4505,3447],{"class":92},[72,4507,4508],{"class":138},"\"AAAA...\"",[72,4510,4511],{"class":92},",  ",[72,4513,4514],{"class":85},"\u002F\u002F Another amendment pending\n",[72,4516,4517,4520,4522],{"class":74,"line":390},[72,4518,4519],{"class":4438},"        \"CloseTime\"",[72,4521,3447],{"class":92},[72,4523,4524],{"class":634},"805500000\n",[72,4526,4527],{"class":74,"line":395},[72,4528,4529],{"class":92},"      }\n",[72,4531,4532],{"class":74,"line":401},[72,4533,701],{"class":92},[72,4535,4536],{"class":74,"line":410},[72,4537,4479],{"class":92},[72,4539,4540,4543,4545,4547],{"class":74,"line":587},[72,4541,4542],{"class":4438},"  \"Flags\"",[72,4544,3447],{"class":92},[72,4546,3124],{"class":634},[72,4548,972],{"class":92},[72,4550,4551,4554,4556],{"class":74,"line":593},[72,4552,4553],{"class":4438},"  \"index\"",[72,4555,3447],{"class":92},[72,4557,4558],{"class":138},"\"7DB0788C020F02780A673DC74757F23823FA3014C1866E72CC4CD8B226CD6EF4\"\n",[72,4560,4561],{"class":74,"line":620},[72,4562,776],{"class":92},[23,4564,4565,4568,4569,4572,4573,4576],{},[33,4566,4567],{},"Modification during GotMajority",": Amendment is added to ",[58,4570,4571],{},"sfMajorities"," with its ",[58,4574,4575],{},"CloseTime",".",[23,4578,4579,4582,4583,4585,4586,4576],{},[33,4580,4581],{},"Modification during Activation",": Amendment is moved from ",[58,4584,4571],{}," to ",[58,4587,4588],{},"sfAmendments",[15,4590],{},[18,4592,4594],{"id":4593},"detailed-timeline-subscriptions","Detailed Timeline: Subscriptions",[23,4596,4597],{},"Let's review the complete timeline with voting details:",[44,4599,4601],{"id":4600},"_2025-04-20-143000-utc-ledger-86245750","2025-04-20 14:30:00 UTC (Ledger 86245750)",[23,4603,4604,277],{},[33,4605,4606],{},"State before",[63,4608,4610],{"className":4425,"code":4609,"language":4427,"meta":68,"style":68},"{\n  \"count\": 27,              \u002F\u002F 27\u002F35 validators = 77%\n  \"threshold\": 28,          \u002F\u002F threshold = floor(35 * 0.8) = 28\n  \"enabled\": false,\n  \"majority\": null          \u002F\u002F Not yet in majority\n}\n",[58,4611,4612,4616,4632,4648,4660,4673],{"__ignoreMap":68},[72,4613,4614],{"class":74,"line":75},[72,4615,481],{"class":92},[72,4617,4618,4621,4623,4626,4629],{"class":74,"line":82},[72,4619,4620],{"class":4438},"  \"count\"",[72,4622,3447],{"class":92},[72,4624,4625],{"class":634},"27",[72,4627,4628],{"class":92},",              ",[72,4630,4631],{"class":85},"\u002F\u002F 27\u002F35 validators = 77%\n",[72,4633,4634,4637,4639,4642,4645],{"class":74,"line":89},[72,4635,4636],{"class":4438},"  \"threshold\"",[72,4638,3447],{"class":92},[72,4640,4641],{"class":634},"28",[72,4643,4644],{"class":92},",          ",[72,4646,4647],{"class":85},"\u002F\u002F threshold = floor(35 * 0.8) = 28\n",[72,4649,4650,4653,4655,4658],{"class":74,"line":96},[72,4651,4652],{"class":4438},"  \"enabled\"",[72,4654,3447],{"class":92},[72,4656,4657],{"class":634},"false",[72,4659,972],{"class":92},[72,4661,4662,4665,4667,4670],{"class":74,"line":103},[72,4663,4664],{"class":4438},"  \"majority\"",[72,4666,3447],{"class":92},[72,4668,4669],{"class":634},"null",[72,4671,4672],{"class":85},"          \u002F\u002F Not yet in majority\n",[72,4674,4675],{"class":74,"line":109},[72,4676,776],{"class":92},[44,4678,4680],{"id":4679},"_2025-04-20-143215-utc-ledger-86245789","2025-04-20 14:32:15 UTC (Ledger 86245789)",[23,4682,4683],{},"A 29th validator activates their vote. The next flag ledger detects the threshold crossing.",[23,4685,4686,277],{},[33,4687,4688],{},"Votes collected by TrustedVotes",[63,4690,4692],{"className":178,"code":4691,"language":180,"meta":68,"style":68},"trustedValidations = 35\nvotes[Subscriptions] = 29  \u002F\u002F Exceeds threshold of 28\nthreshold = max(1, (35 * 4) \u002F 5) = 28\n",[58,4693,4694,4704,4717],{"__ignoreMap":68},[72,4695,4696,4699,4701],{"class":74,"line":75},[72,4697,4698],{"class":92},"trustedValidations ",[72,4700,1021],{"class":287},[72,4702,4703],{"class":634}," 35\n",[72,4705,4706,4709,4711,4714],{"class":74,"line":82},[72,4707,4708],{"class":92},"votes[Subscriptions] ",[72,4710,1021],{"class":287},[72,4712,4713],{"class":634}," 29",[72,4715,4716],{"class":85},"  \u002F\u002F Exceeds threshold of 28\n",[72,4718,4719,4722,4724,4727,4729,4732,4735,4738,4741,4744,4746,4749,4752,4754,4756],{"class":74,"line":89},[72,4720,4721],{"class":92},"threshold ",[72,4723,1021],{"class":287},[72,4725,4726],{"class":192}," max",[72,4728,455],{"class":92},[72,4730,4731],{"class":634},"1",[72,4733,4734],{"class":92},", (",[72,4736,4737],{"class":634},"35",[72,4739,4740],{"class":287}," *",[72,4742,4743],{"class":634}," 4",[72,4745,1662],{"class":92},[72,4747,4748],{"class":287},"\u002F",[72,4750,4751],{"class":634}," 5",[72,4753,1662],{"class":92},[72,4755,1021],{"class":287},[72,4757,4758],{"class":634}," 28\n",[23,4760,4761,3447,4764,4766,4767,4770],{},[33,4762,4763],{},"Verification",[58,4765,1959],{}," → ",[58,4768,4769],{},"29 > 28"," ✓ (82.9% > 80%)",[23,4772,4773,277],{},[33,4774,4775],{},"doVoting() returns",[63,4777,4779],{"className":178,"code":4778,"language":180,"meta":68,"style":68},"actions[Subscriptions] = tfGotMajority\n",[58,4780,4781],{"__ignoreMap":68},[72,4782,4783,4786,4788],{"class":74,"line":75},[72,4784,4785],{"class":92},"actions[Subscriptions] ",[72,4787,1021],{"class":287},[72,4789,4790],{"class":92}," tfGotMajority\n",[23,4792,4793,277],{},[33,4794,4795],{},"Injected pseudo-transaction",[63,4797,4799],{"className":4425,"code":4798,"language":4427,"meta":68,"style":68},"{\n  \"TransactionType\": \"EnableAmendment\",\n  \"Account\": \"rrrrrrrrrrrrrrrrrrrrrhoLvTp\",\n  \"Amendment\": \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\",\n  \"Flags\": 65536,\n  \"LedgerSequence\": 86245789,\n  \"hash\": \"ABC123...\"\n}\n",[58,4800,4801,4805,4817,4829,4841,4852,4864,4874],{"__ignoreMap":68},[72,4802,4803],{"class":74,"line":75},[72,4804,481],{"class":92},[72,4806,4807,4810,4812,4815],{"class":74,"line":82},[72,4808,4809],{"class":4438},"  \"TransactionType\"",[72,4811,3447],{"class":92},[72,4813,4814],{"class":138},"\"EnableAmendment\"",[72,4816,972],{"class":92},[72,4818,4819,4822,4824,4827],{"class":74,"line":89},[72,4820,4821],{"class":4438},"  \"Account\"",[72,4823,3447],{"class":92},[72,4825,4826],{"class":138},"\"rrrrrrrrrrrrrrrrrrrrrhoLvTp\"",[72,4828,972],{"class":92},[72,4830,4831,4834,4836,4839],{"class":74,"line":96},[72,4832,4833],{"class":4438},"  \"Amendment\"",[72,4835,3447],{"class":92},[72,4837,4838],{"class":138},"\"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\"",[72,4840,972],{"class":92},[72,4842,4843,4845,4847,4850],{"class":74,"line":103},[72,4844,4542],{"class":4438},[72,4846,3447],{"class":92},[72,4848,4849],{"class":634},"65536",[72,4851,972],{"class":92},[72,4853,4854,4857,4859,4862],{"class":74,"line":109},[72,4855,4856],{"class":4438},"  \"LedgerSequence\"",[72,4858,3447],{"class":92},[72,4860,4861],{"class":634},"86245789",[72,4863,972],{"class":92},[72,4865,4866,4869,4871],{"class":74,"line":240},[72,4867,4868],{"class":4438},"  \"hash\"",[72,4870,3447],{"class":92},[72,4872,4873],{"class":138},"\"ABC123...\"\n",[72,4875,4876],{"class":74,"line":246},[72,4877,776],{"class":92},[23,4879,4880,277],{},[33,4881,4882],{},"State after",[63,4884,4886],{"className":4425,"code":4885,"language":4427,"meta":68,"style":68},"{\n  \"count\": 29,              \u002F\u002F 29\u002F35 = 82.9% > 80% ✓\n  \"threshold\": 28,          \u002F\u002F floor(35 * 0.8) = 28\n  \"enabled\": false,\n  \"majority\": 806021535,    \u002F\u002F ← CloseTime of ledger 86245789\n  \"name\": \"Subscriptions\"\n}\n",[58,4887,4888,4892,4906,4919,4929,4944,4954],{"__ignoreMap":68},[72,4889,4890],{"class":74,"line":75},[72,4891,481],{"class":92},[72,4893,4894,4896,4898,4901,4903],{"class":74,"line":82},[72,4895,4620],{"class":4438},[72,4897,3447],{"class":92},[72,4899,4900],{"class":634},"29",[72,4902,4628],{"class":92},[72,4904,4905],{"class":85},"\u002F\u002F 29\u002F35 = 82.9% > 80% ✓\n",[72,4907,4908,4910,4912,4914,4916],{"class":74,"line":89},[72,4909,4636],{"class":4438},[72,4911,3447],{"class":92},[72,4913,4641],{"class":634},[72,4915,4644],{"class":92},[72,4917,4918],{"class":85},"\u002F\u002F floor(35 * 0.8) = 28\n",[72,4920,4921,4923,4925,4927],{"class":74,"line":96},[72,4922,4652],{"class":4438},[72,4924,3447],{"class":92},[72,4926,4657],{"class":634},[72,4928,972],{"class":92},[72,4930,4931,4933,4935,4938,4941],{"class":74,"line":103},[72,4932,4664],{"class":4438},[72,4934,3447],{"class":92},[72,4936,4937],{"class":634},"806021535",[72,4939,4940],{"class":92},",    ",[72,4942,4943],{"class":85},"\u002F\u002F ← CloseTime of ledger 86245789\n",[72,4945,4946,4949,4951],{"class":74,"line":109},[72,4947,4948],{"class":4438},"  \"name\"",[72,4950,3447],{"class":92},[72,4952,4953],{"class":138},"\"Subscriptions\"\n",[72,4955,4956],{"class":74,"line":240},[72,4957,776],{"class":92},[44,4959,4961],{"id":4960},"_2025-04-20-2025-05-04","2025-04-20 → 2025-05-04",[23,4963,4964,4965,4967],{},"Stability period. At each flag ledger, ",[58,4966,2022],{}," checks:",[63,4969,4971],{"className":178,"code":4970,"language":180,"meta":68,"style":68},"if (closeTime >= (majorityTime + 2weeks)) {\n    \u002F\u002F Ready for activation\n} else {\n    \u002F\u002F Wait longer\n}\n",[58,4972,4973,4997,5002,5012,5017],{"__ignoreMap":68},[72,4974,4975,4978,4981,4983,4986,4988,4991,4994],{"class":74,"line":75},[72,4976,4977],{"class":287},"if",[72,4979,4980],{"class":92}," (closeTime ",[72,4982,1754],{"class":287},[72,4984,4985],{"class":92}," (majorityTime ",[72,4987,1032],{"class":287},[72,4989,4990],{"class":634}," 2",[72,4992,4993],{"class":287},"weeks",[72,4995,4996],{"class":92},")) {\n",[72,4998,4999],{"class":74,"line":82},[72,5000,5001],{"class":85},"    \u002F\u002F Ready for activation\n",[72,5003,5004,5007,5010],{"class":74,"line":89},[72,5005,5006],{"class":92},"} ",[72,5008,5009],{"class":287},"else",[72,5011,294],{"class":92},[72,5013,5014],{"class":74,"line":96},[72,5015,5016],{"class":85},"    \u002F\u002F Wait longer\n",[72,5018,5019],{"class":74,"line":103},[72,5020,776],{"class":92},[44,5022,5024],{"id":5023},"_2025-05-04-143215-utc-ledger-86652345","2025-05-04 14:32:15 UTC (Ledger 86652345)",[23,5026,5027],{},"Exactly 2 weeks after majorityTime. The next flag ledger activates the amendment.",[23,5029,5030,277],{},[33,5031,4775],{},[63,5033,5035],{"className":178,"code":5034,"language":180,"meta":68,"style":68},"actions[Subscriptions] = 0  \u002F\u002F Code 0 = activate\n",[58,5036,5037],{"__ignoreMap":68},[72,5038,5039,5041,5043,5045],{"class":74,"line":75},[72,5040,4785],{"class":92},[72,5042,1021],{"class":287},[72,5044,635],{"class":634},[72,5046,5047],{"class":85},"  \u002F\u002F Code 0 = activate\n",[23,5049,5050,277],{},[33,5051,4795],{},[63,5053,5055],{"className":4425,"code":5054,"language":4427,"meta":68,"style":68},"{\n  \"TransactionType\": \"EnableAmendment\",\n  \"Account\": \"rrrrrrrrrrrrrrrrrrrrrhoLvTp\",\n  \"Amendment\": \"7B73B9E8D8E6E8E8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8A8B8C8D8E8F8\",\n  \"Flags\": 0,               \u002F\u002F ← No flag = activation\n  \"LedgerSequence\": 86652345,\n  \"hash\": \"DEF456...\"\n}\n",[58,5056,5057,5061,5071,5081,5091,5105,5116,5125],{"__ignoreMap":68},[72,5058,5059],{"class":74,"line":75},[72,5060,481],{"class":92},[72,5062,5063,5065,5067,5069],{"class":74,"line":82},[72,5064,4809],{"class":4438},[72,5066,3447],{"class":92},[72,5068,4814],{"class":138},[72,5070,972],{"class":92},[72,5072,5073,5075,5077,5079],{"class":74,"line":89},[72,5074,4821],{"class":4438},[72,5076,3447],{"class":92},[72,5078,4826],{"class":138},[72,5080,972],{"class":92},[72,5082,5083,5085,5087,5089],{"class":74,"line":96},[72,5084,4833],{"class":4438},[72,5086,3447],{"class":92},[72,5088,4838],{"class":138},[72,5090,972],{"class":92},[72,5092,5093,5095,5097,5099,5102],{"class":74,"line":103},[72,5094,4542],{"class":4438},[72,5096,3447],{"class":92},[72,5098,3124],{"class":634},[72,5100,5101],{"class":92},",               ",[72,5103,5104],{"class":85},"\u002F\u002F ← No flag = activation\n",[72,5106,5107,5109,5111,5114],{"class":74,"line":109},[72,5108,4856],{"class":4438},[72,5110,3447],{"class":92},[72,5112,5113],{"class":634},"86652345",[72,5115,972],{"class":92},[72,5117,5118,5120,5122],{"class":74,"line":240},[72,5119,4868],{"class":4438},[72,5121,3447],{"class":92},[72,5123,5124],{"class":138},"\"DEF456...\"\n",[72,5126,5127],{"class":74,"line":246},[72,5128,776],{"class":92},[23,5130,5131,5134,5135,4576],{},[33,5132,5133],{},"Change::applyAmendment()"," adds Subscriptions to ",[58,5136,4588],{},[23,5138,5139,277],{},[33,5140,5141],{},"Final state",[63,5143,5145],{"className":4425,"code":5144,"language":4427,"meta":68,"style":68},"{\n  \"enabled\": true,\n  \"name\": \"Subscriptions\",\n  \"supported\": true\n}\n",[58,5146,5147,5151,5162,5173,5183],{"__ignoreMap":68},[72,5148,5149],{"class":74,"line":75},[72,5150,481],{"class":92},[72,5152,5153,5155,5157,5160],{"class":74,"line":82},[72,5154,4652],{"class":4438},[72,5156,3447],{"class":92},[72,5158,5159],{"class":634},"true",[72,5161,972],{"class":92},[72,5163,5164,5166,5168,5171],{"class":74,"line":89},[72,5165,4948],{"class":4438},[72,5167,3447],{"class":92},[72,5169,5170],{"class":138},"\"Subscriptions\"",[72,5172,972],{"class":92},[72,5174,5175,5178,5180],{"class":74,"line":96},[72,5176,5177],{"class":4438},"  \"supported\"",[72,5179,3447],{"class":92},[72,5181,5182],{"class":634},"true\n",[72,5184,5185],{"class":74,"line":103},[72,5186,776],{"class":92},[15,5188],{},[18,5190,5192],{"id":5191},"synchronization-and-consistency","Synchronization and Consistency",[44,5194,5196],{"id":5195},"dovalidatedledger-post-validation-update","doValidatedLedger: Post-Validation Update",[23,5198,5199,5200,5203],{},"After each validated ledger, ",[58,5201,5202],{},"doValidatedLedger()"," synchronizes the internal state:",[63,5205,5207],{"className":178,"code":5206,"language":180,"meta":68,"style":68},"void\nAmendmentTableImpl::doValidatedLedger(\n    LedgerIndex ledgerSeq,\n    std::set\u003Cuint256> const& enabled,\n    majorityAmendments_t const& majority)\n{\n    for (auto& e : enabled)\n        enable(e);\n\n    std::lock_guard lock(mutex_);\n\n    \u002F\u002F Remember the ledger sequence of this update.\n    lastUpdateSeq_ = ledgerSeq;\n\n    \u002F\u002F Since we have the whole list in `majority`, reset the time flag, even\n    \u002F\u002F if it's currently set. If it's not set when the loop is done, then any\n    \u002F\u002F prior unknown amendments have lost majority.\n    firstUnsupportedExpected_.reset();\n    for (auto const& [hash, time] : majority)\n    {\n        AmendmentState& s = add(hash, lock);\n\n        if (s.enabled)\n            continue;\n\n        if (!s.supported)\n        {\n            JLOG(j_.info()) \u003C\u003C \"Unsupported amendment \" \u003C\u003C hash\n                            \u003C\u003C \" reached majority at \" \u003C\u003C to_string(time);\n            if (!firstUnsupportedExpected_ || firstUnsupportedExpected_ > time)\n                firstUnsupportedExpected_ = time;\n        }\n    }\n    if (firstUnsupportedExpected_)\n        firstUnsupportedExpected_ = *firstUnsupportedExpected_ + majorityTime_;\n}\n",[58,5208,5209,5214,5225,5230,5247,5256,5260,5272,5280,5284,5296,5300,5305,5315,5319,5324,5329,5334,5344,5357,5361,5379,5383,5390,5396,5400,5411,5415,5434,5449,5471,5481,5485,5489,5496,5512],{"__ignoreMap":68},[72,5210,5211],{"class":74,"line":75},[72,5212,5213],{"class":287},"void\n",[72,5215,5216,5218,5220,5223],{"class":74,"line":82},[72,5217,447],{"class":78},[72,5219,323],{"class":92},[72,5221,5222],{"class":192},"doValidatedLedger",[72,5224,959],{"class":92},[72,5226,5227],{"class":74,"line":89},[72,5228,5229],{"class":92},"    LedgerIndex ledgerSeq,\n",[72,5231,5232,5234,5236,5238,5240,5242,5244],{"class":74,"line":96},[72,5233,343],{"class":78},[72,5235,460],{"class":92},[72,5237,351],{"class":287},[72,5239,364],{"class":92},[72,5241,467],{"class":287},[72,5243,470],{"class":287},[72,5245,5246],{"class":92}," enabled,\n",[72,5248,5249,5251,5253],{"class":74,"line":103},[72,5250,2100],{"class":634},[72,5252,470],{"class":287},[72,5254,5255],{"class":92}," majority)\n",[72,5257,5258],{"class":74,"line":109},[72,5259,481],{"class":92},[72,5261,5262,5264,5266,5269],{"class":74,"line":240},[72,5263,2385],{"class":287},[72,5265,556],{"class":92},[72,5267,5268],{"class":287},"auto&",[72,5270,5271],{"class":92}," e : enabled)\n",[72,5273,5274,5277],{"class":74,"line":246},[72,5275,5276],{"class":192},"        enable",[72,5278,5279],{"class":92},"(e);\n",[72,5281,5282],{"class":74,"line":370},[72,5283,100],{"emptyLinePlaceholder":99},[72,5285,5286,5288,5290,5292,5294],{"class":74,"line":375},[72,5287,343],{"class":78},[72,5289,323],{"class":92},[72,5291,525],{"class":78},[72,5293,528],{"class":192},[72,5295,531],{"class":92},[72,5297,5298],{"class":74,"line":381},[72,5299,100],{"emptyLinePlaceholder":99},[72,5301,5302],{"class":74,"line":390},[72,5303,5304],{"class":85},"    \u002F\u002F Remember the ledger sequence of this update.\n",[72,5306,5307,5310,5312],{"class":74,"line":395},[72,5308,5309],{"class":92},"    lastUpdateSeq_ ",[72,5311,1021],{"class":287},[72,5313,5314],{"class":92}," ledgerSeq;\n",[72,5316,5317],{"class":74,"line":401},[72,5318,100],{"emptyLinePlaceholder":99},[72,5320,5321],{"class":74,"line":410},[72,5322,5323],{"class":85},"    \u002F\u002F Since we have the whole list in `majority`, reset the time flag, even\n",[72,5325,5326],{"class":74,"line":587},[72,5327,5328],{"class":85},"    \u002F\u002F if it's currently set. If it's not set when the loop is done, then any\n",[72,5330,5331],{"class":74,"line":593},[72,5332,5333],{"class":85},"    \u002F\u002F prior unknown amendments have lost majority.\n",[72,5335,5336,5339,5342],{"class":74,"line":620},[72,5337,5338],{"class":92},"    firstUnsupportedExpected_.",[72,5340,5341],{"class":192},"reset",[72,5343,2216],{"class":92},[72,5345,5346,5348,5350,5352,5354],{"class":74,"line":641},[72,5347,2385],{"class":287},[72,5349,556],{"class":92},[72,5351,559],{"class":287},[72,5353,470],{"class":287},[72,5355,5356],{"class":92}," [hash, time] : majority)\n",[72,5358,5359],{"class":74,"line":647},[72,5360,515],{"class":92},[72,5362,5363,5366,5368,5371,5373,5376],{"class":74,"line":659},[72,5364,5365],{"class":78},"        AmendmentState",[72,5367,2499],{"class":287},[72,5369,5370],{"class":92}," s ",[72,5372,1021],{"class":287},[72,5374,5375],{"class":192}," add",[72,5377,5378],{"class":92},"(hash, lock);\n",[72,5380,5381],{"class":74,"line":686},[72,5382,100],{"emptyLinePlaceholder":99},[72,5384,5385,5387],{"class":74,"line":692},[72,5386,1695],{"class":287},[72,5388,5389],{"class":92}," (s.enabled)\n",[72,5391,5392,5394],{"class":74,"line":698},[72,5393,2447],{"class":287},[72,5395,1274],{"class":92},[72,5397,5398],{"class":74,"line":704},[72,5399,100],{"emptyLinePlaceholder":99},[72,5401,5402,5404,5406,5408],{"class":74,"line":709},[72,5403,1695],{"class":287},[72,5405,556],{"class":92},[72,5407,717],{"class":287},[72,5409,5410],{"class":92},"s.supported)\n",[72,5412,5413],{"class":74,"line":729},[72,5414,569],{"class":92},[72,5416,5417,5419,5421,5423,5425,5427,5429,5431],{"class":74,"line":735},[72,5418,2420],{"class":192},[72,5420,665],{"class":92},[72,5422,668],{"class":192},[72,5424,671],{"class":92},[72,5426,674],{"class":287},[72,5428,4174],{"class":138},[72,5430,680],{"class":287},[72,5432,5433],{"class":92}," hash\n",[72,5435,5436,5438,5441,5443,5446],{"class":74,"line":759},[72,5437,4184],{"class":287},[72,5439,5440],{"class":138}," \" reached majority at \"",[72,5442,680],{"class":287},[72,5444,5445],{"class":192}," to_string",[72,5447,5448],{"class":92},"(time);\n",[72,5450,5451,5453,5455,5457,5460,5463,5466,5468],{"class":74,"line":764},[72,5452,596],{"class":287},[72,5454,556],{"class":92},[72,5456,717],{"class":287},[72,5458,5459],{"class":92},"firstUnsupportedExpected_ ",[72,5461,5462],{"class":287},"||",[72,5464,5465],{"class":92}," firstUnsupportedExpected_ ",[72,5467,467],{"class":287},[72,5469,5470],{"class":92}," time)\n",[72,5472,5473,5476,5478],{"class":74,"line":773},[72,5474,5475],{"class":92},"                firstUnsupportedExpected_ ",[72,5477,1021],{"class":287},[72,5479,5480],{"class":92}," time;\n",[72,5482,5483],{"class":74,"line":1125},[72,5484,695],{"class":92},[72,5486,5487],{"class":74,"line":1141},[72,5488,701],{"class":92},[72,5490,5491,5493],{"class":74,"line":1147},[72,5492,712],{"class":287},[72,5494,5495],{"class":92}," (firstUnsupportedExpected_)\n",[72,5497,5498,5501,5503,5505,5507,5509],{"class":74,"line":1156},[72,5499,5500],{"class":92},"        firstUnsupportedExpected_ ",[72,5502,1021],{"class":287},[72,5504,4740],{"class":287},[72,5506,5459],{"class":92},[72,5508,1032],{"class":287},[72,5510,5511],{"class":92}," majorityTime_;\n",[72,5513,5514],{"class":74,"line":1161},[72,5515,776],{"class":92},[23,5517,5518],{},"This function ensures that even if a node temporarily misses receiving a ledger, it will resynchronize correctly when it receives the validated ledger.",[15,5520],{},[18,5522,5524],{"id":5523},"protection-against-unsupported-amendments","Protection Against Unsupported Amendments",[23,5526,5527],{},"If an amendment is enabled but the node does not support it, the system enters \"amendment blocked\" mode to protect network integrity.",[23,5529,5530,277],{},[33,5531,5532],{},"Detection",[63,5534,5536],{"className":178,"code":5535,"language":180,"meta":68,"style":68},"    if (app_.getAmendmentTable().hasUnsupportedEnabled())\n    {\n        JLOG(m_journal.error()) \u003C\u003C \"One or more unsupported amendments \"\n                                    \"activated: server blocked.\";\n        app_.getOPs().setAmendmentBlocked();\n    }\n",[58,5537,5538,5554,5558,5575,5582,5595],{"__ignoreMap":68},[72,5539,5540,5542,5545,5547,5549,5552],{"class":74,"line":75},[72,5541,712],{"class":287},[72,5543,5544],{"class":92}," (app_.",[72,5546,4146],{"class":192},[72,5548,2163],{"class":92},[72,5550,5551],{"class":192},"hasUnsupportedEnabled",[72,5553,726],{"class":92},[72,5555,5556],{"class":74,"line":82},[72,5557,515],{"class":92},[72,5559,5560,5563,5566,5568,5570,5572],{"class":74,"line":89},[72,5561,5562],{"class":192},"        JLOG",[72,5564,5565],{"class":92},"(m_journal.",[72,5567,4292],{"class":192},[72,5569,671],{"class":92},[72,5571,674],{"class":287},[72,5573,5574],{"class":138}," \"One or more unsupported amendments \"\n",[72,5576,5577,5580],{"class":74,"line":96},[72,5578,5579],{"class":138},"                                    \"activated: server blocked.\"",[72,5581,1274],{"class":92},[72,5583,5584,5587,5589,5591,5593],{"class":74,"line":103},[72,5585,5586],{"class":92},"        app_.",[72,5588,3412],{"class":192},[72,5590,2163],{"class":92},[72,5592,4324],{"class":192},[72,5594,2216],{"class":92},[72,5596,5597],{"class":74,"line":109},[72,5598,701],{"class":92},[23,5600,5601,277],{},[33,5602,5603],{},"Consequences",[3097,5605,5606,5609,5612,5615],{},[3100,5607,5608],{},"Node ceases to participate in consensus",[3100,5610,5611],{},"Node ceases to validate new ledgers",[3100,5613,5614],{},"API remains accessible but signals \"amendment blocked\" state",[3100,5616,5617],{},"Node must be updated to resume operations",[23,5619,5620,5623,5624,5627],{},[33,5621,5622],{},"Notification",": A warning is displayed in logs and via the ",[58,5625,5626],{},"server_info"," API:",[63,5629,5631],{"className":4425,"code":5630,"language":4427,"meta":68,"style":68},"{\n  \"info\": {\n    \"amendment_blocked\": true,\n    \"build_version\": \"1.11.0\"\n  }\n}\n",[58,5632,5633,5637,5644,5655,5665,5670],{"__ignoreMap":68},[72,5634,5635],{"class":74,"line":75},[72,5636,481],{"class":92},[72,5638,5639,5642],{"class":74,"line":82},[72,5640,5641],{"class":4438},"  \"info\"",[72,5643,4498],{"class":92},[72,5645,5646,5649,5651,5653],{"class":74,"line":89},[72,5647,5648],{"class":4438},"    \"amendment_blocked\"",[72,5650,3447],{"class":92},[72,5652,5159],{"class":634},[72,5654,972],{"class":92},[72,5656,5657,5660,5662],{"class":74,"line":96},[72,5658,5659],{"class":4438},"    \"build_version\"",[72,5661,3447],{"class":92},[72,5663,5664],{"class":138},"\"1.11.0\"\n",[72,5666,5667],{"class":74,"line":103},[72,5668,5669],{"class":92},"  }\n",[72,5671,5672],{"class":74,"line":109},[72,5673,776],{"class":92},[5675,5676,5677],"style",{},"html pre.shiki code .s_sBn, html code.shiki .s_sBn{--shiki-default:#FFB757}html pre.shiki code .sQrFR, html code.shiki .sQrFR{--shiki-default:#BDC4CC}html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}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 .sTRMh, html code.shiki .sTRMh{--shiki-default:#ADDCFF}html pre.shiki code .sj_SG, html code.shiki .sj_SG{--shiki-default:#DBB7FF}html pre.shiki code .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}html pre.shiki code .sKpQp, html code.shiki .sKpQp{--shiki-default:#72F088}",{"title":68,"searchDepth":82,"depth":82,"links":5679},[5680,5681,5685,5689,5693,5698,5704,5707],{"id":20,"depth":82,"text":21},{"id":41,"depth":82,"text":42,"children":5682},[5683,5684],{"id":46,"depth":89,"text":47},{"id":263,"depth":89,"text":264},{"id":787,"depth":82,"text":788,"children":5686},[5687,5688],{"id":791,"depth":89,"text":792},{"id":1372,"depth":89,"text":1373},{"id":2016,"depth":82,"text":2017,"children":5690},[5691,5692],{"id":2026,"depth":89,"text":2027},{"id":3091,"depth":89,"text":3092},{"id":3133,"depth":82,"text":3134,"children":5694},[5695,5696,5697],{"id":3137,"depth":89,"text":3138},{"id":3486,"depth":89,"text":3487},{"id":4416,"depth":89,"text":4417},{"id":4593,"depth":82,"text":4594,"children":5699},[5700,5701,5702,5703],{"id":4600,"depth":89,"text":4601},{"id":4679,"depth":89,"text":4680},{"id":4960,"depth":89,"text":4961},{"id":5023,"depth":89,"text":5024},{"id":5191,"depth":82,"text":5192,"children":5705},[5706],{"id":5195,"depth":89,"text":5196},{"id":5523,"depth":82,"text":5524},"Voting and Activation for Building Amendments: Lifecycle and Core Protocol Impact, in the Core Dev Bootcamp: XRPL Commons docs.","md",{},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":5,"description":5708},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation.md","docs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation","Rbt5z9yphkWYKCAYmPR37ePfQ60VA6o1AdLoi1MDJmY",[],[5718,5759,5773,5793,5816,6208],{"title":5719,"path":5720,"children":5721,"description":5758,"pages":395},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[5722,5725,5728,5731,5734,5737,5740,5743,5746,5749,5752,5755],{"title":5723,"path":5724},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":5726,"path":5727},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":5729,"path":5730},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":5732,"path":5733},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":5735,"path":5736},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":5738,"path":5739},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":5741,"path":5742},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":5744,"path":5745},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":5747,"path":5748},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":5750,"path":5751},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":5753,"path":5754},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":5756,"path":5757},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",{"title":5760,"path":5761,"children":5762,"description":5772,"pages":96},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[5763,5766,5769],{"title":5764,"path":5765},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":5767,"path":5768},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":5770,"path":5771},"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":5774,"path":5775,"children":5776,"description":5792,"pages":109},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[5777,5780,5783,5786,5789],{"title":5778,"path":5779},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":5781,"path":5782},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":5784,"path":5785},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":5787,"path":5788},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":5790,"path":5791},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":5794,"path":5795,"children":5796,"description":5815,"pages":240},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[5797,5800,5803,5806,5809,5812],{"title":5798,"path":5799},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":5801,"path":5802},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":5804,"path":5805},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":5807,"path":5808},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":5810,"path":5811},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":5813,"path":5814},"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":5817,"path":5818,"children":5819,"description":6206,"pages":6207},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[5820,5840,5883,5933,5964,6021,6052,6068,6108,6142,6167,6183],{"title":5821,"path":5822,"children":5823},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[5824,5827,5830,5833],{"title":5825,"path":5826},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":5828,"path":5829},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":5831,"path":5832},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":5834,"path":5835,"children":5836},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[5837],{"title":5838,"path":5839},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":5841,"path":5842,"children":5843},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[5844,5847,5850,5853,5856,5859,5862,5865,5868],{"title":5845,"path":5846},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":5848,"path":5849},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":5851,"path":5852},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":5854,"path":5855},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":5857,"path":5858},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":5860,"path":5861},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":5863,"path":5864},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":5866,"path":5867},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":5834,"path":5869,"children":5870},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[5871,5874,5877,5880],{"title":5872,"path":5873},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":5875,"path":5876},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":5878,"path":5879},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":5881,"path":5882},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":5884,"path":5885,"children":5886},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[5887,5890,5893,5896,5899,5902,5905,5908,5911,5914,5917,5920],{"title":5888,"path":5889},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":5891,"path":5892},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":5894,"path":5895},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":5897,"path":5898},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":5900,"path":5901},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":5903,"path":5904},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":5906,"path":5907},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":5909,"path":5910},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":5912,"path":5913},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":5915,"path":5916},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":5918,"path":5919},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":5921,"path":5922,"children":5923},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[5924,5927,5930],{"title":5925,"path":5926},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":5928,"path":5929},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":5931,"path":5932},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":5934,"path":5935,"children":5936},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[5937,5940,5943,5946,5949,5952,5955,5958,5961],{"title":5938,"path":5939},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":5941,"path":5942},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":5944,"path":5945},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":5947,"path":5948},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":5950,"path":5951},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":5953,"path":5954},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":5956,"path":5957},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":5959,"path":5960},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":5962,"path":5963},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":5965,"path":5966,"children":5967},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[5968,5971,5974,5977,5980,5983,5986,5989,5992,5995,5998,6001,6004,6015],{"title":5969,"path":5970},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":5972,"path":5973},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":5975,"path":5976},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":5978,"path":5979},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":5981,"path":5982},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":5984,"path":5985},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":5987,"path":5988},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":5990,"path":5991},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":5993,"path":5994},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":5996,"path":5997},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":5999,"path":6000},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":6002,"path":6003},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":5921,"path":6005,"children":6006},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[6007,6009,6012],{"title":5925,"path":6008},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":6010,"path":6011},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":6013,"path":6014},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":5834,"path":6016,"children":6017},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[6018],{"title":6019,"path":6020},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":6022,"path":6023,"children":6024},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[6025,6028,6031,6034,6037,6040,6046],{"title":6026,"path":6027},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":6029,"path":6030},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":6032,"path":6033},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":6035,"path":6036},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":6038,"path":6039},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":5921,"path":6041,"children":6042},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[6043],{"title":6044,"path":6045},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":5834,"path":6047,"children":6048},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[6049],{"title":6050,"path":6051},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":6053,"path":6054,"children":6055},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[6056,6059,6062,6065],{"title":6057,"path":6058},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":6060,"path":6061},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":6063,"path":6064},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":6066,"path":6067},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":6069,"path":6070,"children":6071},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[6072,6075,6078,6081,6084,6096],{"title":6073,"path":6074},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":6076,"path":6077},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":6079,"path":6080},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":6082,"path":6083},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":5921,"path":6085,"children":6086},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[6087,6090,6093],{"title":6088,"path":6089},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":6091,"path":6092},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":6094,"path":6095},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":5834,"path":6097,"children":6098},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[6099,6102,6105],{"title":6100,"path":6101},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":6103,"path":6104},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":6106,"path":6107},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":6109,"path":6110,"children":6111},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[6112,6115,6118,6121,6124,6127,6130,6133],{"title":6113,"path":6114},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":6116,"path":6117},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":6119,"path":6120},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":6122,"path":6123},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":6125,"path":6126},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":6128,"path":6129},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":6131,"path":6132},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":5834,"path":6134,"children":6135},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[6136,6139],{"title":6137,"path":6138},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":6140,"path":6141},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":6143,"path":6144,"children":6145},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[6146,6149,6152,6155,6158,6161,6164],{"title":6147,"path":6148},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":6150,"path":6151},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":6153,"path":6154},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":6156,"path":6157},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":6159,"path":6160},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":6162,"path":6163},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":6165,"path":6166},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":6168,"path":6169,"children":6170},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[6171,6174,6177,6180],{"title":6172,"path":6173},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":6175,"path":6176},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":6178,"path":6179},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":6181,"path":6182},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":6184,"path":6185,"children":6186},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[6187,6190,6193,6194,6197,6200,6203],{"title":6188,"path":6189},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":6191,"path":6192},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":5,"path":5711},{"title":6195,"path":6196},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":6198,"path":6199},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":6201,"path":6202},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":6204,"path":6205},"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":6209,"path":6210,"children":6211,"description":6218,"pages":89},"Tools","\u002Fdocs\u002Ftools",[6212,6215],{"title":6213,"path":6214},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":6216,"path":6217},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220776206]