[{"data":1,"prerenderedAt":2435},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers":1928,"docs-tracks":1929},{"id":4,"title":5,"body":6,"description":1919,"extension":1920,"meta":1921,"navigation":1922,"path":1923,"seo":1924,"source":1925,"stem":1926,"__hash__":1927},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers.md","Consensus Peers",{"type":7,"value":8,"toc":1856},"minimark",[9,13,16,21,25,30,37,42,70,74,100,102,106,110,117,131,135,138,143,153,158,176,179,183,190,194,216,219,223,229,233,236,380,384,387,393,404,410,421,425,455,457,461,464,468,471,497,501,504,512,518,528,534,537,544,549,557,562,565,572,577,584,589,593,619,623,649,653,679,681,685,688,692,718,722,728,732,783,787,794,799,804,846,850,856,860,891,895,921,925,951,953,957,960,964,971,991,995,1001,1005,1054,1058,1064,1068,1089,1092,1096,1102,1106,1147,1151,1157,1161,1199,1202,1206,1232,1236,1262,1264,1268,1272,1298,1302,1308,1312,1390,1394,1400,1407,1413,1420,1426,1433,1437,1463,1467,1493,1497,1523,1525,1529,1533,1540,1543,1554,1558,1565,1568,1572,1578,1581,1604,1608,1614,1617,1631,1635,1642,1645,1657,1659,1663,1667,1693,1697,1721,1725,1751,1753,1757,1761,1786,1790,1793,1795,1799,1852],[10,11,5],"h1",{"id":12},"consensus-peers",[14,15],"hr",{},[17,18,20],"h2",{"id":19},"introduction","Introduction",[22,23,24],"p",{},"Consensus Peers are specialized network participants that actively participate in the XRPL consensus process. They serve as the critical bridge between the network overlay and the consensus algorithm, enabling distributed agreement on ledger state across the network without central authority.",[26,27,29],"h3",{"id":28},"what-are-consensus-peers","What Are Consensus Peers?",[22,31,32,36],{},[33,34,35],"strong",{},"Definition:"," Consensus peers are network validators that exchange proposals, track consensus state, and coordinate transaction validation during each consensus round.",[22,38,39],{},[33,40,41],{},"Core Responsibilities:",[43,44,45,52,58,64],"ul",{},[46,47,48,51],"li",{},[33,49,50],{},"Proposal Management:"," Handle incoming consensus proposals from network peers",[46,53,54,57],{},[33,55,56],{},"State Coordination:"," Track and synchronize consensus states across participants",[46,59,60,63],{},[33,61,62],{},"Dispute Resolution:"," Manage conflicting views and facilitate agreement",[46,65,66,69],{},[33,67,68],{},"Network Integration:"," Interface between consensus logic and peer-to-peer communication",[26,71,73],{"id":72},"why-consensus-peers-matter","Why Consensus Peers Matter",[43,75,76,82,88,94],{},[46,77,78,81],{},[33,79,80],{},"Decentralization:"," Enable distributed decision-making without central authority",[46,83,84,87],{},[33,85,86],{},"Reliability:"," Provide fault tolerance through redundant validation",[46,89,90,93],{},[33,91,92],{},"Consistency:"," Ensure all network participants agree on transaction ordering",[46,95,96,99],{},[33,97,98],{},"Performance:"," Optimize consensus efficiency through intelligent peer management",[14,101],{},[17,103,105],{"id":104},"peer-proposal-handling","Peer Proposal Handling",[26,107,109],{"id":108},"understanding-proposals","Understanding Proposals",[22,111,112,113,116],{},"A ",[33,114,115],{},"proposal"," is a formal suggestion for the next ledger state submitted by validators. Each proposal:",[43,118,119,122,125,128],{},[46,120,121],{},"Contains a proposed transaction set and ledger close information",[46,123,124],{},"Must be cryptographically signed and verified",[46,126,127],{},"Is submitted during specific phases of the consensus round",[46,129,130],{},"Influences the final transaction set included in the ledger",[26,132,134],{"id":133},"proposal-processing-pipeline","Proposal Processing Pipeline",[22,136,137],{},"The proposal handling process involves three main functions in the codebase:",[139,140,142],"h4",{"id":141},"_1-rclconsensuspeerproposal","1. RCLConsensus::peerProposal",[22,144,145,148,149],{},[33,146,147],{},"Location:"," ",[150,151,152],"code",{},"rippled\u002Fsrc\u002Fxrpld\u002Fapp\u002Fconsensus\u002FRCLConsensus.cpp",[22,154,155],{},[33,156,157],{},"Functionality:",[43,159,160,163,170],{},[46,161,162],{},"Entry point for processing a new peer proposal",[46,164,165,166,169],{},"Acquires a lock on ",[150,167,168],{},"mutex_"," for thread safety",[46,171,172,173],{},"Delegates to ",[150,174,175],{},"consensus_.peerProposal(now, newProposal)",[22,177,178],{},"This is the XRPL-specific entry point that receives proposals from the network layer.",[139,180,182],{"id":181},"_2-consensusadaptorpeerproposal","2. Consensus\u003CAdaptor>::peerProposal",[22,184,185,148,187],{},[33,186,147],{},[150,188,189],{},"rippled\u002Fsrc\u002Fxrpld\u002Fconsensus\u002FConsensus.h",[22,191,192],{},[33,193,157],{},[43,195,196,199,202,209],{},[46,197,198],{},"Logs the incoming proposal",[46,200,201],{},"Extracts the peer ID",[46,203,204,205,208],{},"Updates ",[150,206,207],{},"recentPeerPositions_"," for this peer (maintains a deque of up to 10 recent proposals)",[46,210,211,212,215],{},"Calls ",[150,213,214],{},"peerProposalInternal(now, newPeerPos)"," and returns its result",[22,217,218],{},"This function maintains a rolling history of recent proposals for each peer, which is useful for tracking peer behavior and detecting anomalies.",[139,220,222],{"id":221},"_3-consensusadaptorpeerproposalinternal","3. Consensus\u003CAdaptor>::peerProposalInternal",[22,224,225,148,227],{},[33,226,147],{},[150,228,189],{},[22,230,231],{},[33,232,157],{},[22,234,235],{},"This is where the detailed proposal validation and processing occurs:",[237,238,239,253,262,267,279,290,303,337,345,357,371],"ol",{},[46,240,241,244,245,248,249,252],{},[33,242,243],{},"Consensus Phase Check:"," If ",[150,246,247],{},"phase_ == ConsensusPhase::accepted",", returns ",[150,250,251],{},"false"," (proposals not accepted after consensus is reached)",[46,254,255,258,259],{},[33,256,257],{},"Update Time:"," Sets ",[150,260,261],{},"now_ = now;",[46,263,264],{},[33,265,266],{},"Extract Proposal and Peer ID",[46,268,269,244,272,275,276,278],{},[33,270,271],{},"Ledger ID Check:",[150,273,274],{},"newPeerProp.prevLedger() != prevLedgerID_",", logs and returns ",[150,277,251],{}," (proposal is for a different ledger)",[46,280,281,244,284,275,287,289],{},[33,282,283],{},"Dead Node Check:",[150,285,286],{},"deadNodes_.find(peerID) != deadNodes_.end()",[150,288,251],{}," (peer has bowed out)",[46,291,292,295,296,299,300,302],{},[33,293,294],{},"Proposal Sequence Check:"," If the peer already has a position in ",[150,297,298],{},"currPeerPositions_"," and the new proposal's sequence number is not greater, returns ",[150,301,251],{}," (prevents replay attacks)",[46,304,305,244,308,311,312],{},[33,306,307],{},"Bow Out Handling:",[150,309,310],{},"newPeerProp.isBowOut()",":",[43,313,314,317,322,328,331],{},[46,315,316],{},"Logs the bow out",[46,318,319,320],{},"Removes the peer from ",[150,321,298],{},[46,323,324,325],{},"Adds to ",[150,326,327],{},"deadNodes_",[46,329,330],{},"Removes votes from all disputes for this peer",[46,332,333,334],{},"Returns ",[150,335,336],{},"true",[46,338,339,342,343],{},[33,340,341],{},"Update\u002FInsert Peer Position:"," Updates or inserts the peer's position in ",[150,344,298],{},[46,346,347,244,350,353,354],{},[33,348,349],{},"Initial Proposal Handling:",[150,351,352],{},"newPeerProp.isInitial()",", increments the count for the peer's close time in ",[150,355,356],{},"rawCloseTimes_.peers",[46,358,359,362,363,366,367,370],{},[33,360,361],{},"Transaction Set Handling:"," If the transaction set referenced by the proposal is not in ",[150,364,365],{},"acquired_",", attempts to acquire it via ",[150,368,369],{},"adaptor_.acquireTxSet",". If already acquired and there is a consensus result, updates disputes for this peer.",[46,372,373,376,377,379],{},[33,374,375],{},"Return:"," Returns ",[150,378,336],{}," if the proposal was processed",[26,381,383],{"id":382},"trust-based-handling","Trust-Based Handling",[22,385,386],{},"Proposals are processed differently based on trust:",[22,388,389,392],{},[33,390,391],{},"Trusted Proposals"," (from validators in the Unique Node List):",[43,394,395,398,401],{},[46,396,397],{},"Higher priority processing",[46,399,400],{},"Direct influence on consensus decisions",[46,402,403],{},"Automatic relay to other network participants",[22,405,406,409],{},[33,407,408],{},"Untrusted Proposals"," (from non-UNL validators):",[43,411,412,415,418],{},[46,413,414],{},"Limited processing based on network configuration",[46,416,417],{},"May be relayed depending on network policies",[46,419,420],{},"Used for network awareness but not consensus decisions",[26,422,424],{"id":423},"proposal-lifecycle-management","Proposal Lifecycle Management",[43,426,427,433,439,449],{},[46,428,429,432],{},[33,430,431],{},"Tracking:"," Monitor proposal status throughout consensus round",[46,434,435,438],{},[33,436,437],{},"Suppression:"," Prevent duplicate proposal propagation using suppression IDs",[46,440,441,444,445,448],{},[33,442,443],{},"Expiration:"," Remove outdated proposals from consideration based on ",[150,446,447],{},"proposeFRESHNESS"," parameter (20s)",[46,450,451,454],{},[33,452,453],{},"Archival:"," Maintain historical record for analysis and debugging",[14,456],{},[17,458,460],{"id":459},"peer-state-tracking","Peer State Tracking",[22,462,463],{},"The consensus algorithm maintains several data structures to track peer state throughout the consensus process.",[26,465,467],{"id":466},"state-information-categories","State Information Categories",[22,469,470],{},"The system tracks four main categories of peer information:",[43,472,473,479,485,491],{},[46,474,475,478],{},[33,476,477],{},"Consensus Position:"," Current validator stance on ledger proposals",[46,480,481,484],{},[33,482,483],{},"Network Status:"," Connection quality and communication reliability",[46,486,487,490],{},[33,488,489],{},"Validation History:"," Track record of previous consensus participation",[46,492,493,496],{},[33,494,495],{},"Timing Metrics:"," Response times and synchronization accuracy",[26,498,500],{"id":499},"key-data-structures","Key Data Structures",[139,502,207],{"id":503},"recentpeerpositions_",[22,505,506,148,509],{},[33,507,508],{},"Type:",[150,510,511],{},"hash_map\u003CNodeID_t, std::deque\u003CPeerPosition_t>>",[22,513,514,517],{},[33,515,516],{},"Purpose:"," Maintains a rolling history (up to 10) of recent proposals from each peer",[22,519,520,523,524,527],{},[33,521,522],{},"Usage:"," Updated in ",[150,525,526],{},"Consensus\u003CAdaptor>::peerProposal"," whenever a new proposal is received",[22,529,530,533],{},[33,531,532],{},"Why it matters:"," Provides historical context for analyzing peer behavior patterns and detecting anomalies",[139,535,298],{"id":536},"currpeerpositions_",[22,538,539,148,541],{},[33,540,508],{},[150,542,543],{},"hash_map\u003CNodeID_t, PeerPosition_t>",[22,545,546,548],{},[33,547,516],{}," Tracks the current (most recent) proposal from each peer",[22,550,551,523,553,556],{},[33,552,522],{},[150,554,555],{},"Consensus\u003CAdaptor>::peerProposalInternal"," when a new proposal is accepted",[22,558,559,561],{},[33,560,532],{}," This is the active set of positions used for consensus calculations",[139,563,327],{"id":564},"deadnodes_",[22,566,567,148,569],{},[33,568,508],{},[150,570,571],{},"hash_set\u003CNodeID_t>",[22,573,574,576],{},[33,575,516],{}," Tracks peers that have \"bowed out\" of consensus or are otherwise disqualified",[22,578,579,523,581,583],{},[33,580,522],{},[150,582,555],{}," when a peer bows out",[22,585,586,588],{},[33,587,532],{}," Prevents continued processing of proposals from peers that have explicitly withdrawn from the consensus round",[26,590,592],{"id":591},"dynamic-state-management","Dynamic State Management",[43,594,595,601,607,613],{},[46,596,597,600],{},[33,598,599],{},"Real-time Updates:"," Continuously monitor and update peer states as new proposals arrive",[46,602,603,606],{},[33,604,605],{},"State Transitions:"," Track changes in peer consensus positions over time",[46,608,609,612],{},[33,610,611],{},"Availability Monitoring:"," Detect and respond to peer disconnections",[46,614,615,618],{},[33,616,617],{},"Performance Metrics:"," Measure and evaluate peer contribution quality",[26,620,622],{"id":621},"trust-and-reputation-systems","Trust and Reputation Systems",[43,624,625,631,637,643],{},[46,626,627,630],{},[33,628,629],{},"UNL Membership:"," Distinguish between trusted and untrusted peers",[46,632,633,636],{},[33,634,635],{},"Historical Performance:"," Weight peer input based on past reliability",[46,638,639,642],{},[33,640,641],{},"Behavioral Analysis:"," Identify and respond to anomalous peer behavior",[46,644,645,648],{},[33,646,647],{},"Dynamic Adjustment:"," Adapt trust levels based on ongoing performance",[26,650,652],{"id":651},"state-synchronization","State Synchronization",[43,654,655,661,667,673],{},[46,656,657,660],{},[33,658,659],{},"Consensus Alignment:"," Ensure peers share common understanding of current state",[46,662,663,666],{},[33,664,665],{},"Conflict Detection:"," Identify discrepancies between peer states through dispute tracking",[46,668,669,672],{},[33,670,671],{},"Recovery Mechanisms:"," Handle state inconsistencies and synchronization failures",[46,674,675,678],{},[33,676,677],{},"Optimization:"," Minimize state tracking overhead while maintaining accuracy",[14,680],{},[17,682,684],{"id":683},"dispute-management","Dispute Management",[22,686,687],{},"Disputes arise when different validators propose different transaction sets. The consensus algorithm must detect and resolve these disputes to reach agreement.",[26,689,691],{"id":690},"types-of-disputes","Types of Disputes",[43,693,694,700,706,712],{},[46,695,696,699],{},[33,697,698],{},"Transaction Set Conflicts:"," Different views on which transactions to include",[46,701,702,705],{},[33,703,704],{},"Timing Disagreements:"," Disputes over ledger close timing",[46,707,708,711],{},[33,709,710],{},"Validation Conflicts:"," Competing proposals for the same ledger position",[46,713,714,717],{},[33,715,716],{},"Network Partitions:"," Temporary splits in network connectivity",[26,719,721],{"id":720},"creating-disputes-createdisputes","Creating Disputes: createDisputes()",[22,723,724,148,726],{},[33,725,147],{},[150,727,189],{},[22,729,730],{},[33,731,157],{},[237,733,734,741,744,747,750],{},[46,735,736,737,740],{},"Asserts that ",[150,738,739],{},"result_"," is set (there is an active consensus result)",[46,742,743],{},"Checks if the transaction set has already been compared; if so, returns",[46,745,746],{},"If the sets are identical, returns (no disputes to create)",[46,748,749],{},"Compares the local and incoming transaction sets, logging differences",[46,751,752,753],{},"For each difference:\n",[43,754,755,758,761,764,771,774,777],{},[46,756,757],{},"Asserts the difference is valid",[46,759,760],{},"Retrieves the transaction from the appropriate set",[46,762,763],{},"If a dispute for this transaction already exists, skips",[46,765,766,767,770],{},"Constructs a new ",[150,768,769],{},"Dispute_t"," (DisputedTx) for the transaction",[46,772,773],{},"For each current peer position, updates the peer's vote in the dispute",[46,775,776],{},"Shares the disputed transaction with peers",[46,778,779,780],{},"Inserts the dispute into ",[150,781,782],{},"result_->disputes",[26,784,786],{"id":785},"the-disputedtx-class","The DisputedTx Class",[22,788,789,148,791],{},[33,790,147],{},[150,792,793],{},"rippled\u002Fsrc\u002Fxrpld\u002Fconsensus\u002FDisputedTx.h",[22,795,796,798],{},[33,797,516],{}," Manages the state and voting process for transactions that are disputed during consensus",[22,800,801],{},[33,802,803],{},"Key Methods:",[43,805,806,822,830,838],{},[46,807,808,813,814,817,818,821],{},[33,809,810,311],{},[150,811,812],{},"setVote(NodeID_t const& peer, bool votesYes)"," Records or updates a peer's vote, updating ",[150,815,816],{},"yays_"," and ",[150,819,820],{},"nays_"," counters",[46,823,824,829],{},[33,825,826,311],{},[150,827,828],{},"unVote(NodeID_t const& peer)"," Removes a peer's vote from the dispute",[46,831,832,837],{},[33,833,834,311],{},[150,835,836],{},"updateVote(int percentTime, bool proposing, ConsensusParms const& p)"," Updates the local node's vote based on peer votes and consensus parameters. This implements the avalanche mechanism where the threshold for accepting a transaction increases over time.",[46,839,840,845],{},[33,841,842,311],{},[150,843,844],{},"stalled(ConsensusParms const& p, bool proposing, int peersUnchanged) const"," Determines if consensus on the transaction has stalled (when agreement has reached the minimum threshold in either direction)",[26,847,849],{"id":848},"updating-disputes-updatedisputes","Updating Disputes: updateDisputes()",[22,851,852,148,854],{},[33,853,147],{},[150,855,189],{},[22,857,858],{},[33,859,157],{},[237,861,862,867,873],{},[46,863,736,864,866],{},[150,865,739],{}," is set",[46,868,869,870],{},"If the transaction set has not been compared, calls ",[150,871,872],{},"createDisputes",[46,874,875,876],{},"For each dispute:\n",[43,877,878,884],{},[46,879,211,880,883],{},[150,881,882],{},"setVote(node, other.exists(d.tx().id()))"," to update the peer's vote",[46,885,886,887,890],{},"If the vote changes, resets ",[150,888,889],{},"peerUnchangedCounter_"," to 0",[26,892,894],{"id":893},"resolution-strategies","Resolution Strategies",[43,896,897,903,909,915],{},[46,898,899,902],{},[33,900,901],{},"Majority Consensus:"," Follow the position supported by most trusted validators",[46,904,905,908],{},[33,906,907],{},"Weighted Voting:"," Consider validator reliability through UNL membership",[46,910,911,914],{},[33,912,913],{},"Timeout Mechanisms:"," Resolve disputes through time-based fallback procedures (avalanche thresholds)",[46,916,917,920],{},[33,918,919],{},"Escalation Protocols:"," Handle persistent disputes through the \"stuck\" avalanche state (95% threshold)",[26,922,924],{"id":923},"dispute-prevention","Dispute Prevention",[43,926,927,933,939,945],{},[46,928,929,932],{},[33,930,931],{},"Proactive Communication:"," Maintain clear channels between consensus participants through the overlay network",[46,934,935,938],{},[33,936,937],{},"Standardization:"," Ensure consistent interpretation of consensus rules",[46,940,941,944],{},[33,942,943],{},"Monitoring Systems:"," Early detection of potential dispute conditions through proposal tracking",[46,946,947,950],{},[33,948,949],{},"Network Health:"," Maintain robust connectivity to prevent partition-based disputes",[14,952],{},[17,954,956],{"id":955},"consensus-state-transitions","Consensus State Transitions",[22,958,959],{},"The consensus process progresses through distinct phases, coordinated by peer input and timing constraints.",[26,961,963],{"id":962},"consensus-round-phases","Consensus Round Phases",[22,965,966,967,970],{},"As defined in the ",[150,968,969],{},"ConsensusPhase"," enum:",[43,972,973,979,985],{},[46,974,975,978],{},[33,976,977],{},"Open Phase:"," Collect and evaluate proposed transaction sets",[46,980,981,984],{},[33,982,983],{},"Establish Phase:"," Build consensus on the preferred transaction set through iterative voting",[46,986,987,990],{},[33,988,989],{},"Accepted Phase:"," Finalize agreement and close the ledger",[26,992,994],{"id":993},"checking-for-consensus-haveconsensus","Checking for Consensus: haveConsensus()",[22,996,997,148,999],{},[33,998,147],{},[150,1000,189],{},[22,1002,1003],{},[33,1004,157],{},[237,1006,1007,1011,1016,1019,1025],{},[46,1008,736,1009,866],{},[150,1010,739],{},[46,1012,1013,1014],{},"Counts how many peers agree\u002Fdisagree with the local proposal by iterating through ",[150,1015,298],{},[46,1017,1018],{},"Determines if consensus is stalled by checking all disputes",[46,1020,211,1021,1024],{},[150,1022,1023],{},"checkConsensus"," to determine the consensus state (No\u002FMovedOn\u002FExpired\u002FYes)",[46,1026,1027,1028],{},"Handles each consensus state:\n",[43,1029,1030,1036,1045,1051],{},[46,1031,1032,1035],{},[150,1033,1034],{},"No",": Returns false (continue voting)",[46,1037,1038,1041,1042],{},[150,1039,1040],{},"Expired",": If not enough rounds have passed, continues; otherwise, logs and calls ",[150,1043,1044],{},"leaveConsensus",[46,1046,1047,1050],{},[150,1048,1049],{},"MovedOn",": Logs error (network moved on without this node)",[46,1052,1053],{},"Otherwise: Returns true (consensus reached)",[26,1055,1057],{"id":1056},"leaving-consensus-leaveconsensus","Leaving Consensus: leaveConsensus()",[22,1059,1060,148,1062],{},[33,1061,147],{},[150,1063,189],{},[22,1065,1066],{},[33,1067,157],{},[237,1069,1070,1082],{},[46,1071,1072,1073,1076,1077],{},"If in ",[150,1074,1075],{},"proposing"," mode and not already bowed out:\n",[43,1078,1079],{},[46,1080,1081],{},"Marks the position as \"bowed out\" and shares with the network",[46,1083,1084,1085,1088],{},"Switches to ",[150,1086,1087],{},"observing"," mode and logs the action",[22,1090,1091],{},"This allows a node to gracefully withdraw from consensus if it cannot keep up or has issues.",[26,1093,1095],{"id":1094},"establish-phase-processing-phaseestablish","Establish Phase Processing: phaseEstablish()",[22,1097,1098,148,1100],{},[33,1099,147],{},[150,1101,189],{},[22,1103,1104],{},[33,1105,157],{},[237,1107,1108,1113,1116,1119,1122,1125,1131,1137,1140],{},[46,1109,1110,1111,866],{},"Logs entry into the establish phase and asserts ",[150,1112,739],{},[46,1114,1115],{},"Increments counters for unchanged peers and establish rounds",[46,1117,1118],{},"Updates round timing and proposer count",[46,1120,1121],{},"Calculates convergence percentage (how far through the consensus time we are)",[46,1123,1124],{},"Enforces minimum consensus time (ledgerMIN_CONSENSUS = 1.95s)",[46,1126,211,1127,1130],{},[150,1128,1129],{},"updateOurPositions"," to adjust votes based on peer input",[46,1132,1133,1134],{},"Checks if the node should pause or if consensus has been reached via ",[150,1135,1136],{},"haveConsensus()",[46,1138,1139],{},"Checks for close time consensus",[46,1141,1142,1143,1146],{},"If all conditions are met, finalizes consensus, transitions to ",[150,1144,1145],{},"accepted"," phase, and notifies the application layer",[26,1148,1150],{"id":1149},"updating-our-positions-updateourpositions","Updating Our Positions: updateOurPositions()",[22,1152,1153,148,1155],{},[33,1154,147],{},[150,1156,189],{},[22,1158,1159],{},[33,1160,157],{},[237,1162,1163,1168,1174,1185],{},[46,1164,736,1165,1167],{},[150,1166,739],{}," is set and retrieves consensus parameters",[46,1169,1170,1171,1173],{},"Computes cutoff times for peer and local proposals using ",[150,1172,447],{}," parameter",[46,1175,1176,1177],{},"Iterates over current peer positions:\n",[43,1178,1179,1182],{},[46,1180,1181],{},"Removes stale proposals (older than cutoff time) and their votes from disputes",[46,1183,1184],{},"Tallies close time votes for non-stale proposals",[46,1186,1187,1188],{},"Updates the local node's transaction set and position if necessary:\n",[43,1189,1190,1193,1196],{},[46,1191,1192],{},"Adjusts votes on disputed transactions based on avalanche thresholds",[46,1194,1195],{},"Logs and shares changes to our position",[46,1197,1198],{},"Updates disputes accordingly",[22,1200,1201],{},"This is the heart of the consensus algorithm where the node adjusts its position based on what peers are proposing.",[26,1203,1205],{"id":1204},"state-transition-triggers","State Transition Triggers",[43,1207,1208,1214,1220,1226],{},[46,1209,1210,1213],{},[33,1211,1212],{},"Time-based:"," Automatic progression based on consensus timing (ledgerGRANULARITY = 1s timer ticks)",[46,1215,1216,1219],{},[33,1217,1218],{},"Threshold-based:"," Advance when sufficient agreement is reached (80% supermajority)",[46,1221,1222,1225],{},[33,1223,1224],{},"Event-driven:"," Respond to specific network or consensus events (bow outs, ledger switches)",[46,1227,1228,1231],{},[33,1229,1230],{},"Fallback Conditions:"," Handle exceptional situations requiring special transitions (timeouts, expiration)",[26,1233,1235],{"id":1234},"peer-coordination-during-transitions","Peer Coordination During Transitions",[43,1237,1238,1244,1250,1256],{},[46,1239,1240,1243],{},[33,1241,1242],{},"Synchronization:"," Ensure all peers transition states together through shared timing parameters",[46,1245,1246,1249],{},[33,1247,1248],{},"Communication:"," Broadcast state changes to relevant network participants via proposals",[46,1251,1252,1255],{},[33,1253,1254],{},"Validation:"," Verify that transitions are legitimate through proposal sequence numbers",[46,1257,1258,1261],{},[33,1259,1260],{},"Recovery:"," Handle peers that fail to transition properly through dead node tracking",[14,1263],{},[17,1265,1267],{"id":1266},"network-communication","Network Communication",[26,1269,1271],{"id":1270},"communication-patterns","Communication Patterns",[43,1273,1274,1280,1286,1292],{},[46,1275,1276,1279],{},[33,1277,1278],{},"Broadcast:"," Send information to all connected peers simultaneously",[46,1281,1282,1285],{},[33,1283,1284],{},"Targeted:"," Direct communication with specific peers or validator subsets",[46,1287,1288,1291],{},[33,1289,1290],{},"Relay:"," Forward messages through the network to reach distant peers",[46,1293,1294,1297],{},[33,1295,1296],{},"Request-Response:"," Interactive communication for specific information needs (e.g., transaction set acquisition)",[26,1299,1301],{"id":1300},"sharing-proposals-rclconsensusadaptorshare","Sharing Proposals: RCLConsensus::Adaptor::share",[22,1303,1304,148,1306],{},[33,1305,147],{},[150,1307,152],{},[22,1309,1310],{},[33,1311,157],{},[237,1313,1314,1341,1387],{},[46,1315,1316,1317,1320,1321],{},"Constructs a ",[150,1318,1319],{},"TMProposeSet"," protocol message from a peer's proposal, including:",[43,1322,1323,1326,1329,1332,1335,1338],{},[46,1324,1325],{},"Sequence number",[46,1327,1328],{},"Close time",[46,1330,1331],{},"Transaction hash",[46,1333,1334],{},"Previous ledger hash",[46,1336,1337],{},"Public key",[46,1339,1340],{},"Signature",[46,1342,1343,1344],{},"Relays this proposal to peers using the overlay network:",[1345,1346,1351],"pre",{"className":1347,"code":1348,"language":1349,"meta":1350,"style":1350},"language-cpp shiki shiki-themes github-dark-high-contrast","app_.overlay().relay(prop, peerPos.suppressionID(), peerPos.publicKey());\n","cpp","",[150,1352,1353],{"__ignoreMap":1350},[1354,1355,1358,1362,1366,1369,1372,1375,1378,1381,1384],"span",{"class":1356,"line":1357},"line",1,[1354,1359,1361],{"class":1360},"sMAXC","app_.",[1354,1363,1365],{"class":1364},"sj_SG","overlay",[1354,1367,1368],{"class":1360},"().",[1354,1370,1371],{"class":1364},"relay",[1354,1373,1374],{"class":1360},"(prop, peerPos.",[1354,1376,1377],{"class":1364},"suppressionID",[1354,1379,1380],{"class":1360},"(), peerPos.",[1354,1382,1383],{"class":1364},"publicKey",[1354,1385,1386],{"class":1360},"());\n",[46,1388,1389],{},"The suppression ID is used to prevent duplicate relays of the same proposal across the network",[26,1391,1393],{"id":1392},"overlay-network-integration","Overlay Network Integration",[22,1395,1396,1399],{},[33,1397,1398],{},"Overlay:"," Manages peer connections, message broadcasting, and relaying in the XRPL peer-to-peer network",[22,1401,1402,148,1404],{},[33,1403,147],{},[150,1405,1406],{},"rippled\u002Fsrc\u002Fxrpld\u002Foverlay\u002Fdetail\u002FOverlayImpl.h",[22,1408,1409,1412],{},[33,1410,1411],{},"PeerSet:"," Abstract interface for managing sets of network peers, adding peers, sending protocol messages, and retrieving peer IDs",[22,1414,1415,148,1417],{},[33,1416,147],{},[150,1418,1419],{},"rippled\u002Fsrc\u002Fxrpld\u002Foverlay\u002FPeerSet.h",[22,1421,1422,1425],{},[33,1423,1424],{},"PeerImp:"," Implements the core logic for a peer connection, including message sending\u002Freceiving, resource usage, and protocol handling",[22,1427,1428,148,1430],{},[33,1429,147],{},[150,1431,1432],{},"rippled\u002Fsrc\u002Fxrpld\u002Foverlay\u002Fdetail\u002FPeerImp.h",[26,1434,1436],{"id":1435},"message-types-and-purposes","Message Types and Purposes",[43,1438,1439,1445,1451,1457],{},[46,1440,1441,1444],{},[33,1442,1443],{},"Proposals (TMProposeSet):"," Consensus position announcements from validators",[46,1446,1447,1450],{},[33,1448,1449],{},"Validations (TMValidation):"," Confirmations of agreed-upon ledger states",[46,1452,1453,1456],{},[33,1454,1455],{},"Transaction Sets (TMHaveTransactionSet\u002FTMGetObjectByHash):"," Exchange of transaction data",[46,1458,1459,1462],{},[33,1460,1461],{},"Status Updates:"," Peer state and availability information",[26,1464,1466],{"id":1465},"network-optimization-strategies","Network Optimization Strategies",[43,1468,1469,1475,1481,1487],{},[46,1470,1471,1474],{},[33,1472,1473],{},"Message Suppression:"," Prevent redundant message propagation using suppression IDs",[46,1476,1477,1480],{},[33,1478,1479],{},"Priority Queuing:"," Ensure critical consensus messages receive priority",[46,1482,1483,1486],{},[33,1484,1485],{},"Bandwidth Management:"," Optimize network resource utilization",[46,1488,1489,1492],{},[33,1490,1491],{},"Latency Minimization:"," Reduce communication delays affecting consensus timing",[26,1494,1496],{"id":1495},"reliability-and-fault-tolerance","Reliability and Fault Tolerance",[43,1498,1499,1505,1511,1517],{},[46,1500,1501,1504],{},[33,1502,1503],{},"Redundant Paths:"," Multiple communication routes between peers through the overlay network",[46,1506,1507,1510],{},[33,1508,1509],{},"Error Detection:"," Identify and handle communication failures",[46,1512,1513,1516],{},[33,1514,1515],{},"Retry Mechanisms:"," Transaction set acquisition can retry on failure",[46,1518,1519,1522],{},[33,1520,1521],{},"Graceful Degradation:"," Maintain functionality despite network issues (nodes can bow out rather than fail)",[14,1524],{},[17,1526,1528],{"id":1527},"supporting-data-structures","Supporting Data Structures",[26,1530,1532],{"id":1531},"consensusparms","ConsensusParms",[22,1534,1535,148,1537],{},[33,1536,147],{},[150,1538,1539],{},"rippled\u002Fsrc\u002Fxrpld\u002Fconsensus\u002FConsensusParms.h",[22,1541,1542],{},"Encapsulates configuration parameters for the consensus process, including:",[43,1544,1545,1548,1551],{},[46,1546,1547],{},"Timing parameters (ledgerMIN_CONSENSUS, ledgerMAX_CONSENSUS, etc.)",[46,1549,1550],{},"Thresholds (minCONSENSUS_PCT = 80%)",[46,1552,1553],{},"Avalanche cutoffs and progression rules",[26,1555,1557],{"id":1556},"consensusclosetimes","ConsensusCloseTimes",[22,1559,1560,148,1562],{},[33,1561,147],{},[150,1563,1564],{},"rippled\u002Fsrc\u002Fxrpld\u002Fconsensus\u002FConsensusTypes.h",[22,1566,1567],{},"Tracks proposed close times from peers and self, used to reach agreement on when the ledger should close.",[26,1569,1571],{"id":1570},"consensusresult","ConsensusResult",[22,1573,1574,148,1576],{},[33,1575,147],{},[150,1577,1564],{},[22,1579,1580],{},"Encapsulates the result of a consensus round, including:",[43,1582,1583,1586,1589,1592,1595,1598,1601],{},[46,1584,1585],{},"The transaction set",[46,1587,1588],{},"Proposal position",[46,1590,1591],{},"Disputes",[46,1593,1594],{},"Compared sets",[46,1596,1597],{},"Round timing",[46,1599,1600],{},"Consensus state",[46,1602,1603],{},"Proposer count",[26,1605,1607],{"id":1606},"consensusmode-and-consensusphase","ConsensusMode and ConsensusPhase",[22,1609,1610,148,1612],{},[33,1611,147],{},[150,1613,1564],{},[22,1615,1616],{},"Enumerations defining:",[43,1618,1619,1625],{},[46,1620,1621,1624],{},[33,1622,1623],{},"Modes:"," proposing, observing, wrongLedger, switchedLedger",[46,1626,1627,1630],{},[33,1628,1629],{},"Phases:"," open, establish, accepted",[26,1632,1634],{"id":1633},"rclcxpeerpos","RCLCxPeerPos",[22,1636,1637,148,1639],{},[33,1638,147],{},[150,1640,1641],{},"rippled\u002Fsrc\u002Fxrpld\u002Fapp\u002Fconsensus\u002FRCLCxPeerPos.h",[22,1643,1644],{},"Represents a peer's position (proposal) in the consensus process, including:",[43,1646,1647,1649,1651,1654],{},[46,1648,1337],{},[46,1650,1340],{},[46,1652,1653],{},"Suppression ID",[46,1655,1656],{},"Proposal object with ledger hashes and transaction set hash",[14,1658],{},[17,1660,1662],{"id":1661},"integration-and-design-principles","Integration and Design Principles",[26,1664,1666],{"id":1665},"system-integration-points","System Integration Points",[43,1668,1669,1675,1681,1687],{},[46,1670,1671,1674],{},[33,1672,1673],{},"Consensus Algorithm:"," Direct interface with core consensus logic through the Adaptor pattern",[46,1676,1677,1680],{},[33,1678,1679],{},"Network Overlay:"," Integration with peer-to-peer communication layer",[46,1682,1683,1686],{},[33,1684,1685],{},"Ledger Management:"," Coordination with ledger creation and validation",[46,1688,1689,1692],{},[33,1690,1691],{},"Transaction Processing:"," Interface with transaction handling systems through transaction set acquisition",[26,1694,1696],{"id":1695},"key-design-principles","Key Design Principles",[43,1698,1699,1705,1711,1716],{},[46,1700,1701,1704],{},[33,1702,1703],{},"Modularity:"," Clear separation between consensus logic (generic Consensus class) and XRPL-specific logic (RCLConsensus Adaptor)",[46,1706,1707,1710],{},[33,1708,1709],{},"Scalability:"," Efficient handling of large numbers of network participants through hash maps and optimized data structures",[46,1712,1713,1715],{},[33,1714,86],{}," Robust operation despite network and peer failures (bow outs, dead nodes, timeouts)",[46,1717,1718,1720],{},[33,1719,98],{}," Optimized for low-latency consensus decision-making through parallel processing and efficient algorithms",[26,1722,1724],{"id":1723},"benefits-to-xrpl-network","Benefits to XRPL Network",[43,1726,1727,1733,1739,1745],{},[46,1728,1729,1732],{},[33,1730,1731],{},"Decentralized Governance:"," No single point of control or failure",[46,1734,1735,1738],{},[33,1736,1737],{},"Fast Settlement:"," Rapid consensus enables quick transaction finality (typically 3-5 seconds)",[46,1740,1741,1744],{},[33,1742,1743],{},"Network Resilience:"," Fault tolerance through distributed validation and automatic recovery",[46,1746,1747,1750],{},[33,1748,1749],{},"Transparent Operation:"," Open and verifiable consensus process",[14,1752],{},[17,1754,1756],{"id":1755},"summary","Summary",[26,1758,1760],{"id":1759},"key-takeaways","Key Takeaways",[43,1762,1763,1768,1774,1780],{},[46,1764,1765,1767],{},[33,1766,5],{}," are the critical bridge between network communication and consensus decisions",[46,1769,1770,1773],{},[33,1771,1772],{},"Multi-layered approach"," handles proposals, tracks states, manages disputes, and coordinates transitions",[46,1775,1776,1779],{},[33,1777,1778],{},"Trust-based system"," distinguishes between UNL and non-UNL validators",[46,1781,1782,1785],{},[33,1783,1784],{},"Robust design"," ensures network reliability and performance despite various challenges",[26,1787,1789],{"id":1788},"the-big-picture","The Big Picture",[22,1791,1792],{},"Consensus Peers functionality represents the sophisticated orchestration layer that enables XRPL's distributed consensus mechanism to operate efficiently and reliably across a global network of validators and participants. By carefully managing peer proposals, tracking state, resolving disputes through the avalanche mechanism, and coordinating state transitions, the system achieves fast, reliable, and decentralized agreement on ledger state.",[14,1794],{},[17,1796,1798],{"id":1797},"references-to-source-code","References to Source Code",[43,1800,1801,1806,1812,1817,1822,1827,1832,1837,1842,1847],{},[46,1802,1803,1805],{},[150,1804,152],{}," - XRPL-specific consensus implementation",[46,1807,1808,1811],{},[150,1809,1810],{},"rippled\u002Fsrc\u002Fxrpld\u002Fapp\u002Fconsensus\u002FRCLConsensus.h"," - RCLConsensus class definition",[46,1813,1814,1816],{},[150,1815,1641],{}," - Peer position representation",[46,1818,1819,1821],{},[150,1820,189],{}," - Generic consensus template implementation",[46,1823,1824,1826],{},[150,1825,1564],{}," - Consensus data structures and enums",[46,1828,1829,1831],{},[150,1830,1539],{}," - Consensus parameters",[46,1833,1834,1836],{},[150,1835,793],{}," - Dispute management",[46,1838,1839,1841],{},[150,1840,1406],{}," - Overlay network implementation",[46,1843,1844,1846],{},[150,1845,1419],{}," - Peer set interface",[46,1848,1849,1851],{},[150,1850,1432],{}," - Peer connection implementation",[1853,1854,1855],"style",{},"html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}html pre.shiki code .sj_SG, html code.shiki .sj_SG{--shiki-default:#DBB7FF}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);}",{"title":1350,"searchDepth":1857,"depth":1857,"links":1858},2,[1859,1864,1870,1877,1885,1894,1902,1909,1914,1918],{"id":19,"depth":1857,"text":20,"children":1860},[1861,1863],{"id":28,"depth":1862,"text":29},3,{"id":72,"depth":1862,"text":73},{"id":104,"depth":1857,"text":105,"children":1865},[1866,1867,1868,1869],{"id":108,"depth":1862,"text":109},{"id":133,"depth":1862,"text":134},{"id":382,"depth":1862,"text":383},{"id":423,"depth":1862,"text":424},{"id":459,"depth":1857,"text":460,"children":1871},[1872,1873,1874,1875,1876],{"id":466,"depth":1862,"text":467},{"id":499,"depth":1862,"text":500},{"id":591,"depth":1862,"text":592},{"id":621,"depth":1862,"text":622},{"id":651,"depth":1862,"text":652},{"id":683,"depth":1857,"text":684,"children":1878},[1879,1880,1881,1882,1883,1884],{"id":690,"depth":1862,"text":691},{"id":720,"depth":1862,"text":721},{"id":785,"depth":1862,"text":786},{"id":848,"depth":1862,"text":849},{"id":893,"depth":1862,"text":894},{"id":923,"depth":1862,"text":924},{"id":955,"depth":1857,"text":956,"children":1886},[1887,1888,1889,1890,1891,1892,1893],{"id":962,"depth":1862,"text":963},{"id":993,"depth":1862,"text":994},{"id":1056,"depth":1862,"text":1057},{"id":1094,"depth":1862,"text":1095},{"id":1149,"depth":1862,"text":1150},{"id":1204,"depth":1862,"text":1205},{"id":1234,"depth":1862,"text":1235},{"id":1266,"depth":1857,"text":1267,"children":1895},[1896,1897,1898,1899,1900,1901],{"id":1270,"depth":1862,"text":1271},{"id":1300,"depth":1862,"text":1301},{"id":1392,"depth":1862,"text":1393},{"id":1435,"depth":1862,"text":1436},{"id":1465,"depth":1862,"text":1466},{"id":1495,"depth":1862,"text":1496},{"id":1527,"depth":1857,"text":1528,"children":1903},[1904,1905,1906,1907,1908],{"id":1531,"depth":1862,"text":1532},{"id":1556,"depth":1862,"text":1557},{"id":1570,"depth":1862,"text":1571},{"id":1606,"depth":1862,"text":1607},{"id":1633,"depth":1862,"text":1634},{"id":1661,"depth":1857,"text":1662,"children":1910},[1911,1912,1913],{"id":1665,"depth":1862,"text":1666},{"id":1695,"depth":1862,"text":1696},{"id":1723,"depth":1862,"text":1724},{"id":1755,"depth":1857,"text":1756,"children":1915},[1916,1917],{"id":1759,"depth":1862,"text":1760},{"id":1788,"depth":1862,"text":1789},{"id":1797,"depth":1857,"text":1798},"Consensus Peers for Consensus II: UNLs and Ledger Amendments, in the Core Dev Bootcamp: XRPL Commons docs.","md",{},true,"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":5,"description":1919},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers.md","docs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers","O2eKg6Bqv9qrREP8hpq6xfoPPQviX9Xc6Lv49LeZ0a8",[],[1930,1972,1987,2008,2032,2424],{"title":1931,"path":1932,"children":1933,"description":1970,"pages":1971},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[1934,1937,1940,1943,1946,1949,1952,1955,1958,1961,1964,1967],{"title":1935,"path":1936},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":1938,"path":1939},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":1941,"path":1942},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":1944,"path":1945},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":1947,"path":1948},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":1950,"path":1951},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":1953,"path":1954},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":1956,"path":1957},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":1959,"path":1960},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":1962,"path":1963},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":1965,"path":1966},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":1968,"path":1969},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",13,{"title":1973,"path":1974,"children":1975,"description":1985,"pages":1986},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[1976,1979,1982],{"title":1977,"path":1978},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":1980,"path":1981},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":1983,"path":1984},"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",4,{"title":1988,"path":1989,"children":1990,"description":2006,"pages":2007},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[1991,1994,1997,2000,2003],{"title":1992,"path":1993},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":1995,"path":1996},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":1998,"path":1999},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":2001,"path":2002},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":2004,"path":2005},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",6,{"title":2009,"path":2010,"children":2011,"description":2030,"pages":2031},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[2012,2015,2018,2021,2024,2027],{"title":2013,"path":2014},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":2016,"path":2017},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":2019,"path":2020},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":2022,"path":2023},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":2025,"path":2026},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":2028,"path":2029},"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",7,{"title":2033,"path":2034,"children":2035,"description":2422,"pages":2423},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[2036,2056,2099,2149,2180,2237,2268,2284,2324,2358,2381,2397],{"title":2037,"path":2038,"children":2039},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[2040,2043,2046,2049],{"title":2041,"path":2042},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":2044,"path":2045},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":2047,"path":2048},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":2050,"path":2051,"children":2052},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[2053],{"title":2054,"path":2055},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":2057,"path":2058,"children":2059},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[2060,2063,2066,2069,2072,2075,2078,2081,2084],{"title":2061,"path":2062},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":2064,"path":2065},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":2067,"path":2068},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":2070,"path":2071},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":2073,"path":2074},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":2076,"path":2077},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":2079,"path":2080},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":2082,"path":2083},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":2050,"path":2085,"children":2086},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[2087,2090,2093,2096],{"title":2088,"path":2089},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":2091,"path":2092},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":2094,"path":2095},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":2097,"path":2098},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":2100,"path":2101,"children":2102},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[2103,2106,2109,2112,2115,2118,2121,2124,2127,2130,2133,2136],{"title":2104,"path":2105},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":2107,"path":2108},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":2110,"path":2111},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":2113,"path":2114},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":2116,"path":2117},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":2119,"path":2120},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":2122,"path":2123},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":2125,"path":2126},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":2128,"path":2129},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":2131,"path":2132},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":2134,"path":2135},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":2137,"path":2138,"children":2139},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[2140,2143,2146],{"title":2141,"path":2142},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":2144,"path":2145},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":2147,"path":2148},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":2150,"path":2151,"children":2152},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[2153,2156,2159,2162,2165,2168,2171,2174,2177],{"title":2154,"path":2155},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":2157,"path":2158},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":2160,"path":2161},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":2163,"path":2164},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":2166,"path":2167},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":2169,"path":2170},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":2172,"path":2173},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":2175,"path":2176},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":2178,"path":2179},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":2181,"path":2182,"children":2183},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[2184,2187,2190,2193,2196,2199,2202,2205,2208,2211,2214,2217,2220,2231],{"title":2185,"path":2186},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":2188,"path":2189},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":2191,"path":2192},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":2194,"path":2195},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":2197,"path":2198},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":2200,"path":2201},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":2203,"path":2204},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":2206,"path":2207},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":2209,"path":2210},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":2212,"path":2213},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":2215,"path":2216},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":2218,"path":2219},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":2137,"path":2221,"children":2222},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[2223,2225,2228],{"title":2141,"path":2224},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":2226,"path":2227},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":2229,"path":2230},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":2050,"path":2232,"children":2233},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[2234],{"title":2235,"path":2236},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":2238,"path":2239,"children":2240},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[2241,2244,2247,2250,2253,2256,2262],{"title":2242,"path":2243},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":2245,"path":2246},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":2248,"path":2249},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":2251,"path":2252},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":2254,"path":2255},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":2137,"path":2257,"children":2258},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[2259],{"title":2260,"path":2261},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":2050,"path":2263,"children":2264},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[2265],{"title":2266,"path":2267},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":2269,"path":2270,"children":2271},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[2272,2275,2278,2281],{"title":2273,"path":2274},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":2276,"path":2277},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":2279,"path":2280},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":2282,"path":2283},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":2285,"path":2286,"children":2287},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[2288,2291,2294,2297,2300,2312],{"title":2289,"path":2290},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":2292,"path":2293},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":2295,"path":2296},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":2298,"path":2299},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":2137,"path":2301,"children":2302},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[2303,2306,2309],{"title":2304,"path":2305},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":2307,"path":2308},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":2310,"path":2311},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":2050,"path":2313,"children":2314},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[2315,2318,2321],{"title":2316,"path":2317},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":2319,"path":2320},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":2322,"path":2323},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":2325,"path":2326,"children":2327},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[2328,2331,2334,2337,2340,2343,2346,2349],{"title":2329,"path":2330},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":2332,"path":2333},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":2335,"path":2336},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":2338,"path":2339},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":2341,"path":2342},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":2344,"path":2345},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":2347,"path":2348},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":2050,"path":2350,"children":2351},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[2352,2355],{"title":2353,"path":2354},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":2356,"path":2357},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":2359,"path":2360,"children":2361},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[2362,2365,2368,2371,2374,2375,2378],{"title":2363,"path":2364},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":2366,"path":2367},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":2369,"path":2370},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":2372,"path":2373},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":5,"path":1923},{"title":2376,"path":2377},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":2379,"path":2380},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":2382,"path":2383,"children":2384},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[2385,2388,2391,2394],{"title":2386,"path":2387},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":2389,"path":2390},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":2392,"path":2393},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":2395,"path":2396},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":2398,"path":2399,"children":2400},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[2401,2404,2407,2410,2413,2416,2419],{"title":2402,"path":2403},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":2405,"path":2406},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":2408,"path":2409},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":2411,"path":2412},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":2414,"path":2415},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":2417,"path":2418},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":2420,"path":2421},"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":2425,"path":2426,"children":2427,"description":2434,"pages":1862},"Tools","\u002Fdocs\u002Ftools",[2428,2431],{"title":2429,"path":2430},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":2432,"path":2433},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220774974]