[{"data":1,"prerenderedAt":7386},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer":6887,"docs-tracks":6888},{"id":4,"title":5,"body":6,"description":6879,"extension":6880,"meta":6881,"navigation":1500,"path":6882,"seo":6883,"source":6884,"stem":6885,"__hash__":6886},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer.md","Overlay Network: Peer-to-Peer Networking Layer",{"type":7,"value":8,"toc":6820},"minimark",[9,13,16,21,25,28,32,34,38,43,51,73,79,105,109,120,123,127,130,135,141,146,160,165,207,212,217,221,235,239,277,282,287,291,305,309,339,343,346,356,362,367,381,383,387,391,394,403,425,433,447,452,463,468,479,483,486,491,506,510,532,537,574,578,589,593,604,608,611,617,622,636,641,655,659,673,677,688,692,695,700,717,722,733,735,739,743,749,753,758,761,767,771,799,804,807,813,818,832,837,840,846,1039,1045,1054,1059,1296,1301,1307,1312,1315,1320,1334,1339,1353,1358,1451,1453,1457,1461,1464,1469,1561,1566,1572,1578,1584,1589,1592,1699,1703,1706,1711,1717,1906,1912,2035,2041,2109,2115,2139,2144,2147,2424,2429,2440,2444,2447,2692,2696,2699,2704,2876,2880,3036,3038,3042,3046,3049,3054,3062,3073,3081,3091,3096,3180,3185,3193,3204,3209,3359,3364,3372,3383,3388,3460,3464,3470,3475,3481,3486,3643,3648,3659,3663,3666,3975,3980,3991,3993,3997,4001,4006,4012,4035,4041,4069,4073,4164,4169,4174,4225,4229,4261,4266,4337,4341,4346,4349,4362,4365,4493,4498,4501,4542,4547,4550,4565,4569,4572,4618,4623,4629,4631,4635,4639,4644,4664,4669,4689,4694,4708,4713,4727,4731,4736,5024,5029,5374,5378,5383,5386,5525,5530,5533,5751,5753,5757,5761,5767,5772,5778,5796,5802,5805,5819,5824,5835,5840,5845,5863,5868,5896,5902,5905,5919,5924,5929,5948,5953,5971,5976,5982,5987,5992,6067,6072,6106,6111,6114,6125,6130,6135,6142,6151,6156,6159,6165,6170,6181,6186,6189,6251,6253,6257,6261,6268,6274,6280,6286,6292,6297,6303,6307,6313,6319,6325,6330,6335,6339,6348,6361,6367,6373,6375,6379,6383,6389,6394,6405,6410,6480,6484,6489,6493,6504,6508,6554,6558,6563,6567,6578,6582,6648,6652,6657,6661,6672,6676,6722,6724,6728,6732,6766,6770,6787,6791,6814,6816],[10,11,5],"h1",{"id":12},"overlay-network-peer-to-peer-networking-layer",[14,15],"hr",{},[17,18,20],"h2",{"id":19},"introduction","Introduction",[22,23,24],"p",{},"The Overlay Network is Rippled's peer-to-peer networking layer that enables distributed nodes to discover each other, establish connections, and communicate efficiently. Without the overlay network, the XRP Ledger would be a collection of isolated servers—the overlay network is what transforms individual nodes into a cohesive, decentralized system.",[22,26,27],{},"Understanding the overlay network is essential for debugging connectivity issues, optimizing network performance, and ensuring your node participates effectively in the XRP Ledger network. Whether you're running a validator, a stock server, or developing network enhancements, deep knowledge of the overlay network is crucial.",[29,30],"docs-video",{"url":31},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=CC47Z4AyRGE",[14,33],{},[17,35,37],{"id":36},"network-topology-and-architecture","Network Topology and Architecture",[39,40,42],"h3",{"id":41},"mesh-network-design","Mesh Network Design",[22,44,45,46,50],{},"The XRP Ledger uses a ",[47,48,49],"strong",{},"mesh topology"," where nodes maintain direct connections with multiple peers. This differs from:",[52,53,54,61,67],"ul",{},[55,56,57,60],"li",{},[47,58,59],{},"Star topology",": Central hub (single point of failure)",[55,62,63,66],{},[47,64,65],{},"Ring topology",": Sequential connections (vulnerable to breaks)",[55,68,69,72],{},[47,70,71],{},"Tree topology",": Hierarchical structure (root node critical)",[22,74,75,78],{},[47,76,77],{},"Mesh Advantages",":",[52,80,81,87,93,99],{},[55,82,83,86],{},[47,84,85],{},"No single point of failure",": Network remains operational if individual nodes fail",[55,88,89,92],{},[47,90,91],{},"Multiple communication paths",": Messages can route around failed nodes",[55,94,95,98],{},[47,96,97],{},"Scalability",": Network can grow organically as nodes join",[55,100,101,104],{},[47,102,103],{},"Resilience",": Network topology self-heals as nodes enter and exit",[39,106,108],{"id":107},"network-layers","Network Layers",[110,111,116],"pre",{"className":112,"code":114,"language":115},[113],"language-text","┌─────────────────────────────────────────────┐\n│         Application Layer                   │\n│  (Consensus, Transactions, Ledger)          │\n├─────────────────────────────────────────────┤\n│         Overlay Network Layer               │\n│  (Peer Discovery, Connection Mgmt,          │\n│   Message Routing)                          │\n├─────────────────────────────────────────────┤\n│         Transport Layer (TCP\u002FTLS)           │\n├─────────────────────────────────────────────┤\n│         Internet Layer (IP)                 │\n└─────────────────────────────────────────────┘\n","text",[117,118,114],"code",{"__ignoreMap":119},"",[22,121,122],{},"The overlay network sits between the application logic and the transport layer, abstracting away the complexities of peer-to-peer communication.",[39,124,126],{"id":125},"connection-types","Connection Types",[22,128,129],{},"Rippled maintains three types of peer connections:",[22,131,132],{},[47,133,134],{},"1. Outbound Connections",[22,136,137,140],{},[47,138,139],{},"Definition",": Connections initiated by your node to other peers",[22,142,143,78],{},[47,144,145],{},"Characteristics",[52,147,148,151,154,157],{},[55,149,150],{},"Your node acts as client",[55,152,153],{},"You choose which peers to connect to",[55,155,156],{},"Configurable connection limits",[55,158,159],{},"Active connection management",[22,161,162,78],{},[47,163,164],{},"Configuration",[110,166,170],{"className":167,"code":168,"language":169,"meta":119,"style":119},"language-ini shiki shiki-themes github-dark-high-contrast","[ips]\n# DNS or IP addresses to connect to\nr.ripple.com 51235\ns1.ripple.com 51235\ns2.ripple.com 51235\n","ini",[117,171,172,181,188,195,201],{"__ignoreMap":119},[173,174,177],"span",{"class":175,"line":176},"line",1,[173,178,180],{"class":179},"s_sBn","[ips]\n",[173,182,184],{"class":175,"line":183},2,[173,185,187],{"class":186},"sQrFR","# DNS or IP addresses to connect to\n",[173,189,191],{"class":175,"line":190},3,[173,192,194],{"class":193},"sMAXC","r.ripple.com 51235\n",[173,196,198],{"class":175,"line":197},4,[173,199,200],{"class":193},"s1.ripple.com 51235\n",[173,202,204],{"class":175,"line":203},5,[173,205,206],{"class":193},"s2.ripple.com 51235\n",[22,208,209],{},[47,210,211],{},"2. Inbound Connections",[22,213,214,216],{},[47,215,139],{},": Connections initiated by other nodes to your server",[22,218,219,78],{},[47,220,145],{},[52,222,223,226,229,232],{},[55,224,225],{},"Your node acts as server",[55,227,228],{},"Must listen on public interface",[55,230,231],{},"Accept connections from unknown peers",[55,233,234],{},"Subject to connection limits",[22,236,237,78],{},[47,238,164],{},[110,240,242],{"className":167,"code":241,"language":169,"meta":119,"style":119},"[port_peer]\nport = 51235\nip = 0.0.0.0      # Listen on all interfaces\nprotocol = peer\n",[117,243,244,249,258,269],{"__ignoreMap":119},[173,245,246],{"class":175,"line":176},[173,247,248],{"class":179},"[port_peer]\n",[173,250,251,255],{"class":175,"line":183},[173,252,254],{"class":253},"sWyjQ","port",[173,256,257],{"class":193}," = 51235\n",[173,259,260,263,266],{"class":175,"line":190},[173,261,262],{"class":253},"ip",[173,264,265],{"class":193}," = 0.0.0.0      ",[173,267,268],{"class":186},"# Listen on all interfaces\n",[173,270,271,274],{"class":175,"line":197},[173,272,273],{"class":253},"protocol",[173,275,276],{"class":193}," = peer\n",[22,278,279],{},[47,280,281],{},"3. Fixed Connections",[22,283,284,286],{},[47,285,139],{},": Persistent connections to trusted peers",[22,288,289,78],{},[47,290,145],{},[52,292,293,296,299,302],{},[55,294,295],{},"High priority, always maintained",[55,297,298],{},"Automatically reconnect if disconnected",[55,300,301],{},"Bypass some connection limits",[55,303,304],{},"Ideal for validators and cluster peers",[22,306,307,78],{},[47,308,164],{},[110,310,312],{"className":167,"code":311,"language":169,"meta":119,"style":119},"[ips_fixed]\n# Always maintain connections to these peers\nvalidator1.example.com 51235\nvalidator2.example.com 51235\ncluster-peer.example.com 51235\n",[117,313,314,319,324,329,334],{"__ignoreMap":119},[173,315,316],{"class":175,"line":176},[173,317,318],{"class":179},"[ips_fixed]\n",[173,320,321],{"class":175,"line":183},[173,322,323],{"class":186},"# Always maintain connections to these peers\n",[173,325,326],{"class":175,"line":190},[173,327,328],{"class":193},"validator1.example.com 51235\n",[173,330,331],{"class":175,"line":197},[173,332,333],{"class":193},"validator2.example.com 51235\n",[173,335,336],{"class":175,"line":203},[173,337,338],{"class":193},"cluster-peer.example.com 51235\n",[39,340,342],{"id":341},"target-connection-count","Target Connection Count",[22,344,345],{},"Rippled aims to maintain a target number of active peer connections:",[22,347,348,351,352,355],{},[47,349,350],{},"Default Targets"," (based on ",[117,353,354],{},"node_size","):",[110,357,360],{"className":358,"code":359,"language":115},[113],"tiny:    10 peers\nsmall:   15 peers\nmedium:  20 peers (default)\nlarge:   30 peers\nhuge:    40 peers\n",[117,361,359],{"__ignoreMap":119},[22,363,364,78],{},[47,365,366],{},"Connection Distribution",[52,368,369,372,375,378],{},[55,370,371],{},"Approximately 50% outbound connections",[55,373,374],{},"Approximately 50% inbound connections",[55,376,377],{},"Fixed connections count toward total",[55,379,380],{},"System adjusts dynamically to maintain target",[14,382],{},[17,384,386],{"id":385},"peer-discovery-mechanisms","Peer Discovery Mechanisms",[39,388,390],{"id":389},"_1-configured-peer-lists","1. Configured Peer Lists",[22,392,393],{},"The most basic discovery method—manually configured peers:",[22,395,396,402],{},[47,397,398,401],{},[117,399,400],{},"[ips]"," Section",": Peers to connect to automatically",[110,404,406],{"className":167,"code":405,"language":169,"meta":119,"style":119},"[ips]\nr.ripple.com 51235\ns1.ripple.com 51235\nvalidator.example.com 51235\n",[117,407,408,412,416,420],{"__ignoreMap":119},[173,409,410],{"class":175,"line":176},[173,411,180],{"class":179},[173,413,414],{"class":175,"line":183},[173,415,194],{"class":193},[173,417,418],{"class":175,"line":190},[173,419,200],{"class":193},[173,421,422],{"class":175,"line":197},[173,423,424],{"class":193},"validator.example.com 51235\n",[22,426,427,432],{},[47,428,429,401],{},[117,430,431],{},"[ips_fixed]",": High-priority persistent connections",[110,434,436],{"className":167,"code":435,"language":169,"meta":119,"style":119},"[ips_fixed]\ncritical-peer.example.com 51235\n",[117,437,438,442],{"__ignoreMap":119},[173,439,440],{"class":175,"line":176},[173,441,318],{"class":179},[173,443,444],{"class":175,"line":183},[173,445,446],{"class":193},"critical-peer.example.com 51235\n",[22,448,449,78],{},[47,450,451],{},"Advantages",[52,453,454,457,460],{},[55,455,456],{},"Reliable, known peers",[55,458,459],{},"Administrative control",[55,461,462],{},"Suitable for private networks",[22,464,465,78],{},[47,466,467],{},"Disadvantages",[52,469,470,473,476],{},[55,471,472],{},"Manual maintenance required",[55,474,475],{},"Limited to configured peers",[55,477,478],{},"Doesn't scale automatically",[39,480,482],{"id":481},"_2-dns-seeds","2. DNS Seeds",[22,484,485],{},"DNS-based peer discovery for bootstrap:",[22,487,488,78],{},[47,489,490],{},"How It Works",[492,493,494,497,500,503],"ol",{},[55,495,496],{},"Node queries DNS for peer addresses",[55,498,499],{},"DNS returns A records (IP addresses)",[55,501,502],{},"Node connects to returned addresses",[55,504,505],{},"Learns about additional peers through gossip",[22,507,508,78],{},[47,509,164],{},[110,511,513],{"className":167,"code":512,"language":169,"meta":119,"style":119},"[ips]\n# These resolve via DNS\nr.ripple.com 51235\ns1.ripple.com 51235\n",[117,514,515,519,524,528],{"__ignoreMap":119},[173,516,517],{"class":175,"line":176},[173,518,180],{"class":179},[173,520,521],{"class":175,"line":183},[173,522,523],{"class":186},"# These resolve via DNS\n",[173,525,526],{"class":175,"line":190},[173,527,194],{"class":193},[173,529,530],{"class":175,"line":197},[173,531,200],{"class":193},[22,533,534,78],{},[47,535,536],{},"DNS Resolution Example",[110,538,542],{"className":539,"code":540,"language":541,"meta":119,"style":119},"language-bash shiki shiki-themes github-dark-high-contrast","$ dig +short r.ripple.com\n54.186.73.52\n54.184.149.41\n52.24.169.78\n","bash",[117,543,544,559,564,569],{"__ignoreMap":119},[173,545,546,549,553,556],{"class":175,"line":176},[173,547,548],{"class":179},"$",[173,550,552],{"class":551},"sTRMh"," dig",[173,554,555],{"class":551}," +short",[173,557,558],{"class":551}," r.ripple.com\n",[173,560,561],{"class":175,"line":183},[173,562,563],{"class":179},"54.186.73.52\n",[173,565,566],{"class":175,"line":190},[173,567,568],{"class":179},"54.184.149.41\n",[173,570,571],{"class":175,"line":197},[173,572,573],{"class":179},"52.24.169.78\n",[22,575,576,78],{},[47,577,451],{},[52,579,580,583,586],{},[55,581,582],{},"Easy bootstrap for new nodes",[55,584,585],{},"Dynamic peer lists",[55,587,588],{},"Load balancing via DNS",[22,590,591,78],{},[47,592,467],{},[52,594,595,598,601],{},[55,596,597],{},"Requires DNS infrastructure",[55,599,600],{},"Vulnerable to DNS attacks",[55,602,603],{},"Single point of failure for initial connection",[39,605,607],{"id":606},"_3-peer-gossip-protocol","3. Peer Gossip Protocol",[22,609,610],{},"Peers share information about other peers they know:",[22,612,613,616],{},[47,614,615],{},"Message Type",": Endpoint announcements (part of peer protocol)",[22,618,619,78],{},[47,620,621],{},"Process",[492,623,624,627,630,633],{},[55,625,626],{},"Peer A connects to Peer B",[55,628,629],{},"Peer B shares list of other known peers",[55,631,632],{},"Peer A considers these peers for connection",[55,634,635],{},"Peer A may connect to some of the suggested peers",[22,637,638,78],{},[47,639,640],{},"Gossip Information Includes",[52,642,643,646,649,652],{},[55,644,645],{},"Peer IP addresses",[55,647,648],{},"Peer public keys",[55,650,651],{},"Last seen time",[55,653,654],{},"Connection quality hints",[22,656,657,78],{},[47,658,451],{},[52,660,661,664,667,670],{},[55,662,663],{},"Network self-organizes",[55,665,666],{},"No central directory needed",[55,668,669],{},"Discovers new peers automatically",[55,671,672],{},"Network grows organically",[22,674,675,78],{},[47,676,467],{},[52,678,679,682,685],{},[55,680,681],{},"Potential for malicious peer injection",[55,683,684],{},"Network topology influenced by gossip patterns",[55,686,687],{},"Initial bootstrapping still needed",[39,689,691],{"id":690},"_4-peer-crawler","4. Peer Crawler",[22,693,694],{},"Some nodes run peer crawlers to discover and monitor network topology:",[22,696,697,78],{},[47,698,699],{},"What Crawlers Do",[52,701,702,705,708,711,714],{},[55,703,704],{},"Connect to known peers",[55,706,707],{},"Request peer lists",[55,709,710],{},"Recursively discover more peers",[55,712,713],{},"Map network topology",[55,715,716],{},"Provide public peer directories",[22,718,719,78],{},[47,720,721],{},"Public Peer Lists",[52,723,724,727,730],{},[55,725,726],{},"Various community-maintained lists",[55,728,729],{},"Used by new nodes to bootstrap",[55,731,732],{},"Updated regularly",[14,734],{},[17,736,738],{"id":737},"connection-establishment-and-handshake","Connection Establishment and Handshake",[39,740,742],{"id":741},"connection-lifecycle","Connection Lifecycle",[110,744,747],{"className":745,"code":746,"language":115},[113],"┌──────────────┐\n│  Disconnected│\n└──────┬───────┘\n       │ initiate()\n       ↓\n┌──────────────┐\n│  Connecting  │ ← TCP handshake, TLS negotiation\n└──────┬───────┘\n       │ connected()\n       ↓\n┌──────────────┐\n│  Connected   │ ← Protocol handshake in progress\n└──────┬───────┘\n       │ handshake complete\n       ↓\n┌──────────────┐\n│    Active    │ ← Fully operational, exchanging messages\n└──────┬───────┘\n       │ close() or error\n       ↓\n┌──────────────┐\n│   Closing    │ ← Graceful shutdown\n└──────┬───────┘\n       │\n       ↓\n┌──────────────┐\n│    Closed    │\n└──────────────┘\n",[117,748,746],{"__ignoreMap":119},[39,750,752],{"id":751},"detailed-handshake-process","Detailed Handshake Process",[22,754,755],{},[47,756,757],{},"Step 1: TCP Connection",[22,759,760],{},"Standard TCP three-way handshake:",[110,762,765],{"className":763,"code":764,"language":115},[113],"Client                              Server\n  │                                   │\n  │──────── SYN ──────────────────────>│\n  │                                   │\n  │\u003C─────── SYN-ACK ──────────────────│\n  │                                   │\n  │──────── ACK ──────────────────────>│\n  │                                   │\n  │       TCP Connection Established  │\n",[117,766,764],{"__ignoreMap":119},[22,768,769,78],{},[47,770,164],{},[110,772,774],{"className":167,"code":773,"language":169,"meta":119,"style":119},"[port_peer]\nport = 51235\nip = 0.0.0.0\nprotocol = peer\n",[117,775,776,780,786,793],{"__ignoreMap":119},[173,777,778],{"class":175,"line":176},[173,779,248],{"class":179},[173,781,782,784],{"class":175,"line":183},[173,783,254],{"class":253},[173,785,257],{"class":193},[173,787,788,790],{"class":175,"line":190},[173,789,262],{"class":253},[173,791,792],{"class":193}," = 0.0.0.0\n",[173,794,795,797],{"class":175,"line":197},[173,796,273],{"class":253},[173,798,276],{"class":193},[22,800,801],{},[47,802,803],{},"Step 2: TLS Handshake (Optional but Recommended)",[22,805,806],{},"If TLS is configured, encrypted channel is established:",[110,808,811],{"className":809,"code":810,"language":115},[113],"Client                              Server\n  │                                   │\n  │──────── ClientHello ──────────────>│\n  │                                   │\n  │\u003C─────── ServerHello ──────────────│\n  │\u003C─────── Certificate ──────────────│\n  │\u003C─────── ServerHelloDone ──────────│\n  │                                   │\n  │──────── ClientKeyExchange ────────>│\n  │──────── ChangeCipherSpec ─────────>│\n  │──────── Finished ─────────────────>│\n  │                                   │\n  │\u003C─────── ChangeCipherSpec ─────────│\n  │\u003C─────── Finished ─────────────────│\n  │                                   │\n  │    Encrypted Channel Established  │\n",[117,812,810],{"__ignoreMap":119},[22,814,815,78],{},[47,816,817],{},"Benefits of TLS",[52,819,820,823,826,829],{},[55,821,822],{},"Encrypted communication (privacy)",[55,824,825],{},"Peer authentication (security)",[55,827,828],{},"Protection against eavesdropping",[55,830,831],{},"Man-in-the-middle prevention",[22,833,834],{},[47,835,836],{},"Step 3: Protocol Handshake",[22,838,839],{},"Rippled-specific handshake exchanges capabilities:",[22,841,842,845],{},[47,843,844],{},"Hello Message"," (from initiator):",[110,847,851],{"className":848,"code":849,"language":850,"meta":119,"style":119},"language-protobuf shiki shiki-themes github-dark-high-contrast","message TMHello {\n    required uint32 protoVersion = 1;     \u002F\u002F Protocol version\n    required uint32 protoVersionMin = 2;  \u002F\u002F Minimum supported version\n    required bytes publicKey = 3;          \u002F\u002F Node's public key\n    optional bytes nodePrivate = 4;        \u002F\u002F Proof of key ownership\n    required uint32 ledgerIndex = 5;      \u002F\u002F Current ledger index\n    optional bytes ledgerClosed = 6;      \u002F\u002F Closed ledger hash\n    optional bytes ledgerPrevious = 7;    \u002F\u002F Previous ledger hash\n    optional uint32 closedTime = 8;       \u002F\u002F Ledger close time\n}\n","protobuf",[117,852,853,864,888,908,929,950,971,991,1012,1033],{"__ignoreMap":119},[173,854,855,858,861],{"class":175,"line":176},[173,856,857],{"class":253},"message",[173,859,860],{"class":179}," TMHello",[173,862,863],{"class":193}," {\n",[173,865,866,869,872,875,878,882,885],{"class":175,"line":183},[173,867,868],{"class":253},"    required",[173,870,871],{"class":253}," uint32",[173,873,874],{"class":193}," protoVersion ",[173,876,877],{"class":253},"=",[173,879,881],{"class":880},"sCcAr"," 1",[173,883,884],{"class":193},";     ",[173,886,887],{"class":186},"\u002F\u002F Protocol version\n",[173,889,890,892,894,897,899,902,905],{"class":175,"line":190},[173,891,868],{"class":253},[173,893,871],{"class":253},[173,895,896],{"class":193}," protoVersionMin ",[173,898,877],{"class":253},[173,900,901],{"class":880}," 2",[173,903,904],{"class":193},";  ",[173,906,907],{"class":186},"\u002F\u002F Minimum supported version\n",[173,909,910,912,915,918,920,923,926],{"class":175,"line":197},[173,911,868],{"class":253},[173,913,914],{"class":253}," bytes",[173,916,917],{"class":193}," publicKey ",[173,919,877],{"class":253},[173,921,922],{"class":880}," 3",[173,924,925],{"class":193},";          ",[173,927,928],{"class":186},"\u002F\u002F Node's public key\n",[173,930,931,934,936,939,941,944,947],{"class":175,"line":203},[173,932,933],{"class":253},"    optional",[173,935,914],{"class":253},[173,937,938],{"class":193}," nodePrivate ",[173,940,877],{"class":253},[173,942,943],{"class":880}," 4",[173,945,946],{"class":193},";        ",[173,948,949],{"class":186},"\u002F\u002F Proof of key ownership\n",[173,951,953,955,957,960,962,965,968],{"class":175,"line":952},6,[173,954,868],{"class":253},[173,956,871],{"class":253},[173,958,959],{"class":193}," ledgerIndex ",[173,961,877],{"class":253},[173,963,964],{"class":880}," 5",[173,966,967],{"class":193},";      ",[173,969,970],{"class":186},"\u002F\u002F Current ledger index\n",[173,972,974,976,978,981,983,986,988],{"class":175,"line":973},7,[173,975,933],{"class":253},[173,977,914],{"class":253},[173,979,980],{"class":193}," ledgerClosed ",[173,982,877],{"class":253},[173,984,985],{"class":880}," 6",[173,987,967],{"class":193},[173,989,990],{"class":186},"\u002F\u002F Closed ledger hash\n",[173,992,994,996,998,1001,1003,1006,1009],{"class":175,"line":993},8,[173,995,933],{"class":253},[173,997,914],{"class":253},[173,999,1000],{"class":193}," ledgerPrevious ",[173,1002,877],{"class":253},[173,1004,1005],{"class":880}," 7",[173,1007,1008],{"class":193},";    ",[173,1010,1011],{"class":186},"\u002F\u002F Previous ledger hash\n",[173,1013,1015,1017,1019,1022,1024,1027,1030],{"class":175,"line":1014},9,[173,1016,933],{"class":253},[173,1018,871],{"class":253},[173,1020,1021],{"class":193}," closedTime ",[173,1023,877],{"class":253},[173,1025,1026],{"class":880}," 8",[173,1028,1029],{"class":193},";       ",[173,1031,1032],{"class":186},"\u002F\u002F Ledger close time\n",[173,1034,1036],{"class":175,"line":1035},10,[173,1037,1038],{"class":193},"}\n",[22,1040,1041,1044],{},[47,1042,1043],{},"Response"," (from receiver):",[110,1046,1048],{"className":848,"code":1047,"language":850,"meta":119,"style":119},"\u002F\u002F Same TMHello structure with receiver's information\n",[117,1049,1050],{"__ignoreMap":119},[173,1051,1052],{"class":175,"line":176},[173,1053,1047],{"class":186},[22,1055,1056,78],{},[47,1057,1058],{},"Handshake Validation",[110,1060,1064],{"className":1061,"code":1062,"language":1063,"meta":119,"style":119},"language-cpp shiki shiki-themes github-dark-high-contrast","bool validateHandshake(TMHello const& hello)\n{\n    \u002F\u002F Check protocol version compatibility\n    if (hello.protoVersion \u003C minSupportedVersion)\n        return false;\n    \n    if (hello.protoVersionMin > currentVersion)\n        return false;\n    \n    \u002F\u002F Verify public key\n    if (!isValidPublicKey(hello.publicKey()))\n        return false;\n    \n    \u002F\u002F Verify key ownership proof\n    if (!verifySignature(hello.nodePrivate(), hello.publicKey()))\n        return false;\n    \n    \u002F\u002F Check we're on same network (same genesis ledger)\n    if (!isSameNetwork(hello.ledgerClosed()))\n        return false;\n    \n    return true;\n}\n","cpp",[117,1065,1066,1090,1095,1100,1114,1125,1130,1143,1151,1155,1160,1183,1192,1197,1203,1227,1236,1241,1247,1266,1275,1280,1291],{"__ignoreMap":119},[173,1067,1068,1071,1075,1078,1081,1084,1087],{"class":175,"line":176},[173,1069,1070],{"class":253},"bool",[173,1072,1074],{"class":1073},"sj_SG"," validateHandshake",[173,1076,1077],{"class":193},"(",[173,1079,1080],{"class":179},"TMHello",[173,1082,1083],{"class":253}," const&",[173,1085,1086],{"class":179}," hello",[173,1088,1089],{"class":193},")\n",[173,1091,1092],{"class":175,"line":183},[173,1093,1094],{"class":193},"{\n",[173,1096,1097],{"class":175,"line":190},[173,1098,1099],{"class":186},"    \u002F\u002F Check protocol version compatibility\n",[173,1101,1102,1105,1108,1111],{"class":175,"line":197},[173,1103,1104],{"class":253},"    if",[173,1106,1107],{"class":193}," (hello.protoVersion ",[173,1109,1110],{"class":253},"\u003C",[173,1112,1113],{"class":193}," minSupportedVersion)\n",[173,1115,1116,1119,1122],{"class":175,"line":203},[173,1117,1118],{"class":253},"        return",[173,1120,1121],{"class":880}," false",[173,1123,1124],{"class":193},";\n",[173,1126,1127],{"class":175,"line":952},[173,1128,1129],{"class":193},"    \n",[173,1131,1132,1134,1137,1140],{"class":175,"line":973},[173,1133,1104],{"class":253},[173,1135,1136],{"class":193}," (hello.protoVersionMin ",[173,1138,1139],{"class":253},">",[173,1141,1142],{"class":193}," currentVersion)\n",[173,1144,1145,1147,1149],{"class":175,"line":993},[173,1146,1118],{"class":253},[173,1148,1121],{"class":880},[173,1150,1124],{"class":193},[173,1152,1153],{"class":175,"line":1014},[173,1154,1129],{"class":193},[173,1156,1157],{"class":175,"line":1035},[173,1158,1159],{"class":186},"    \u002F\u002F Verify public key\n",[173,1161,1163,1165,1168,1171,1174,1177,1180],{"class":175,"line":1162},11,[173,1164,1104],{"class":253},[173,1166,1167],{"class":193}," (",[173,1169,1170],{"class":253},"!",[173,1172,1173],{"class":1073},"isValidPublicKey",[173,1175,1176],{"class":193},"(hello.",[173,1178,1179],{"class":1073},"publicKey",[173,1181,1182],{"class":193},"()))\n",[173,1184,1186,1188,1190],{"class":175,"line":1185},12,[173,1187,1118],{"class":253},[173,1189,1121],{"class":880},[173,1191,1124],{"class":193},[173,1193,1195],{"class":175,"line":1194},13,[173,1196,1129],{"class":193},[173,1198,1200],{"class":175,"line":1199},14,[173,1201,1202],{"class":186},"    \u002F\u002F Verify key ownership proof\n",[173,1204,1206,1208,1210,1212,1215,1217,1220,1223,1225],{"class":175,"line":1205},15,[173,1207,1104],{"class":253},[173,1209,1167],{"class":193},[173,1211,1170],{"class":253},[173,1213,1214],{"class":1073},"verifySignature",[173,1216,1176],{"class":193},[173,1218,1219],{"class":1073},"nodePrivate",[173,1221,1222],{"class":193},"(), hello.",[173,1224,1179],{"class":1073},[173,1226,1182],{"class":193},[173,1228,1230,1232,1234],{"class":175,"line":1229},16,[173,1231,1118],{"class":253},[173,1233,1121],{"class":880},[173,1235,1124],{"class":193},[173,1237,1239],{"class":175,"line":1238},17,[173,1240,1129],{"class":193},[173,1242,1244],{"class":175,"line":1243},18,[173,1245,1246],{"class":186},"    \u002F\u002F Check we're on same network (same genesis ledger)\n",[173,1248,1250,1252,1254,1256,1259,1261,1264],{"class":175,"line":1249},19,[173,1251,1104],{"class":253},[173,1253,1167],{"class":193},[173,1255,1170],{"class":253},[173,1257,1258],{"class":1073},"isSameNetwork",[173,1260,1176],{"class":193},[173,1262,1263],{"class":1073},"ledgerClosed",[173,1265,1182],{"class":193},[173,1267,1269,1271,1273],{"class":175,"line":1268},20,[173,1270,1118],{"class":253},[173,1272,1121],{"class":880},[173,1274,1124],{"class":193},[173,1276,1278],{"class":175,"line":1277},21,[173,1279,1129],{"class":193},[173,1281,1283,1286,1289],{"class":175,"line":1282},22,[173,1284,1285],{"class":253},"    return",[173,1287,1288],{"class":880}," true",[173,1290,1124],{"class":193},[173,1292,1294],{"class":175,"line":1293},23,[173,1295,1038],{"class":193},[22,1297,1298,78],{},[47,1299,1300],{},"Compatibility Check",[110,1302,1305],{"className":1303,"code":1304,"language":115},[113],"Node A: version 1.7.0, min 1.5.0\nNode B: version 1.6.0, min 1.4.0\n\nCheck: max(1.5.0, 1.4.0) ≤ min(1.7.0, 1.6.0)\n       1.5.0 ≤ 1.6.0 ✓ Compatible\n\nUse protocol version: 1.6.0 (minimum of max versions)\n",[117,1306,1304],{"__ignoreMap":119},[22,1308,1309],{},[47,1310,1311],{},"Step 4: Connection Acceptance\u002FRejection",[22,1313,1314],{},"After handshake validation:",[22,1316,1317,78],{},[47,1318,1319],{},"If Compatible",[52,1321,1322,1325,1328,1331],{},[55,1323,1324],{},"Connection moves to Active state",[55,1326,1327],{},"Add to peer list",[55,1329,1330],{},"Begin normal message exchange",[55,1332,1333],{},"Log successful connection",[22,1335,1336,78],{},[47,1337,1338],{},"If Incompatible",[52,1340,1341,1344,1347,1350],{},[55,1342,1343],{},"Send rejection message with reason",[55,1345,1346],{},"Close connection gracefully",[55,1348,1349],{},"Log rejection reason",[55,1351,1352],{},"May add to temporary ban list",[22,1354,1355,78],{},[47,1356,1357],{},"Rejection Reasons",[110,1359,1361],{"className":1061,"code":1360,"language":1063,"meta":119,"style":119},"enum DisconnectReason\n{\n    drBadData,           \u002F\u002F Malformed handshake\n    drProtocol,          \u002F\u002F Protocol incompatibility\n    drSaturated,         \u002F\u002F Too many connections\n    drDuplicate,         \u002F\u002F Already connected to this peer\n    drNetworkID,         \u002F\u002F Different network (testnet vs mainnet)\n    drBanned,            \u002F\u002F Peer is banned\n    drSelf,              \u002F\u002F Trying to connect to self\n};\n",[117,1362,1363,1371,1375,1386,1396,1406,1416,1426,1436,1446],{"__ignoreMap":119},[173,1364,1365,1368],{"class":175,"line":176},[173,1366,1367],{"class":253},"enum",[173,1369,1370],{"class":179}," DisconnectReason\n",[173,1372,1373],{"class":175,"line":183},[173,1374,1094],{"class":193},[173,1376,1377,1380,1383],{"class":175,"line":190},[173,1378,1379],{"class":880},"    drBadData",[173,1381,1382],{"class":193},",",[173,1384,1385],{"class":186},"           \u002F\u002F Malformed handshake\n",[173,1387,1388,1391,1393],{"class":175,"line":197},[173,1389,1390],{"class":880},"    drProtocol",[173,1392,1382],{"class":193},[173,1394,1395],{"class":186},"          \u002F\u002F Protocol incompatibility\n",[173,1397,1398,1401,1403],{"class":175,"line":203},[173,1399,1400],{"class":880},"    drSaturated",[173,1402,1382],{"class":193},[173,1404,1405],{"class":186},"         \u002F\u002F Too many connections\n",[173,1407,1408,1411,1413],{"class":175,"line":952},[173,1409,1410],{"class":880},"    drDuplicate",[173,1412,1382],{"class":193},[173,1414,1415],{"class":186},"         \u002F\u002F Already connected to this peer\n",[173,1417,1418,1421,1423],{"class":175,"line":973},[173,1419,1420],{"class":880},"    drNetworkID",[173,1422,1382],{"class":193},[173,1424,1425],{"class":186},"         \u002F\u002F Different network (testnet vs mainnet)\n",[173,1427,1428,1431,1433],{"class":175,"line":993},[173,1429,1430],{"class":880},"    drBanned",[173,1432,1382],{"class":193},[173,1434,1435],{"class":186},"            \u002F\u002F Peer is banned\n",[173,1437,1438,1441,1443],{"class":175,"line":1014},[173,1439,1440],{"class":880},"    drSelf",[173,1442,1382],{"class":193},[173,1444,1445],{"class":186},"              \u002F\u002F Trying to connect to self\n",[173,1447,1448],{"class":175,"line":1035},[173,1449,1450],{"class":193},"};\n",[14,1452],{},[17,1454,1456],{"id":1455},"connection-management","Connection Management",[39,1458,1460],{"id":1459},"connection-limits","Connection Limits",[22,1462,1463],{},"Rippled enforces various connection limits:",[22,1465,1466],{},[47,1467,1468],{},"Per-IP Limits",[110,1470,1472],{"className":1061,"code":1471,"language":1063,"meta":119,"style":119},"\u002F\u002F Maximum connections from single IP\nconstexpr size_t maxPeersPerIP = 2;\n\n\u002F\u002F Prevents single entity from dominating connections\nbool acceptConnection(IPAddress const& ip)\n{\n    auto count = countConnectionsFromIP(ip);\n    return count \u003C maxPeersPerIP;\n}\n",[117,1473,1474,1479,1496,1502,1507,1526,1530,1546,1557],{"__ignoreMap":119},[173,1475,1476],{"class":175,"line":176},[173,1477,1478],{"class":186},"\u002F\u002F Maximum connections from single IP\n",[173,1480,1481,1484,1487,1490,1492,1494],{"class":175,"line":183},[173,1482,1483],{"class":253},"constexpr",[173,1485,1486],{"class":253}," size_t",[173,1488,1489],{"class":193}," maxPeersPerIP ",[173,1491,877],{"class":253},[173,1493,901],{"class":880},[173,1495,1124],{"class":193},[173,1497,1498],{"class":175,"line":190},[173,1499,1501],{"emptyLinePlaceholder":1500},true,"\n",[173,1503,1504],{"class":175,"line":197},[173,1505,1506],{"class":186},"\u002F\u002F Prevents single entity from dominating connections\n",[173,1508,1509,1511,1514,1516,1519,1521,1524],{"class":175,"line":203},[173,1510,1070],{"class":253},[173,1512,1513],{"class":1073}," acceptConnection",[173,1515,1077],{"class":193},[173,1517,1518],{"class":179},"IPAddress",[173,1520,1083],{"class":253},[173,1522,1523],{"class":179}," ip",[173,1525,1089],{"class":193},[173,1527,1528],{"class":175,"line":952},[173,1529,1094],{"class":193},[173,1531,1532,1535,1538,1540,1543],{"class":175,"line":973},[173,1533,1534],{"class":253},"    auto",[173,1536,1537],{"class":193}," count ",[173,1539,877],{"class":253},[173,1541,1542],{"class":1073}," countConnectionsFromIP",[173,1544,1545],{"class":193},"(ip);\n",[173,1547,1548,1550,1552,1554],{"class":175,"line":993},[173,1549,1285],{"class":253},[173,1551,1537],{"class":193},[173,1553,1110],{"class":253},[173,1555,1556],{"class":193}," maxPeersPerIP;\n",[173,1558,1559],{"class":175,"line":1014},[173,1560,1038],{"class":193},[22,1562,1563],{},[47,1564,1565],{},"Total Connection Limits",[22,1567,1568,1569,1571],{},"Based on ",[117,1570,354],{}," configuration:",[110,1573,1576],{"className":1574,"code":1575,"language":115},[113],"tiny:    max 10 connections\nsmall:   max 21 connections\nmedium:  max 40 connections\nlarge:   max 62 connections\nhuge:    max 88 connections\n",[117,1577,1575],{"__ignoreMap":119},[22,1579,1580,1581],{},"Formula: ",[117,1582,1583],{},"target + (target \u002F 2)",[22,1585,1586],{},[47,1587,1588],{},"Fixed Peer Priority",[22,1590,1591],{},"Fixed peers bypass some limits:",[110,1593,1595],{"className":1061,"code":1594,"language":1063,"meta":119,"style":119},"bool shouldAcceptConnection(Peer const& peer)\n{\n    \u002F\u002F Always accept fixed peers\n    if (isFixed(peer))\n        return true;\n    \n    \u002F\u002F Check against limits for regular peers\n    if (activeConnections() >= maxConnections())\n        return false;\n    \n    return true;\n}\n",[117,1596,1597,1616,1620,1625,1637,1645,1649,1654,1675,1683,1687,1695],{"__ignoreMap":119},[173,1598,1599,1601,1604,1606,1609,1611,1614],{"class":175,"line":176},[173,1600,1070],{"class":253},[173,1602,1603],{"class":1073}," shouldAcceptConnection",[173,1605,1077],{"class":193},[173,1607,1608],{"class":179},"Peer",[173,1610,1083],{"class":253},[173,1612,1613],{"class":179}," peer",[173,1615,1089],{"class":193},[173,1617,1618],{"class":175,"line":183},[173,1619,1094],{"class":193},[173,1621,1622],{"class":175,"line":190},[173,1623,1624],{"class":186},"    \u002F\u002F Always accept fixed peers\n",[173,1626,1627,1629,1631,1634],{"class":175,"line":197},[173,1628,1104],{"class":253},[173,1630,1167],{"class":193},[173,1632,1633],{"class":1073},"isFixed",[173,1635,1636],{"class":193},"(peer))\n",[173,1638,1639,1641,1643],{"class":175,"line":203},[173,1640,1118],{"class":253},[173,1642,1288],{"class":880},[173,1644,1124],{"class":193},[173,1646,1647],{"class":175,"line":952},[173,1648,1129],{"class":193},[173,1650,1651],{"class":175,"line":973},[173,1652,1653],{"class":186},"    \u002F\u002F Check against limits for regular peers\n",[173,1655,1656,1658,1660,1663,1666,1669,1672],{"class":175,"line":993},[173,1657,1104],{"class":253},[173,1659,1167],{"class":193},[173,1661,1662],{"class":1073},"activeConnections",[173,1664,1665],{"class":193},"() ",[173,1667,1668],{"class":253},">=",[173,1670,1671],{"class":1073}," maxConnections",[173,1673,1674],{"class":193},"())\n",[173,1676,1677,1679,1681],{"class":175,"line":1014},[173,1678,1118],{"class":253},[173,1680,1121],{"class":880},[173,1682,1124],{"class":193},[173,1684,1685],{"class":175,"line":1035},[173,1686,1129],{"class":193},[173,1688,1689,1691,1693],{"class":175,"line":1162},[173,1690,1285],{"class":253},[173,1692,1288],{"class":880},[173,1694,1124],{"class":193},[173,1696,1697],{"class":175,"line":1185},[173,1698,1038],{"class":193},[39,1700,1702],{"id":1701},"connection-quality-assessment","Connection Quality Assessment",[22,1704,1705],{},"Rippled continuously monitors peer quality:",[22,1707,1708],{},[47,1709,1710],{},"Metrics Tracked",[22,1712,1713,1716],{},[47,1714,1715],{},"Latency",": Response time to ping messages",[110,1718,1720],{"className":1061,"code":1719,"language":1063,"meta":119,"style":119},"\u002F\u002F Ping-pong protocol\nvoid sendPing()\n{\n    auto ping = std::make_shared\u003Cprotocol::TMPing>();\n    ping->set_type(protocol::TMPing::ptPING);\n    ping->set_seq(nextPingSeq_++);\n    ping->set_timestamp(now());\n    \n    send(ping);\n}\n\nvoid onPong(protocol::TMPing const& pong)\n{\n    auto latency = now() - pong.timestamp();\n    updateLatencyMetrics(latency);\n}\n",[117,1721,1722,1727,1738,1742,1772,1791,1807,1822,1826,1834,1838,1842,1864,1868,1894,1902],{"__ignoreMap":119},[173,1723,1724],{"class":175,"line":176},[173,1725,1726],{"class":186},"\u002F\u002F Ping-pong protocol\n",[173,1728,1729,1732,1735],{"class":175,"line":183},[173,1730,1731],{"class":253},"void",[173,1733,1734],{"class":1073}," sendPing",[173,1736,1737],{"class":193},"()\n",[173,1739,1740],{"class":175,"line":190},[173,1741,1094],{"class":193},[173,1743,1744,1746,1749,1751,1754,1757,1760,1762,1764,1766,1769],{"class":175,"line":197},[173,1745,1534],{"class":253},[173,1747,1748],{"class":193}," ping ",[173,1750,877],{"class":253},[173,1752,1753],{"class":179}," std",[173,1755,1756],{"class":193},"::",[173,1758,1759],{"class":1073},"make_shared",[173,1761,1110],{"class":193},[173,1763,273],{"class":179},[173,1765,1756],{"class":193},[173,1767,1768],{"class":179},"TMPing",[173,1770,1771],{"class":193},">();\n",[173,1773,1774,1777,1780,1782,1784,1786,1788],{"class":175,"line":203},[173,1775,1776],{"class":193},"    ping->",[173,1778,1779],{"class":1073},"set_type",[173,1781,1077],{"class":193},[173,1783,273],{"class":179},[173,1785,1756],{"class":193},[173,1787,1768],{"class":179},[173,1789,1790],{"class":193},"::ptPING);\n",[173,1792,1793,1795,1798,1801,1804],{"class":175,"line":952},[173,1794,1776],{"class":193},[173,1796,1797],{"class":1073},"set_seq",[173,1799,1800],{"class":193},"(nextPingSeq_",[173,1802,1803],{"class":253},"++",[173,1805,1806],{"class":193},");\n",[173,1808,1809,1811,1814,1816,1819],{"class":175,"line":973},[173,1810,1776],{"class":193},[173,1812,1813],{"class":1073},"set_timestamp",[173,1815,1077],{"class":193},[173,1817,1818],{"class":1073},"now",[173,1820,1821],{"class":193},"());\n",[173,1823,1824],{"class":175,"line":993},[173,1825,1129],{"class":193},[173,1827,1828,1831],{"class":175,"line":1014},[173,1829,1830],{"class":1073},"    send",[173,1832,1833],{"class":193},"(ping);\n",[173,1835,1836],{"class":175,"line":1035},[173,1837,1038],{"class":193},[173,1839,1840],{"class":175,"line":1162},[173,1841,1501],{"emptyLinePlaceholder":1500},[173,1843,1844,1846,1849,1851,1853,1855,1857,1859,1862],{"class":175,"line":1185},[173,1845,1731],{"class":253},[173,1847,1848],{"class":1073}," onPong",[173,1850,1077],{"class":193},[173,1852,273],{"class":179},[173,1854,1756],{"class":193},[173,1856,1768],{"class":179},[173,1858,1083],{"class":253},[173,1860,1861],{"class":179}," pong",[173,1863,1089],{"class":193},[173,1865,1866],{"class":175,"line":1194},[173,1867,1094],{"class":193},[173,1869,1870,1872,1875,1877,1880,1882,1885,1888,1891],{"class":175,"line":1199},[173,1871,1534],{"class":253},[173,1873,1874],{"class":193}," latency ",[173,1876,877],{"class":253},[173,1878,1879],{"class":1073}," now",[173,1881,1665],{"class":193},[173,1883,1884],{"class":253},"-",[173,1886,1887],{"class":193}," pong.",[173,1889,1890],{"class":1073},"timestamp",[173,1892,1893],{"class":193},"();\n",[173,1895,1896,1899],{"class":175,"line":1205},[173,1897,1898],{"class":1073},"    updateLatencyMetrics",[173,1900,1901],{"class":193},"(latency);\n",[173,1903,1904],{"class":175,"line":1229},[173,1905,1038],{"class":193},[22,1907,1908,1911],{},[47,1909,1910],{},"Message Rate",": Messages per second",[110,1913,1915],{"className":1061,"code":1914,"language":1063,"meta":119,"style":119},"void trackMessageRate()\n{\n    messagesReceived_++;\n    \n    auto elapsed = now() - windowStart_;\n    if (elapsed >= 1s)\n    {\n        messageRate_ = messagesReceived_ \u002F elapsed.count();\n        messagesReceived_ = 0;\n        windowStart_ = now();\n    }\n}\n",[117,1916,1917,1926,1930,1939,1943,1961,1977,1982,2003,2015,2026,2031],{"__ignoreMap":119},[173,1918,1919,1921,1924],{"class":175,"line":176},[173,1920,1731],{"class":253},[173,1922,1923],{"class":1073}," trackMessageRate",[173,1925,1737],{"class":193},[173,1927,1928],{"class":175,"line":183},[173,1929,1094],{"class":193},[173,1931,1932,1935,1937],{"class":175,"line":190},[173,1933,1934],{"class":193},"    messagesReceived_",[173,1936,1803],{"class":253},[173,1938,1124],{"class":193},[173,1940,1941],{"class":175,"line":197},[173,1942,1129],{"class":193},[173,1944,1945,1947,1950,1952,1954,1956,1958],{"class":175,"line":203},[173,1946,1534],{"class":253},[173,1948,1949],{"class":193}," elapsed ",[173,1951,877],{"class":253},[173,1953,1879],{"class":1073},[173,1955,1665],{"class":193},[173,1957,1884],{"class":253},[173,1959,1960],{"class":193}," windowStart_;\n",[173,1962,1963,1965,1968,1970,1972,1975],{"class":175,"line":952},[173,1964,1104],{"class":253},[173,1966,1967],{"class":193}," (elapsed ",[173,1969,1668],{"class":253},[173,1971,881],{"class":880},[173,1973,1974],{"class":253},"s",[173,1976,1089],{"class":193},[173,1978,1979],{"class":175,"line":973},[173,1980,1981],{"class":193},"    {\n",[173,1983,1984,1987,1989,1992,1995,1998,2001],{"class":175,"line":993},[173,1985,1986],{"class":193},"        messageRate_ ",[173,1988,877],{"class":253},[173,1990,1991],{"class":193}," messagesReceived_ ",[173,1993,1994],{"class":253},"\u002F",[173,1996,1997],{"class":193}," elapsed.",[173,1999,2000],{"class":1073},"count",[173,2002,1893],{"class":193},[173,2004,2005,2008,2010,2013],{"class":175,"line":1014},[173,2006,2007],{"class":193},"        messagesReceived_ ",[173,2009,877],{"class":253},[173,2011,2012],{"class":880}," 0",[173,2014,1124],{"class":193},[173,2016,2017,2020,2022,2024],{"class":175,"line":1035},[173,2018,2019],{"class":193},"        windowStart_ ",[173,2021,877],{"class":253},[173,2023,1879],{"class":1073},[173,2025,1893],{"class":193},[173,2027,2028],{"class":175,"line":1162},[173,2029,2030],{"class":193},"    }\n",[173,2032,2033],{"class":175,"line":1185},[173,2034,1038],{"class":193},[22,2036,2037,2040],{},[47,2038,2039],{},"Error Rate",": Protocol errors, malformed messages",[110,2042,2044],{"className":1061,"code":2043,"language":1063,"meta":119,"style":119},"void onProtocolError()\n{\n    errorCount_++;\n    \n    if (errorCount_ > maxErrorThreshold)\n    {\n        \u002F\u002F Disconnect problematic peer\n        disconnect(drBadData);\n    }\n}\n",[117,2045,2046,2055,2059,2068,2072,2084,2088,2093,2101,2105],{"__ignoreMap":119},[173,2047,2048,2050,2053],{"class":175,"line":176},[173,2049,1731],{"class":253},[173,2051,2052],{"class":1073}," onProtocolError",[173,2054,1737],{"class":193},[173,2056,2057],{"class":175,"line":183},[173,2058,1094],{"class":193},[173,2060,2061,2064,2066],{"class":175,"line":190},[173,2062,2063],{"class":193},"    errorCount_",[173,2065,1803],{"class":253},[173,2067,1124],{"class":193},[173,2069,2070],{"class":175,"line":197},[173,2071,1129],{"class":193},[173,2073,2074,2076,2079,2081],{"class":175,"line":203},[173,2075,1104],{"class":253},[173,2077,2078],{"class":193}," (errorCount_ ",[173,2080,1139],{"class":253},[173,2082,2083],{"class":193}," maxErrorThreshold)\n",[173,2085,2086],{"class":175,"line":952},[173,2087,1981],{"class":193},[173,2089,2090],{"class":175,"line":973},[173,2091,2092],{"class":186},"        \u002F\u002F Disconnect problematic peer\n",[173,2094,2095,2098],{"class":175,"line":993},[173,2096,2097],{"class":1073},"        disconnect",[173,2099,2100],{"class":193},"(drBadData);\n",[173,2102,2103],{"class":175,"line":1014},[173,2104,2030],{"class":193},[173,2106,2107],{"class":175,"line":1035},[173,2108,1038],{"class":193},[22,2110,2111,2114],{},[47,2112,2113],{},"Uptime",": Connection duration",[110,2116,2118],{"className":1061,"code":2117,"language":1063,"meta":119,"style":119},"auto uptime = now() - connectionTime_;\n",[117,2119,2120],{"__ignoreMap":119},[173,2121,2122,2125,2128,2130,2132,2134,2136],{"class":175,"line":176},[173,2123,2124],{"class":253},"auto",[173,2126,2127],{"class":193}," uptime ",[173,2129,877],{"class":253},[173,2131,1879],{"class":1073},[173,2133,1665],{"class":193},[173,2135,1884],{"class":253},[173,2137,2138],{"class":193}," connectionTime_;\n",[22,2140,2141],{},[47,2142,2143],{},"Quality Scoring",[22,2145,2146],{},"Peers are scored based on metrics:",[110,2148,2150],{"className":1061,"code":2149,"language":1063,"meta":119,"style":119},"int calculatePeerScore(Peer const& peer)\n{\n    int score = 100;  \u002F\u002F Start with perfect score\n    \n    \u002F\u002F Penalize high latency\n    if (peer.latency() > 500ms)\n        score -= 20;\n    else if (peer.latency() > 200ms)\n        score -= 10;\n    \n    \u002F\u002F Penalize low message rate (inactive peer)\n    if (peer.messageRate() \u003C 0.1)\n        score -= 15;\n    \n    \u002F\u002F Penalize errors\n    score -= peer.errorCount() * 5;\n    \n    \u002F\u002F Reward long uptime\n    if (peer.uptime() > 24h)\n        score += 10;\n    \n    return std::max(0, std::min(100, score));\n}\n",[117,2151,2152,2170,2174,2193,2197,2202,2224,2237,2260,2271,2275,2280,2298,2309,2313,2318,2340,2344,2349,2370,2381,2385,2420],{"__ignoreMap":119},[173,2153,2154,2157,2160,2162,2164,2166,2168],{"class":175,"line":176},[173,2155,2156],{"class":253},"int",[173,2158,2159],{"class":1073}," calculatePeerScore",[173,2161,1077],{"class":193},[173,2163,1608],{"class":179},[173,2165,1083],{"class":253},[173,2167,1613],{"class":179},[173,2169,1089],{"class":193},[173,2171,2172],{"class":175,"line":183},[173,2173,1094],{"class":193},[173,2175,2176,2179,2182,2184,2187,2190],{"class":175,"line":190},[173,2177,2178],{"class":253},"    int",[173,2180,2181],{"class":193}," score ",[173,2183,877],{"class":253},[173,2185,2186],{"class":880}," 100",[173,2188,2189],{"class":193},";",[173,2191,2192],{"class":186},"  \u002F\u002F Start with perfect score\n",[173,2194,2195],{"class":175,"line":197},[173,2196,1129],{"class":193},[173,2198,2199],{"class":175,"line":203},[173,2200,2201],{"class":186},"    \u002F\u002F Penalize high latency\n",[173,2203,2204,2206,2209,2212,2214,2216,2219,2222],{"class":175,"line":952},[173,2205,1104],{"class":253},[173,2207,2208],{"class":193}," (peer.",[173,2210,2211],{"class":1073},"latency",[173,2213,1665],{"class":193},[173,2215,1139],{"class":253},[173,2217,2218],{"class":880}," 500",[173,2220,2221],{"class":253},"ms",[173,2223,1089],{"class":193},[173,2225,2226,2229,2232,2235],{"class":175,"line":973},[173,2227,2228],{"class":193},"        score ",[173,2230,2231],{"class":253},"-=",[173,2233,2234],{"class":880}," 20",[173,2236,1124],{"class":193},[173,2238,2239,2242,2245,2247,2249,2251,2253,2256,2258],{"class":175,"line":993},[173,2240,2241],{"class":253},"    else",[173,2243,2244],{"class":253}," if",[173,2246,2208],{"class":193},[173,2248,2211],{"class":1073},[173,2250,1665],{"class":193},[173,2252,1139],{"class":253},[173,2254,2255],{"class":880}," 200",[173,2257,2221],{"class":253},[173,2259,1089],{"class":193},[173,2261,2262,2264,2266,2269],{"class":175,"line":1014},[173,2263,2228],{"class":193},[173,2265,2231],{"class":253},[173,2267,2268],{"class":880}," 10",[173,2270,1124],{"class":193},[173,2272,2273],{"class":175,"line":1035},[173,2274,1129],{"class":193},[173,2276,2277],{"class":175,"line":1162},[173,2278,2279],{"class":186},"    \u002F\u002F Penalize low message rate (inactive peer)\n",[173,2281,2282,2284,2286,2289,2291,2293,2296],{"class":175,"line":1185},[173,2283,1104],{"class":253},[173,2285,2208],{"class":193},[173,2287,2288],{"class":1073},"messageRate",[173,2290,1665],{"class":193},[173,2292,1110],{"class":253},[173,2294,2295],{"class":880}," 0.1",[173,2297,1089],{"class":193},[173,2299,2300,2302,2304,2307],{"class":175,"line":1194},[173,2301,2228],{"class":193},[173,2303,2231],{"class":253},[173,2305,2306],{"class":880}," 15",[173,2308,1124],{"class":193},[173,2310,2311],{"class":175,"line":1199},[173,2312,1129],{"class":193},[173,2314,2315],{"class":175,"line":1205},[173,2316,2317],{"class":186},"    \u002F\u002F Penalize errors\n",[173,2319,2320,2323,2325,2328,2331,2333,2336,2338],{"class":175,"line":1229},[173,2321,2322],{"class":193},"    score ",[173,2324,2231],{"class":253},[173,2326,2327],{"class":193}," peer.",[173,2329,2330],{"class":1073},"errorCount",[173,2332,1665],{"class":193},[173,2334,2335],{"class":253},"*",[173,2337,964],{"class":880},[173,2339,1124],{"class":193},[173,2341,2342],{"class":175,"line":1238},[173,2343,1129],{"class":193},[173,2345,2346],{"class":175,"line":1243},[173,2347,2348],{"class":186},"    \u002F\u002F Reward long uptime\n",[173,2350,2351,2353,2355,2358,2360,2362,2365,2368],{"class":175,"line":1249},[173,2352,1104],{"class":253},[173,2354,2208],{"class":193},[173,2356,2357],{"class":1073},"uptime",[173,2359,1665],{"class":193},[173,2361,1139],{"class":253},[173,2363,2364],{"class":880}," 24",[173,2366,2367],{"class":253},"h",[173,2369,1089],{"class":193},[173,2371,2372,2374,2377,2379],{"class":175,"line":1268},[173,2373,2228],{"class":193},[173,2375,2376],{"class":253},"+=",[173,2378,2268],{"class":880},[173,2380,1124],{"class":193},[173,2382,2383],{"class":175,"line":1277},[173,2384,1129],{"class":193},[173,2386,2387,2389,2391,2393,2396,2398,2401,2404,2407,2409,2412,2414,2417],{"class":175,"line":1282},[173,2388,1285],{"class":253},[173,2390,1753],{"class":179},[173,2392,1756],{"class":193},[173,2394,2395],{"class":1073},"max",[173,2397,1077],{"class":193},[173,2399,2400],{"class":880},"0",[173,2402,2403],{"class":193},", ",[173,2405,2406],{"class":179},"std",[173,2408,1756],{"class":193},[173,2410,2411],{"class":1073},"min",[173,2413,1077],{"class":193},[173,2415,2416],{"class":880},"100",[173,2418,2419],{"class":193},", score));\n",[173,2421,2422],{"class":175,"line":1293},[173,2423,1038],{"class":193},[22,2425,2426,78],{},[47,2427,2428],{},"Score Usage",[52,2430,2431,2434,2437],{},[55,2432,2433],{},"Low-scoring peers may be disconnected",[55,2435,2436],{},"High-scoring peers prioritized for reconnection",[55,2438,2439],{},"Informs peer selection decisions",[39,2441,2443],{"id":2442},"connection-pruning","Connection Pruning",[22,2445,2446],{},"When connection limits are reached, low-quality peers are pruned:",[110,2448,2450],{"className":1061,"code":2449,"language":1063,"meta":119,"style":119},"void pruneConnections()\n{\n    if (activeConnections() \u003C= targetConnections())\n        return;\n    \n    \u002F\u002F Sort peers by score (lowest first)\n    auto peers = getAllPeers();\n    std::sort(peers.begin(), peers.end(),\n        [](auto const& a, auto const& b)\n        {\n            return a->score() \u003C b->score();\n        });\n    \n    \u002F\u002F Disconnect lowest-scoring non-fixed peers\n    for (auto& peer : peers)\n    {\n        if (isFixed(peer))\n            continue;  \u002F\u002F Never disconnect fixed peers\n        \n        peer->disconnect(drSaturated);\n        \n        if (activeConnections() \u003C= targetConnections())\n            break;\n    }\n}\n",[117,2451,2452,2461,2465,2483,2489,2493,2498,2512,2537,2560,2565,2587,2592,2596,2601,2614,2618,2629,2639,2644,2655,2659,2675,2682,2687],{"__ignoreMap":119},[173,2453,2454,2456,2459],{"class":175,"line":176},[173,2455,1731],{"class":253},[173,2457,2458],{"class":1073}," pruneConnections",[173,2460,1737],{"class":193},[173,2462,2463],{"class":175,"line":183},[173,2464,1094],{"class":193},[173,2466,2467,2469,2471,2473,2475,2478,2481],{"class":175,"line":190},[173,2468,1104],{"class":253},[173,2470,1167],{"class":193},[173,2472,1662],{"class":1073},[173,2474,1665],{"class":193},[173,2476,2477],{"class":253},"\u003C=",[173,2479,2480],{"class":1073}," targetConnections",[173,2482,1674],{"class":193},[173,2484,2485,2487],{"class":175,"line":197},[173,2486,1118],{"class":253},[173,2488,1124],{"class":193},[173,2490,2491],{"class":175,"line":203},[173,2492,1129],{"class":193},[173,2494,2495],{"class":175,"line":952},[173,2496,2497],{"class":186},"    \u002F\u002F Sort peers by score (lowest first)\n",[173,2499,2500,2502,2505,2507,2510],{"class":175,"line":973},[173,2501,1534],{"class":253},[173,2503,2504],{"class":193}," peers ",[173,2506,877],{"class":253},[173,2508,2509],{"class":1073}," getAllPeers",[173,2511,1893],{"class":193},[173,2513,2514,2517,2519,2522,2525,2528,2531,2534],{"class":175,"line":993},[173,2515,2516],{"class":179},"    std",[173,2518,1756],{"class":193},[173,2520,2521],{"class":1073},"sort",[173,2523,2524],{"class":193},"(peers.",[173,2526,2527],{"class":1073},"begin",[173,2529,2530],{"class":193},"(), peers.",[173,2532,2533],{"class":1073},"end",[173,2535,2536],{"class":193},"(),\n",[173,2538,2539,2542,2544,2546,2549,2551,2553,2555,2558],{"class":175,"line":1014},[173,2540,2541],{"class":193},"        [](",[173,2543,2124],{"class":253},[173,2545,1083],{"class":253},[173,2547,2548],{"class":179}," a",[173,2550,2403],{"class":193},[173,2552,2124],{"class":253},[173,2554,1083],{"class":253},[173,2556,2557],{"class":179}," b",[173,2559,1089],{"class":193},[173,2561,2562],{"class":175,"line":1035},[173,2563,2564],{"class":193},"        {\n",[173,2566,2567,2570,2573,2576,2578,2580,2583,2585],{"class":175,"line":1162},[173,2568,2569],{"class":253},"            return",[173,2571,2572],{"class":193}," a->",[173,2574,2575],{"class":1073},"score",[173,2577,1665],{"class":193},[173,2579,1110],{"class":253},[173,2581,2582],{"class":193}," b->",[173,2584,2575],{"class":1073},[173,2586,1893],{"class":193},[173,2588,2589],{"class":175,"line":1185},[173,2590,2591],{"class":193},"        });\n",[173,2593,2594],{"class":175,"line":1194},[173,2595,1129],{"class":193},[173,2597,2598],{"class":175,"line":1199},[173,2599,2600],{"class":186},"    \u002F\u002F Disconnect lowest-scoring non-fixed peers\n",[173,2602,2603,2606,2608,2611],{"class":175,"line":1205},[173,2604,2605],{"class":253},"    for",[173,2607,1167],{"class":193},[173,2609,2610],{"class":253},"auto&",[173,2612,2613],{"class":193}," peer : peers)\n",[173,2615,2616],{"class":175,"line":1229},[173,2617,1981],{"class":193},[173,2619,2620,2623,2625,2627],{"class":175,"line":1238},[173,2621,2622],{"class":253},"        if",[173,2624,1167],{"class":193},[173,2626,1633],{"class":1073},[173,2628,1636],{"class":193},[173,2630,2631,2634,2636],{"class":175,"line":1243},[173,2632,2633],{"class":253},"            continue",[173,2635,2189],{"class":193},[173,2637,2638],{"class":186},"  \u002F\u002F Never disconnect fixed peers\n",[173,2640,2641],{"class":175,"line":1249},[173,2642,2643],{"class":193},"        \n",[173,2645,2646,2649,2652],{"class":175,"line":1268},[173,2647,2648],{"class":193},"        peer->",[173,2650,2651],{"class":1073},"disconnect",[173,2653,2654],{"class":193},"(drSaturated);\n",[173,2656,2657],{"class":175,"line":1277},[173,2658,2643],{"class":193},[173,2660,2661,2663,2665,2667,2669,2671,2673],{"class":175,"line":1282},[173,2662,2622],{"class":253},[173,2664,1167],{"class":193},[173,2666,1662],{"class":1073},[173,2668,1665],{"class":193},[173,2670,2477],{"class":253},[173,2672,2480],{"class":1073},[173,2674,1674],{"class":193},[173,2676,2677,2680],{"class":175,"line":1293},[173,2678,2679],{"class":253},"            break",[173,2681,1124],{"class":193},[173,2683,2685],{"class":175,"line":2684},24,[173,2686,2030],{"class":193},[173,2688,2690],{"class":175,"line":2689},25,[173,2691,1038],{"class":193},[39,2693,2695],{"id":2694},"reconnection-logic","Reconnection Logic",[22,2697,2698],{},"After disconnection, Rippled may attempt to reconnect:",[22,2700,2701,78],{},[47,2702,2703],{},"Exponential Backoff",[110,2705,2707],{"className":1061,"code":2706,"language":1063,"meta":119,"style":119},"Duration calculateReconnectDelay(int attempts)\n{\n    \u002F\u002F Exponential backoff with jitter\n    auto delay = minDelay * std::pow(2, attempts);\n    delay = std::min(delay, maxDelay);\n    \n    \u002F\u002F Add random jitter (±25%)\n    auto jitter = delay * (0.75 + random() * 0.5);\n    \n    return jitter;\n}\n\n\u002F\u002F Example progression:\n\u002F\u002F Attempt 1: ~5 seconds\n\u002F\u002F Attempt 2: ~10 seconds\n\u002F\u002F Attempt 3: ~20 seconds\n\u002F\u002F Attempt 4: ~40 seconds\n\u002F\u002F Attempt 5+: ~60 seconds (capped)\n",[117,2708,2709,2726,2730,2735,2769,2785,2789,2794,2827,2831,2838,2842,2846,2851,2856,2861,2866,2871],{"__ignoreMap":119},[173,2710,2711,2714,2717,2719,2721,2724],{"class":175,"line":176},[173,2712,2713],{"class":179},"Duration",[173,2715,2716],{"class":1073}," calculateReconnectDelay",[173,2718,1077],{"class":193},[173,2720,2156],{"class":253},[173,2722,2723],{"class":179}," attempts",[173,2725,1089],{"class":193},[173,2727,2728],{"class":175,"line":183},[173,2729,1094],{"class":193},[173,2731,2732],{"class":175,"line":190},[173,2733,2734],{"class":186},"    \u002F\u002F Exponential backoff with jitter\n",[173,2736,2737,2739,2742,2744,2747,2750,2752,2754,2757,2759,2762,2764,2767],{"class":175,"line":197},[173,2738,1534],{"class":253},[173,2740,2741],{"class":193}," delay ",[173,2743,877],{"class":253},[173,2745,2746],{"class":179}," minDelay",[173,2748,2749],{"class":253}," *",[173,2751,1753],{"class":179},[173,2753,1756],{"class":193},[173,2755,2756],{"class":1073},"pow",[173,2758,1077],{"class":193},[173,2760,2761],{"class":880},"2",[173,2763,2403],{"class":193},[173,2765,2766],{"class":179},"attempts",[173,2768,1806],{"class":193},[173,2770,2771,2774,2776,2778,2780,2782],{"class":175,"line":203},[173,2772,2773],{"class":193},"    delay ",[173,2775,877],{"class":253},[173,2777,1753],{"class":179},[173,2779,1756],{"class":193},[173,2781,2411],{"class":1073},[173,2783,2784],{"class":193},"(delay, maxDelay);\n",[173,2786,2787],{"class":175,"line":952},[173,2788,1129],{"class":193},[173,2790,2791],{"class":175,"line":973},[173,2792,2793],{"class":186},"    \u002F\u002F Add random jitter (±25%)\n",[173,2795,2796,2798,2801,2803,2805,2807,2809,2812,2815,2818,2820,2822,2825],{"class":175,"line":993},[173,2797,1534],{"class":253},[173,2799,2800],{"class":193}," jitter ",[173,2802,877],{"class":253},[173,2804,2741],{"class":193},[173,2806,2335],{"class":253},[173,2808,1167],{"class":193},[173,2810,2811],{"class":880},"0.75",[173,2813,2814],{"class":253}," +",[173,2816,2817],{"class":1073}," random",[173,2819,1665],{"class":193},[173,2821,2335],{"class":253},[173,2823,2824],{"class":880}," 0.5",[173,2826,1806],{"class":193},[173,2828,2829],{"class":175,"line":1014},[173,2830,1129],{"class":193},[173,2832,2833,2835],{"class":175,"line":1035},[173,2834,1285],{"class":253},[173,2836,2837],{"class":193}," jitter;\n",[173,2839,2840],{"class":175,"line":1162},[173,2841,1038],{"class":193},[173,2843,2844],{"class":175,"line":1185},[173,2845,1501],{"emptyLinePlaceholder":1500},[173,2847,2848],{"class":175,"line":1194},[173,2849,2850],{"class":186},"\u002F\u002F Example progression:\n",[173,2852,2853],{"class":175,"line":1199},[173,2854,2855],{"class":186},"\u002F\u002F Attempt 1: ~5 seconds\n",[173,2857,2858],{"class":175,"line":1205},[173,2859,2860],{"class":186},"\u002F\u002F Attempt 2: ~10 seconds\n",[173,2862,2863],{"class":175,"line":1229},[173,2864,2865],{"class":186},"\u002F\u002F Attempt 3: ~20 seconds\n",[173,2867,2868],{"class":175,"line":1238},[173,2869,2870],{"class":186},"\u002F\u002F Attempt 4: ~40 seconds\n",[173,2872,2873],{"class":175,"line":1243},[173,2874,2875],{"class":186},"\u002F\u002F Attempt 5+: ~60 seconds (capped)\n",[22,2877,2878,78],{},[47,2879,1588],{},[110,2881,2883],{"className":1061,"code":2882,"language":1063,"meta":119,"style":119},"void scheduleReconnect(Peer const& peer)\n{\n    Duration delay;\n    \n    if (isFixed(peer))\n    {\n        \u002F\u002F Aggressive reconnection for fixed peers\n        delay = 5s;\n    }\n    else\n    {\n        \u002F\u002F Exponential backoff for regular peers\n        delay = calculateReconnectDelay(peer.reconnectAttempts());\n    }\n    \n    scheduleJob(delay, [this, peer]()\n    {\n        attemptConnection(peer.address());\n    });\n}\n",[117,2884,2885,2902,2906,2914,2918,2928,2932,2937,2950,2954,2959,2963,2968,2984,2988,2992,3011,3015,3027,3032],{"__ignoreMap":119},[173,2886,2887,2889,2892,2894,2896,2898,2900],{"class":175,"line":176},[173,2888,1731],{"class":253},[173,2890,2891],{"class":1073}," scheduleReconnect",[173,2893,1077],{"class":193},[173,2895,1608],{"class":179},[173,2897,1083],{"class":253},[173,2899,1613],{"class":179},[173,2901,1089],{"class":193},[173,2903,2904],{"class":175,"line":183},[173,2905,1094],{"class":193},[173,2907,2908,2911],{"class":175,"line":190},[173,2909,2910],{"class":179},"    Duration",[173,2912,2913],{"class":193}," delay;\n",[173,2915,2916],{"class":175,"line":197},[173,2917,1129],{"class":193},[173,2919,2920,2922,2924,2926],{"class":175,"line":203},[173,2921,1104],{"class":253},[173,2923,1167],{"class":193},[173,2925,1633],{"class":1073},[173,2927,1636],{"class":193},[173,2929,2930],{"class":175,"line":952},[173,2931,1981],{"class":193},[173,2933,2934],{"class":175,"line":973},[173,2935,2936],{"class":186},"        \u002F\u002F Aggressive reconnection for fixed peers\n",[173,2938,2939,2942,2944,2946,2948],{"class":175,"line":993},[173,2940,2941],{"class":193},"        delay ",[173,2943,877],{"class":253},[173,2945,964],{"class":880},[173,2947,1974],{"class":253},[173,2949,1124],{"class":193},[173,2951,2952],{"class":175,"line":1014},[173,2953,2030],{"class":193},[173,2955,2956],{"class":175,"line":1035},[173,2957,2958],{"class":253},"    else\n",[173,2960,2961],{"class":175,"line":1162},[173,2962,1981],{"class":193},[173,2964,2965],{"class":175,"line":1185},[173,2966,2967],{"class":186},"        \u002F\u002F Exponential backoff for regular peers\n",[173,2969,2970,2972,2974,2976,2979,2982],{"class":175,"line":1194},[173,2971,2941],{"class":193},[173,2973,877],{"class":253},[173,2975,2716],{"class":1073},[173,2977,2978],{"class":193},"(peer.",[173,2980,2981],{"class":1073},"reconnectAttempts",[173,2983,1821],{"class":193},[173,2985,2986],{"class":175,"line":1199},[173,2987,2030],{"class":193},[173,2989,2990],{"class":175,"line":1205},[173,2991,1129],{"class":193},[173,2993,2994,2997,3000,3003,3005,3008],{"class":175,"line":1229},[173,2995,2996],{"class":1073},"    scheduleJob",[173,2998,2999],{"class":193},"(delay, [",[173,3001,3002],{"class":880},"this",[173,3004,2403],{"class":193},[173,3006,3007],{"class":179},"peer",[173,3009,3010],{"class":193},"]()\n",[173,3012,3013],{"class":175,"line":1238},[173,3014,1981],{"class":193},[173,3016,3017,3020,3022,3025],{"class":175,"line":1243},[173,3018,3019],{"class":1073},"        attemptConnection",[173,3021,2978],{"class":193},[173,3023,3024],{"class":1073},"address",[173,3026,1821],{"class":193},[173,3028,3029],{"class":175,"line":1249},[173,3030,3031],{"class":193},"    });\n",[173,3033,3034],{"class":175,"line":1268},[173,3035,1038],{"class":193},[14,3037],{},[17,3039,3041],{"id":3040},"message-routing-and-broadcasting","Message Routing and Broadcasting",[39,3043,3045],{"id":3044},"message-types","Message Types",[22,3047,3048],{},"Different message types require different routing strategies:",[22,3050,3051],{},[47,3052,3053],{},"Critical Messages (Broadcast to All)",[22,3055,3056,1167,3059,355],{},[47,3057,3058],{},"Validations",[117,3060,3061],{},"tmVALIDATION",[52,3063,3064,3067,3070],{},[55,3065,3066],{},"Must reach all validators",[55,3068,3069],{},"Broadcast to all peers immediately",[55,3071,3072],{},"Critical for consensus",[22,3074,3075,1167,3078,355],{},[47,3076,3077],{},"Consensus Proposals",[117,3079,3080],{},"tmPROPOSE_LEDGER",[52,3082,3083,3085,3088],{},[55,3084,3066],{},[55,3086,3087],{},"Time-sensitive",[55,3089,3090],{},"Broadcast widely",[22,3092,3093,78],{},[47,3094,3095],{},"Broadcast Pattern",[110,3097,3099],{"className":1061,"code":3098,"language":1063,"meta":119,"style":119},"void broadcastCritical(std::shared_ptr\u003CMessage> const& msg)\n{\n    for (auto& peer : getAllPeers())\n    {\n        \u002F\u002F Send to everyone\n        peer->send(msg);\n    }\n}\n",[117,3100,3101,3133,3137,3153,3157,3162,3172,3176],{"__ignoreMap":119},[173,3102,3103,3105,3108,3110,3112,3114,3117,3119,3122,3125,3128,3131],{"class":175,"line":176},[173,3104,1731],{"class":253},[173,3106,3107],{"class":1073}," broadcastCritical",[173,3109,1077],{"class":193},[173,3111,2406],{"class":179},[173,3113,1756],{"class":193},[173,3115,3116],{"class":179},"shared_ptr",[173,3118,1110],{"class":193},[173,3120,3121],{"class":179},"Message",[173,3123,3124],{"class":193},"> ",[173,3126,3127],{"class":253},"const&",[173,3129,3130],{"class":179}," msg",[173,3132,1089],{"class":193},[173,3134,3135],{"class":175,"line":183},[173,3136,1094],{"class":193},[173,3138,3139,3141,3143,3145,3148,3151],{"class":175,"line":190},[173,3140,2605],{"class":253},[173,3142,1167],{"class":193},[173,3144,2610],{"class":253},[173,3146,3147],{"class":193}," peer : ",[173,3149,3150],{"class":1073},"getAllPeers",[173,3152,1674],{"class":193},[173,3154,3155],{"class":175,"line":197},[173,3156,1981],{"class":193},[173,3158,3159],{"class":175,"line":203},[173,3160,3161],{"class":186},"        \u002F\u002F Send to everyone\n",[173,3163,3164,3166,3169],{"class":175,"line":952},[173,3165,2648],{"class":193},[173,3167,3168],{"class":1073},"send",[173,3170,3171],{"class":193},"(msg);\n",[173,3173,3174],{"class":175,"line":973},[173,3175,2030],{"class":193},[173,3177,3178],{"class":175,"line":993},[173,3179,1038],{"class":193},[22,3181,3182],{},[47,3183,3184],{},"Transactions (Selective Relay)",[22,3186,3187,1167,3190,355],{},[47,3188,3189],{},"Transaction Messages",[117,3191,3192],{},"tmTRANSACTION",[52,3194,3195,3198,3201],{},[55,3196,3197],{},"Should reach all nodes eventually",[55,3199,3200],{},"Don't need immediate broadcast to all",[55,3202,3203],{},"Use intelligent relay",[22,3205,3206,78],{},[47,3207,3208],{},"Relay Logic",[110,3210,3212],{"className":1061,"code":3211,"language":1063,"meta":119,"style":119},"void relayTransaction(\n    std::shared_ptr\u003CMessage> const& msg,\n    Peer* source)\n{\n    for (auto& peer : getAllPeers())\n    {\n        \u002F\u002F Don't echo back to source\n        if (peer.get() == source)\n            continue;\n        \n        \u002F\u002F Check if peer likely already has it\n        if (peerLikelyHas(peer, msg))\n            continue;\n        \n        \u002F\u002F Send to peer\n        peer->send(msg);\n    }\n}\n",[117,3213,3214,3224,3245,3257,3261,3275,3279,3284,3301,3307,3311,3316,3328,3334,3338,3343,3351,3355],{"__ignoreMap":119},[173,3215,3216,3218,3221],{"class":175,"line":176},[173,3217,1731],{"class":253},[173,3219,3220],{"class":1073}," relayTransaction",[173,3222,3223],{"class":193},"(\n",[173,3225,3226,3228,3230,3232,3234,3236,3238,3240,3242],{"class":175,"line":183},[173,3227,2516],{"class":179},[173,3229,1756],{"class":193},[173,3231,3116],{"class":179},[173,3233,1110],{"class":193},[173,3235,3121],{"class":179},[173,3237,3124],{"class":193},[173,3239,3127],{"class":253},[173,3241,3130],{"class":179},[173,3243,3244],{"class":193},",\n",[173,3246,3247,3250,3252,3255],{"class":175,"line":190},[173,3248,3249],{"class":179},"    Peer",[173,3251,2335],{"class":253},[173,3253,3254],{"class":179}," source",[173,3256,1089],{"class":193},[173,3258,3259],{"class":175,"line":197},[173,3260,1094],{"class":193},[173,3262,3263,3265,3267,3269,3271,3273],{"class":175,"line":203},[173,3264,2605],{"class":253},[173,3266,1167],{"class":193},[173,3268,2610],{"class":253},[173,3270,3147],{"class":193},[173,3272,3150],{"class":1073},[173,3274,1674],{"class":193},[173,3276,3277],{"class":175,"line":952},[173,3278,1981],{"class":193},[173,3280,3281],{"class":175,"line":973},[173,3282,3283],{"class":186},"        \u002F\u002F Don't echo back to source\n",[173,3285,3286,3288,3290,3293,3295,3298],{"class":175,"line":993},[173,3287,2622],{"class":253},[173,3289,2208],{"class":193},[173,3291,3292],{"class":1073},"get",[173,3294,1665],{"class":193},[173,3296,3297],{"class":253},"==",[173,3299,3300],{"class":193}," source)\n",[173,3302,3303,3305],{"class":175,"line":1014},[173,3304,2633],{"class":253},[173,3306,1124],{"class":193},[173,3308,3309],{"class":175,"line":1035},[173,3310,2643],{"class":193},[173,3312,3313],{"class":175,"line":1162},[173,3314,3315],{"class":186},"        \u002F\u002F Check if peer likely already has it\n",[173,3317,3318,3320,3322,3325],{"class":175,"line":1185},[173,3319,2622],{"class":253},[173,3321,1167],{"class":193},[173,3323,3324],{"class":1073},"peerLikelyHas",[173,3326,3327],{"class":193},"(peer, msg))\n",[173,3329,3330,3332],{"class":175,"line":1194},[173,3331,2633],{"class":253},[173,3333,1124],{"class":193},[173,3335,3336],{"class":175,"line":1199},[173,3337,2643],{"class":193},[173,3339,3340],{"class":175,"line":1205},[173,3341,3342],{"class":186},"        \u002F\u002F Send to peer\n",[173,3344,3345,3347,3349],{"class":175,"line":1229},[173,3346,2648],{"class":193},[173,3348,3168],{"class":1073},[173,3350,3171],{"class":193},[173,3352,3353],{"class":175,"line":1238},[173,3354,2030],{"class":193},[173,3356,3357],{"class":175,"line":1243},[173,3358,1038],{"class":193},[22,3360,3361],{},[47,3362,3363],{},"Request\u002FResponse (Unicast)",[22,3365,3366,1167,3369,355],{},[47,3367,3368],{},"Ledger Data Requests",[117,3370,3371],{},"tmGET_LEDGER",[52,3373,3374,3377,3380],{},[55,3375,3376],{},"Directed to specific peer",[55,3378,3379],{},"Response goes back to requester",[55,3381,3382],{},"No broadcasting needed",[22,3384,3385,78],{},[47,3386,3387],{},"Unicast Pattern",[110,3389,3391],{"className":1061,"code":3390,"language":1063,"meta":119,"style":119},"void requestLedgerData(\n    LedgerHash const& hash,\n    Peer* peer)\n{\n    auto request = makeGetLedgerMessage(hash);\n    peer->send(request);  \u002F\u002F Send only to this peer\n}\n",[117,3392,3393,3402,3414,3424,3428,3443,3456],{"__ignoreMap":119},[173,3394,3395,3397,3400],{"class":175,"line":176},[173,3396,1731],{"class":253},[173,3398,3399],{"class":1073}," requestLedgerData",[173,3401,3223],{"class":193},[173,3403,3404,3407,3409,3412],{"class":175,"line":183},[173,3405,3406],{"class":179},"    LedgerHash",[173,3408,1083],{"class":253},[173,3410,3411],{"class":179}," hash",[173,3413,3244],{"class":193},[173,3415,3416,3418,3420,3422],{"class":175,"line":190},[173,3417,3249],{"class":179},[173,3419,2335],{"class":253},[173,3421,1613],{"class":179},[173,3423,1089],{"class":193},[173,3425,3426],{"class":175,"line":197},[173,3427,1094],{"class":193},[173,3429,3430,3432,3435,3437,3440],{"class":175,"line":203},[173,3431,1534],{"class":253},[173,3433,3434],{"class":193}," request ",[173,3436,877],{"class":253},[173,3438,3439],{"class":1073}," makeGetLedgerMessage",[173,3441,3442],{"class":193},"(hash);\n",[173,3444,3445,3448,3450,3453],{"class":175,"line":952},[173,3446,3447],{"class":193},"    peer->",[173,3449,3168],{"class":1073},[173,3451,3452],{"class":193},"(request);",[173,3454,3455],{"class":186},"  \u002F\u002F Send only to this peer\n",[173,3457,3458],{"class":175,"line":973},[173,3459,1038],{"class":193},[39,3461,3463],{"id":3462},"squelch-algorithm","Squelch Algorithm",[22,3465,3466,3469],{},[47,3467,3468],{},"Squelch"," prevents message echo loops:",[22,3471,3472,78],{},[47,3473,3474],{},"Problem",[110,3476,3479],{"className":3477,"code":3478,"language":115},[113],"Node A → sends to B\nNode B → receives from A\nNode B → broadcasts to all (including A)\nNode A → receives echo from B\nNode A → broadcasts again...\n(infinite loop)\n",[117,3480,3478],{"__ignoreMap":119},[22,3482,3483,78],{},[47,3484,3485],{},"Solution",[110,3487,3489],{"className":1061,"code":3488,"language":1063,"meta":119,"style":119},"void onMessageReceived(\n    std::shared_ptr\u003CMessage> const& msg,\n    Peer* source)\n{\n    \u002F\u002F Track message hash\n    auto hash = msg->getHash();\n    \n    \u002F\u002F Have we seen this before?\n    if (recentMessages_.contains(hash))\n        return;  \u002F\u002F Ignore duplicate\n    \n    \u002F\u002F Record that we've seen it\n    recentMessages_.insert(hash);\n    \n    \u002F\u002F Process message\n    processMessage(msg);\n    \n    \u002F\u002F Relay to others (excluding source)\n    relayToOthers(msg, source);\n}\n",[117,3490,3491,3500,3520,3530,3534,3539,3556,3560,3565,3578,3587,3591,3596,3606,3610,3615,3622,3626,3631,3639],{"__ignoreMap":119},[173,3492,3493,3495,3498],{"class":175,"line":176},[173,3494,1731],{"class":253},[173,3496,3497],{"class":1073}," onMessageReceived",[173,3499,3223],{"class":193},[173,3501,3502,3504,3506,3508,3510,3512,3514,3516,3518],{"class":175,"line":183},[173,3503,2516],{"class":179},[173,3505,1756],{"class":193},[173,3507,3116],{"class":179},[173,3509,1110],{"class":193},[173,3511,3121],{"class":179},[173,3513,3124],{"class":193},[173,3515,3127],{"class":253},[173,3517,3130],{"class":179},[173,3519,3244],{"class":193},[173,3521,3522,3524,3526,3528],{"class":175,"line":190},[173,3523,3249],{"class":179},[173,3525,2335],{"class":253},[173,3527,3254],{"class":179},[173,3529,1089],{"class":193},[173,3531,3532],{"class":175,"line":197},[173,3533,1094],{"class":193},[173,3535,3536],{"class":175,"line":203},[173,3537,3538],{"class":186},"    \u002F\u002F Track message hash\n",[173,3540,3541,3543,3546,3548,3551,3554],{"class":175,"line":952},[173,3542,1534],{"class":253},[173,3544,3545],{"class":193}," hash ",[173,3547,877],{"class":253},[173,3549,3550],{"class":193}," msg->",[173,3552,3553],{"class":1073},"getHash",[173,3555,1893],{"class":193},[173,3557,3558],{"class":175,"line":973},[173,3559,1129],{"class":193},[173,3561,3562],{"class":175,"line":993},[173,3563,3564],{"class":186},"    \u002F\u002F Have we seen this before?\n",[173,3566,3567,3569,3572,3575],{"class":175,"line":1014},[173,3568,1104],{"class":253},[173,3570,3571],{"class":193}," (recentMessages_.",[173,3573,3574],{"class":1073},"contains",[173,3576,3577],{"class":193},"(hash))\n",[173,3579,3580,3582,3584],{"class":175,"line":1035},[173,3581,1118],{"class":253},[173,3583,2189],{"class":193},[173,3585,3586],{"class":186},"  \u002F\u002F Ignore duplicate\n",[173,3588,3589],{"class":175,"line":1162},[173,3590,1129],{"class":193},[173,3592,3593],{"class":175,"line":1185},[173,3594,3595],{"class":186},"    \u002F\u002F Record that we've seen it\n",[173,3597,3598,3601,3604],{"class":175,"line":1194},[173,3599,3600],{"class":193},"    recentMessages_.",[173,3602,3603],{"class":1073},"insert",[173,3605,3442],{"class":193},[173,3607,3608],{"class":175,"line":1199},[173,3609,1129],{"class":193},[173,3611,3612],{"class":175,"line":1205},[173,3613,3614],{"class":186},"    \u002F\u002F Process message\n",[173,3616,3617,3620],{"class":175,"line":1229},[173,3618,3619],{"class":1073},"    processMessage",[173,3621,3171],{"class":193},[173,3623,3624],{"class":175,"line":1238},[173,3625,1129],{"class":193},[173,3627,3628],{"class":175,"line":1243},[173,3629,3630],{"class":186},"    \u002F\u002F Relay to others (excluding source)\n",[173,3632,3633,3636],{"class":175,"line":1249},[173,3634,3635],{"class":1073},"    relayToOthers",[173,3637,3638],{"class":193},"(msg, source);\n",[173,3640,3641],{"class":175,"line":1268},[173,3642,1038],{"class":193},[22,3644,3645,78],{},[47,3646,3647],{},"Recent Message Cache",[52,3649,3650,3653,3656],{},[55,3651,3652],{},"Time-based expiration (e.g., 30 seconds)",[55,3654,3655],{},"Size-based limits (e.g., 10,000 entries)",[55,3657,3658],{},"LRU eviction policy",[39,3660,3662],{"id":3661},"message-priority-queues","Message Priority Queues",[22,3664,3665],{},"Outbound messages are queued with priority:",[110,3667,3669],{"className":1061,"code":3668,"language":1063,"meta":119,"style":119},"enum MessagePriority\n{\n    priVeryHigh,    \u002F\u002F Validations, critical consensus\n    priHigh,        \u002F\u002F Proposals, status changes\n    priMedium,      \u002F\u002F Transactions\n    priLow,         \u002F\u002F Historical data, maintenance\n};\n\nclass PeerMessageQueue\n{\nprivate:\n    std::map\u003CMessagePriority, std::queue\u003CMessage>> queues_;\n    \npublic:\n    void enqueue(Message msg, MessagePriority priority)\n    {\n        queues_[priority].push(msg);\n    }\n    \n    Message dequeue()\n    {\n        \u002F\u002F Dequeue from highest priority non-empty queue\n        for (auto& [priority, queue] : queues_)\n        {\n            if (!queue.empty())\n            {\n                auto msg = queue.front();\n                queue.pop();\n                return msg;\n            }\n        }\n        \n        throw std::runtime_error(\"No messages\");\n    }\n};\n",[117,3670,3671,3678,3682,3692,3702,3712,3722,3726,3730,3738,3742,3747,3777,3781,3786,3809,3813,3823,3827,3831,3841,3845,3850,3862,3866,3883,3889,3908,3919,3928,3934,3940,3945,3965,3970],{"__ignoreMap":119},[173,3672,3673,3675],{"class":175,"line":176},[173,3674,1367],{"class":253},[173,3676,3677],{"class":179}," MessagePriority\n",[173,3679,3680],{"class":175,"line":183},[173,3681,1094],{"class":193},[173,3683,3684,3687,3689],{"class":175,"line":190},[173,3685,3686],{"class":880},"    priVeryHigh",[173,3688,1382],{"class":193},[173,3690,3691],{"class":186},"    \u002F\u002F Validations, critical consensus\n",[173,3693,3694,3697,3699],{"class":175,"line":197},[173,3695,3696],{"class":880},"    priHigh",[173,3698,1382],{"class":193},[173,3700,3701],{"class":186},"        \u002F\u002F Proposals, status changes\n",[173,3703,3704,3707,3709],{"class":175,"line":203},[173,3705,3706],{"class":880},"    priMedium",[173,3708,1382],{"class":193},[173,3710,3711],{"class":186},"      \u002F\u002F Transactions\n",[173,3713,3714,3717,3719],{"class":175,"line":952},[173,3715,3716],{"class":880},"    priLow",[173,3718,1382],{"class":193},[173,3720,3721],{"class":186},"         \u002F\u002F Historical data, maintenance\n",[173,3723,3724],{"class":175,"line":973},[173,3725,1450],{"class":193},[173,3727,3728],{"class":175,"line":993},[173,3729,1501],{"emptyLinePlaceholder":1500},[173,3731,3732,3735],{"class":175,"line":1014},[173,3733,3734],{"class":253},"class",[173,3736,3737],{"class":179}," PeerMessageQueue\n",[173,3739,3740],{"class":175,"line":1035},[173,3741,1094],{"class":193},[173,3743,3744],{"class":175,"line":1162},[173,3745,3746],{"class":253},"private:\n",[173,3748,3749,3751,3753,3756,3758,3761,3763,3765,3767,3770,3772,3774],{"class":175,"line":1185},[173,3750,2516],{"class":179},[173,3752,1756],{"class":193},[173,3754,3755],{"class":179},"map",[173,3757,1110],{"class":193},[173,3759,3760],{"class":179},"MessagePriority",[173,3762,2403],{"class":193},[173,3764,2406],{"class":179},[173,3766,1756],{"class":193},[173,3768,3769],{"class":179},"queue",[173,3771,1110],{"class":193},[173,3773,3121],{"class":179},[173,3775,3776],{"class":193},">> queues_;\n",[173,3778,3779],{"class":175,"line":1194},[173,3780,1129],{"class":193},[173,3782,3783],{"class":175,"line":1199},[173,3784,3785],{"class":253},"public:\n",[173,3787,3788,3791,3794,3796,3798,3800,3802,3804,3807],{"class":175,"line":1205},[173,3789,3790],{"class":253},"    void",[173,3792,3793],{"class":1073}," enqueue",[173,3795,1077],{"class":193},[173,3797,3121],{"class":179},[173,3799,3130],{"class":179},[173,3801,2403],{"class":193},[173,3803,3760],{"class":179},[173,3805,3806],{"class":179}," priority",[173,3808,1089],{"class":193},[173,3810,3811],{"class":175,"line":1229},[173,3812,1981],{"class":193},[173,3814,3815,3818,3821],{"class":175,"line":1238},[173,3816,3817],{"class":193},"        queues_[priority].",[173,3819,3820],{"class":1073},"push",[173,3822,3171],{"class":193},[173,3824,3825],{"class":175,"line":1243},[173,3826,2030],{"class":193},[173,3828,3829],{"class":175,"line":1249},[173,3830,1129],{"class":193},[173,3832,3833,3836,3839],{"class":175,"line":1268},[173,3834,3835],{"class":179},"    Message",[173,3837,3838],{"class":1073}," dequeue",[173,3840,1737],{"class":193},[173,3842,3843],{"class":175,"line":1277},[173,3844,1981],{"class":193},[173,3846,3847],{"class":175,"line":1282},[173,3848,3849],{"class":186},"        \u002F\u002F Dequeue from highest priority non-empty queue\n",[173,3851,3852,3855,3857,3859],{"class":175,"line":1293},[173,3853,3854],{"class":253},"        for",[173,3856,1167],{"class":193},[173,3858,2610],{"class":253},[173,3860,3861],{"class":193}," [priority, queue] : queues_)\n",[173,3863,3864],{"class":175,"line":2684},[173,3865,2564],{"class":193},[173,3867,3868,3871,3873,3875,3878,3881],{"class":175,"line":2689},[173,3869,3870],{"class":253},"            if",[173,3872,1167],{"class":193},[173,3874,1170],{"class":253},[173,3876,3877],{"class":193},"queue.",[173,3879,3880],{"class":1073},"empty",[173,3882,1674],{"class":193},[173,3884,3886],{"class":175,"line":3885},26,[173,3887,3888],{"class":193},"            {\n",[173,3890,3892,3895,3898,3900,3903,3906],{"class":175,"line":3891},27,[173,3893,3894],{"class":253},"                auto",[173,3896,3897],{"class":193}," msg ",[173,3899,877],{"class":253},[173,3901,3902],{"class":193}," queue.",[173,3904,3905],{"class":1073},"front",[173,3907,1893],{"class":193},[173,3909,3911,3914,3917],{"class":175,"line":3910},28,[173,3912,3913],{"class":193},"                queue.",[173,3915,3916],{"class":1073},"pop",[173,3918,1893],{"class":193},[173,3920,3922,3925],{"class":175,"line":3921},29,[173,3923,3924],{"class":253},"                return",[173,3926,3927],{"class":193}," msg;\n",[173,3929,3931],{"class":175,"line":3930},30,[173,3932,3933],{"class":193},"            }\n",[173,3935,3937],{"class":175,"line":3936},31,[173,3938,3939],{"class":193},"        }\n",[173,3941,3943],{"class":175,"line":3942},32,[173,3944,2643],{"class":193},[173,3946,3948,3951,3953,3955,3958,3960,3963],{"class":175,"line":3947},33,[173,3949,3950],{"class":253},"        throw",[173,3952,1753],{"class":179},[173,3954,1756],{"class":193},[173,3956,3957],{"class":1073},"runtime_error",[173,3959,1077],{"class":193},[173,3961,3962],{"class":551},"\"No messages\"",[173,3964,1806],{"class":193},[173,3966,3968],{"class":175,"line":3967},34,[173,3969,2030],{"class":193},[173,3971,3973],{"class":175,"line":3972},35,[173,3974,1450],{"class":193},[22,3976,3977,78],{},[47,3978,3979],{},"Benefits",[52,3981,3982,3985,3988],{},[55,3983,3984],{},"Critical messages sent first",[55,3986,3987],{},"Prevents head-of-line blocking",[55,3989,3990],{},"Better network utilization",[14,3992],{},[17,3994,3996],{"id":3995},"network-health-and-monitoring","Network Health and Monitoring",[39,3998,4000],{"id":3999},"health-metrics","Health Metrics",[22,4002,4003],{},[47,4004,4005],{},"Connectivity Metrics",[22,4007,4008,4011],{},[47,4009,4010],{},"Active Peers",": Current peer count",[110,4013,4015],{"className":1061,"code":4014,"language":1063,"meta":119,"style":119},"size_t activePeers = overlay.size();\n",[117,4016,4017],{"__ignoreMap":119},[173,4018,4019,4022,4025,4027,4030,4033],{"class":175,"line":176},[173,4020,4021],{"class":253},"size_t",[173,4023,4024],{"class":193}," activePeers ",[173,4026,877],{"class":253},[173,4028,4029],{"class":193}," overlay.",[173,4031,4032],{"class":1073},"size",[173,4034,1893],{"class":193},[22,4036,4037,4040],{},[47,4038,4039],{},"Target vs Actual",": Comparison to target",[110,4042,4044],{"className":1061,"code":4043,"language":1063,"meta":119,"style":119},"bool isHealthy = activePeers >= (targetPeers * 0.75);\n",[117,4045,4046],{"__ignoreMap":119},[173,4047,4048,4050,4053,4055,4057,4059,4062,4064,4067],{"class":175,"line":176},[173,4049,1070],{"class":253},[173,4051,4052],{"class":193}," isHealthy ",[173,4054,877],{"class":253},[173,4056,4024],{"class":193},[173,4058,1668],{"class":253},[173,4060,4061],{"class":193}," (targetPeers ",[173,4063,2335],{"class":253},[173,4065,4066],{"class":880}," 0.75",[173,4068,1806],{"class":193},[22,4070,4071,78],{},[47,4072,366],{},[110,4074,4076],{"className":1061,"code":4075,"language":1063,"meta":119,"style":119},"size_t outbound = countOutboundPeers();\nsize_t inbound = countInboundPeers();\nfloat ratio = float(outbound) \u002F inbound;\n\n\u002F\u002F Healthy: ratio between 0.5 and 2.0\nbool balancedConnections = (ratio > 0.5 && ratio \u003C 2.0);\n",[117,4077,4078,4092,4106,4127,4131,4136],{"__ignoreMap":119},[173,4079,4080,4082,4085,4087,4090],{"class":175,"line":176},[173,4081,4021],{"class":253},[173,4083,4084],{"class":193}," outbound ",[173,4086,877],{"class":253},[173,4088,4089],{"class":1073}," countOutboundPeers",[173,4091,1893],{"class":193},[173,4093,4094,4096,4099,4101,4104],{"class":175,"line":183},[173,4095,4021],{"class":253},[173,4097,4098],{"class":193}," inbound ",[173,4100,877],{"class":253},[173,4102,4103],{"class":1073}," countInboundPeers",[173,4105,1893],{"class":193},[173,4107,4108,4111,4114,4116,4119,4122,4124],{"class":175,"line":190},[173,4109,4110],{"class":253},"float",[173,4112,4113],{"class":193}," ratio ",[173,4115,877],{"class":253},[173,4117,4118],{"class":253}," float",[173,4120,4121],{"class":193},"(outbound) ",[173,4123,1994],{"class":253},[173,4125,4126],{"class":193}," inbound;\n",[173,4128,4129],{"class":175,"line":197},[173,4130,1501],{"emptyLinePlaceholder":1500},[173,4132,4133],{"class":175,"line":203},[173,4134,4135],{"class":186},"\u002F\u002F Healthy: ratio between 0.5 and 2.0\n",[173,4137,4138,4140,4143,4145,4148,4150,4152,4155,4157,4159,4162],{"class":175,"line":952},[173,4139,1070],{"class":253},[173,4141,4142],{"class":193}," balancedConnections ",[173,4144,877],{"class":253},[173,4146,4147],{"class":193}," (ratio ",[173,4149,1139],{"class":253},[173,4151,2824],{"class":880},[173,4153,4154],{"class":253}," &&",[173,4156,4113],{"class":193},[173,4158,1110],{"class":253},[173,4160,4161],{"class":880}," 2.0",[173,4163,1806],{"class":193},[22,4165,4166],{},[47,4167,4168],{},"Network Quality Metrics",[22,4170,4171,78],{},[47,4172,4173],{},"Average Latency",[110,4175,4177],{"className":1061,"code":4176,"language":1063,"meta":119,"style":119},"auto avgLatency = calculateAverageLatency(getAllPeers());\n\n\u002F\u002F Healthy: \u003C 200ms average\nbool lowLatency = avgLatency \u003C 200ms;\n",[117,4178,4179,4197,4201,4206],{"__ignoreMap":119},[173,4180,4181,4183,4186,4188,4191,4193,4195],{"class":175,"line":176},[173,4182,2124],{"class":253},[173,4184,4185],{"class":193}," avgLatency ",[173,4187,877],{"class":253},[173,4189,4190],{"class":1073}," calculateAverageLatency",[173,4192,1077],{"class":193},[173,4194,3150],{"class":1073},[173,4196,1821],{"class":193},[173,4198,4199],{"class":175,"line":183},[173,4200,1501],{"emptyLinePlaceholder":1500},[173,4202,4203],{"class":175,"line":190},[173,4204,4205],{"class":186},"\u002F\u002F Healthy: \u003C 200ms average\n",[173,4207,4208,4210,4213,4215,4217,4219,4221,4223],{"class":175,"line":197},[173,4209,1070],{"class":253},[173,4211,4212],{"class":193}," lowLatency ",[173,4214,877],{"class":253},[173,4216,4185],{"class":193},[173,4218,1110],{"class":253},[173,4220,2255],{"class":880},[173,4222,2221],{"class":253},[173,4224,1124],{"class":193},[22,4226,4227,78],{},[47,4228,1910],{},[110,4230,4232],{"className":1061,"code":4231,"language":1063,"meta":119,"style":119},"auto totalRate = sumMessageRates(getAllPeers());\n\n\u002F\u002F Messages per second across all peers\n",[117,4233,4234,4252,4256],{"__ignoreMap":119},[173,4235,4236,4238,4241,4243,4246,4248,4250],{"class":175,"line":176},[173,4237,2124],{"class":253},[173,4239,4240],{"class":193}," totalRate ",[173,4242,877],{"class":253},[173,4244,4245],{"class":1073}," sumMessageRates",[173,4247,1077],{"class":193},[173,4249,3150],{"class":1073},[173,4251,1821],{"class":193},[173,4253,4254],{"class":175,"line":183},[173,4255,1501],{"emptyLinePlaceholder":1500},[173,4257,4258],{"class":175,"line":190},[173,4259,4260],{"class":186},"\u002F\u002F Messages per second across all peers\n",[22,4262,4263,78],{},[47,4264,4265],{},"Validator Connectivity",[110,4267,4269],{"className":1061,"code":4268,"language":1063,"meta":119,"style":119},"auto validatorPeers = countValidatorPeers();\nauto unlSize = getUNLSize();\n\n\u002F\u002F Should be connected to most of UNL\nbool goodValidatorConnectivity = \n    validatorPeers >= (unlSize * 0.8);\n",[117,4270,4271,4285,4299,4303,4308,4320],{"__ignoreMap":119},[173,4272,4273,4275,4278,4280,4283],{"class":175,"line":176},[173,4274,2124],{"class":253},[173,4276,4277],{"class":193}," validatorPeers ",[173,4279,877],{"class":253},[173,4281,4282],{"class":1073}," countValidatorPeers",[173,4284,1893],{"class":193},[173,4286,4287,4289,4292,4294,4297],{"class":175,"line":183},[173,4288,2124],{"class":253},[173,4290,4291],{"class":193}," unlSize ",[173,4293,877],{"class":253},[173,4295,4296],{"class":1073}," getUNLSize",[173,4298,1893],{"class":193},[173,4300,4301],{"class":175,"line":190},[173,4302,1501],{"emptyLinePlaceholder":1500},[173,4304,4305],{"class":175,"line":197},[173,4306,4307],{"class":186},"\u002F\u002F Should be connected to most of UNL\n",[173,4309,4310,4312,4315,4317],{"class":175,"line":203},[173,4311,1070],{"class":253},[173,4313,4314],{"class":193}," goodValidatorConnectivity ",[173,4316,877],{"class":253},[173,4318,4319],{"class":193}," \n",[173,4321,4322,4325,4327,4330,4332,4335],{"class":175,"line":952},[173,4323,4324],{"class":193},"    validatorPeers ",[173,4326,1668],{"class":253},[173,4328,4329],{"class":193}," (unlSize ",[173,4331,2335],{"class":253},[173,4333,4334],{"class":880}," 0.8",[173,4336,1806],{"class":193},[39,4338,4340],{"id":4339},"rpc-monitoring-commands","RPC Monitoring Commands",[22,4342,4343],{},[47,4344,4345],{},"peers Command",[22,4347,4348],{},"Get current peer list:",[110,4350,4352],{"className":539,"code":4351,"language":541,"meta":119,"style":119},"rippled peers\n",[117,4353,4354],{"__ignoreMap":119},[173,4355,4356,4359],{"class":175,"line":176},[173,4357,4358],{"class":179},"rippled",[173,4360,4361],{"class":551}," peers\n",[22,4363,4364],{},"Response:",[110,4366,4370],{"className":4367,"code":4368,"language":4369,"meta":119,"style":119},"language-json shiki shiki-themes github-dark-high-contrast","{\n  \"result\": {\n    \"peers\": [\n      {\n        \"address\": \"54.186.73.52:51235\",\n        \"latency\": 45,\n        \"uptime\": 3600,\n        \"version\": \"rippled-1.9.0\",\n        \"public_key\": \"n9KorY8QtTdRx...\",\n        \"complete_ledgers\": \"32570-75234891\"\n      }\n      \u002F\u002F ... more peers\n    ]\n  }\n}\n","json",[117,4371,4372,4376,4385,4393,4398,4411,4423,4435,4447,4459,4469,4474,4479,4484,4489],{"__ignoreMap":119},[173,4373,4374],{"class":175,"line":176},[173,4375,1094],{"class":193},[173,4377,4378,4382],{"class":175,"line":183},[173,4379,4381],{"class":4380},"sKpQp","  \"result\"",[173,4383,4384],{"class":193},": {\n",[173,4386,4387,4390],{"class":175,"line":190},[173,4388,4389],{"class":4380},"    \"peers\"",[173,4391,4392],{"class":193},": [\n",[173,4394,4395],{"class":175,"line":197},[173,4396,4397],{"class":193},"      {\n",[173,4399,4400,4403,4406,4409],{"class":175,"line":203},[173,4401,4402],{"class":4380},"        \"address\"",[173,4404,4405],{"class":193},": ",[173,4407,4408],{"class":551},"\"54.186.73.52:51235\"",[173,4410,3244],{"class":193},[173,4412,4413,4416,4418,4421],{"class":175,"line":952},[173,4414,4415],{"class":4380},"        \"latency\"",[173,4417,4405],{"class":193},[173,4419,4420],{"class":880},"45",[173,4422,3244],{"class":193},[173,4424,4425,4428,4430,4433],{"class":175,"line":973},[173,4426,4427],{"class":4380},"        \"uptime\"",[173,4429,4405],{"class":193},[173,4431,4432],{"class":880},"3600",[173,4434,3244],{"class":193},[173,4436,4437,4440,4442,4445],{"class":175,"line":993},[173,4438,4439],{"class":4380},"        \"version\"",[173,4441,4405],{"class":193},[173,4443,4444],{"class":551},"\"rippled-1.9.0\"",[173,4446,3244],{"class":193},[173,4448,4449,4452,4454,4457],{"class":175,"line":1014},[173,4450,4451],{"class":4380},"        \"public_key\"",[173,4453,4405],{"class":193},[173,4455,4456],{"class":551},"\"n9KorY8QtTdRx...\"",[173,4458,3244],{"class":193},[173,4460,4461,4464,4466],{"class":175,"line":1035},[173,4462,4463],{"class":4380},"        \"complete_ledgers\"",[173,4465,4405],{"class":193},[173,4467,4468],{"class":551},"\"32570-75234891\"\n",[173,4470,4471],{"class":175,"line":1162},[173,4472,4473],{"class":193},"      }\n",[173,4475,4476],{"class":175,"line":1185},[173,4477,4478],{"class":186},"      \u002F\u002F ... more peers\n",[173,4480,4481],{"class":175,"line":1194},[173,4482,4483],{"class":193},"    ]\n",[173,4485,4486],{"class":175,"line":1199},[173,4487,4488],{"class":193},"  }\n",[173,4490,4491],{"class":175,"line":1205},[173,4492,1038],{"class":193},[22,4494,4495],{},[47,4496,4497],{},"peer_reservations Command",[22,4499,4500],{},"View reserved peer slots:",[110,4502,4504],{"className":539,"code":4503,"language":541,"meta":119,"style":119},"rippled peer_reservations_add \u003Cpublic_key> \u003Cdescription>\nrippled peer_reservations_list\n",[117,4505,4506,4535],{"__ignoreMap":119},[173,4507,4508,4510,4513,4516,4519,4522,4524,4526,4529,4532],{"class":175,"line":176},[173,4509,4358],{"class":179},[173,4511,4512],{"class":551}," peer_reservations_add",[173,4514,4515],{"class":253}," \u003C",[173,4517,4518],{"class":551},"public_ke",[173,4520,4521],{"class":193},"y",[173,4523,1139],{"class":253},[173,4525,4515],{"class":253},[173,4527,4528],{"class":551},"descriptio",[173,4530,4531],{"class":193},"n",[173,4533,4534],{"class":253},">\n",[173,4536,4537,4539],{"class":175,"line":183},[173,4538,4358],{"class":179},[173,4540,4541],{"class":551}," peer_reservations_list\n",[22,4543,4544],{},[47,4545,4546],{},"connect Command",[22,4548,4549],{},"Manually connect to peer:",[110,4551,4553],{"className":539,"code":4552,"language":541,"meta":119,"style":119},"rippled connect 192.168.1.100:51235\n",[117,4554,4555],{"__ignoreMap":119},[173,4556,4557,4559,4562],{"class":175,"line":176},[173,4558,4358],{"class":179},[173,4560,4561],{"class":551}," connect",[173,4563,4564],{"class":551}," 192.168.1.100:51235\n",[39,4566,4568],{"id":4567},"logging-and-diagnostics","Logging and Diagnostics",[22,4570,4571],{},"Enable detailed overlay logging:",[110,4573,4575],{"className":167,"code":4574,"language":169,"meta":119,"style":119},"[rpc_startup]\n{ \"command\": \"log_level\", \"partition\": \"Overlay\", \"severity\": \"trace\" }\n",[117,4576,4577,4582],{"__ignoreMap":119},[173,4578,4579],{"class":175,"line":176},[173,4580,4581],{"class":179},"[rpc_startup]\n",[173,4583,4584,4587,4590,4592,4595,4597,4600,4602,4605,4607,4610,4612,4615],{"class":175,"line":183},[173,4585,4586],{"class":193},"{ ",[173,4588,4589],{"class":551},"\"command\"",[173,4591,4405],{"class":193},[173,4593,4594],{"class":551},"\"log_level\"",[173,4596,2403],{"class":193},[173,4598,4599],{"class":551},"\"partition\"",[173,4601,4405],{"class":193},[173,4603,4604],{"class":551},"\"Overlay\"",[173,4606,2403],{"class":193},[173,4608,4609],{"class":551},"\"severity\"",[173,4611,4405],{"class":193},[173,4613,4614],{"class":551},"\"trace\"",[173,4616,4617],{"class":193}," }\n",[22,4619,4620,78],{},[47,4621,4622],{},"Log Messages to Monitor",[110,4624,4627],{"className":4625,"code":4626,"language":115},[113],"\"Overlay\": \"Connected to peer 54.186.73.52:51235\"\n\"Overlay\": \"Disconnected from peer 54.186.73.52:51235, reason: saturated\"\n\"Overlay\": \"Handshake failed with peer: protocol version mismatch\"\n\"Overlay\": \"Received invalid message from peer, closing connection\"\n\"Overlay\": \"Active peers: 18\u002F20 (target)\"\n",[117,4628,4626],{"__ignoreMap":119},[14,4630],{},[17,4632,4634],{"id":4633},"codebase-deep-dive","Codebase Deep Dive",[39,4636,4638],{"id":4637},"key-files-and-directories","Key Files and Directories",[22,4640,4641,78],{},[47,4642,4643],{},"Overlay Core",[52,4645,4646,4652,4658],{},[55,4647,4648,4651],{},[117,4649,4650],{},"src\u002Fripple\u002Foverlay\u002FOverlay.h"," - Main overlay interface",[55,4653,4654,4657],{},[117,4655,4656],{},"src\u002Fripple\u002Foverlay\u002Fimpl\u002FOverlayImpl.h"," - Implementation header",[55,4659,4660,4663],{},[117,4661,4662],{},"src\u002Fripple\u002Foverlay\u002Fimpl\u002FOverlayImpl.cpp"," - Core implementation",[22,4665,4666,78],{},[47,4667,4668],{},"Peer Management",[52,4670,4671,4677,4683],{},[55,4672,4673,4676],{},[117,4674,4675],{},"src\u002Fripple\u002Foverlay\u002FPeer.h"," - Peer interface",[55,4678,4679,4682],{},[117,4680,4681],{},"src\u002Fripple\u002Foverlay\u002Fimpl\u002FPeerImp.h"," - Peer implementation",[55,4684,4685,4688],{},[117,4686,4687],{},"src\u002Fripple\u002Foverlay\u002Fimpl\u002FPeerImp.cpp"," - Peer logic",[22,4690,4691,78],{},[47,4692,4693],{},"Connection Handling",[52,4695,4696,4702],{},[55,4697,4698,4701],{},[117,4699,4700],{},"src\u002Fripple\u002Foverlay\u002Fimpl\u002FConnectAttempt.h"," - Outbound connections",[55,4703,4704,4707],{},[117,4705,4706],{},"src\u002Fripple\u002Foverlay\u002Fimpl\u002FInboundHandoff.h"," - Inbound connections",[22,4709,4710,78],{},[47,4711,4712],{},"Message Processing",[52,4714,4715,4721],{},[55,4716,4717,4720],{},[117,4718,4719],{},"src\u002Fripple\u002Foverlay\u002Fimpl\u002FProtocolMessage.h"," - Message definitions",[55,4722,4723,4726],{},[117,4724,4725],{},"src\u002Fripple\u002Foverlay\u002Fimpl\u002FMessage.cpp"," - Message handling",[39,4728,4730],{"id":4729},"key-classes","Key Classes",[22,4732,4733],{},[47,4734,4735],{},"Overlay Class",[110,4737,4739],{"className":1061,"code":4738,"language":1063,"meta":119,"style":119},"class Overlay\n{\npublic:\n    \u002F\u002F Start\u002Fstop overlay network\n    virtual void start() = 0;\n    virtual void stop() = 0;\n    \n    \u002F\u002F Peer management\n    virtual void connect(std::string const& ip) = 0;\n    virtual std::size_t size() const = 0;\n    \n    \u002F\u002F Message broadcasting\n    virtual void broadcast(std::shared_ptr\u003CMessage> const&) = 0;\n    virtual void relay(\n        std::shared_ptr\u003CMessage> const&,\n        Peer* source = nullptr) = 0;\n    \n    \u002F\u002F Peer information\n    virtual Json::Value json() = 0;\n    virtual std::vector\u003CPeer::ptr> getActivePeers() = 0;\n};\n",[117,4740,4741,4748,4752,4756,4761,4780,4797,4801,4806,4836,4861,4865,4870,4903,4914,4933,4955,4959,4964,4987,5020],{"__ignoreMap":119},[173,4742,4743,4745],{"class":175,"line":176},[173,4744,3734],{"class":253},[173,4746,4747],{"class":179}," Overlay\n",[173,4749,4750],{"class":175,"line":183},[173,4751,1094],{"class":193},[173,4753,4754],{"class":175,"line":190},[173,4755,3785],{"class":253},[173,4757,4758],{"class":175,"line":197},[173,4759,4760],{"class":186},"    \u002F\u002F Start\u002Fstop overlay network\n",[173,4762,4763,4766,4769,4772,4774,4776,4778],{"class":175,"line":203},[173,4764,4765],{"class":253},"    virtual",[173,4767,4768],{"class":253}," void",[173,4770,4771],{"class":1073}," start",[173,4773,1665],{"class":193},[173,4775,877],{"class":253},[173,4777,2012],{"class":880},[173,4779,1124],{"class":193},[173,4781,4782,4784,4786,4789,4791,4793,4795],{"class":175,"line":952},[173,4783,4765],{"class":253},[173,4785,4768],{"class":253},[173,4787,4788],{"class":1073}," stop",[173,4790,1665],{"class":193},[173,4792,877],{"class":253},[173,4794,2012],{"class":880},[173,4796,1124],{"class":193},[173,4798,4799],{"class":175,"line":973},[173,4800,1129],{"class":193},[173,4802,4803],{"class":175,"line":993},[173,4804,4805],{"class":186},"    \u002F\u002F Peer management\n",[173,4807,4808,4810,4812,4814,4816,4818,4820,4823,4825,4827,4830,4832,4834],{"class":175,"line":1014},[173,4809,4765],{"class":253},[173,4811,4768],{"class":253},[173,4813,4561],{"class":1073},[173,4815,1077],{"class":193},[173,4817,2406],{"class":179},[173,4819,1756],{"class":193},[173,4821,4822],{"class":179},"string",[173,4824,1083],{"class":253},[173,4826,1523],{"class":179},[173,4828,4829],{"class":193},") ",[173,4831,877],{"class":253},[173,4833,2012],{"class":880},[173,4835,1124],{"class":193},[173,4837,4838,4840,4842,4844,4846,4849,4851,4854,4857,4859],{"class":175,"line":1035},[173,4839,4765],{"class":253},[173,4841,1753],{"class":179},[173,4843,1756],{"class":193},[173,4845,4021],{"class":253},[173,4847,4848],{"class":1073}," size",[173,4850,1665],{"class":193},[173,4852,4853],{"class":253},"const",[173,4855,4856],{"class":253}," =",[173,4858,2012],{"class":880},[173,4860,1124],{"class":193},[173,4862,4863],{"class":175,"line":1162},[173,4864,1129],{"class":193},[173,4866,4867],{"class":175,"line":1185},[173,4868,4869],{"class":186},"    \u002F\u002F Message broadcasting\n",[173,4871,4872,4874,4876,4879,4881,4883,4885,4887,4889,4891,4893,4895,4897,4899,4901],{"class":175,"line":1194},[173,4873,4765],{"class":253},[173,4875,4768],{"class":253},[173,4877,4878],{"class":1073}," broadcast",[173,4880,1077],{"class":193},[173,4882,2406],{"class":179},[173,4884,1756],{"class":193},[173,4886,3116],{"class":179},[173,4888,1110],{"class":193},[173,4890,3121],{"class":179},[173,4892,3124],{"class":193},[173,4894,3127],{"class":253},[173,4896,4829],{"class":193},[173,4898,877],{"class":253},[173,4900,2012],{"class":880},[173,4902,1124],{"class":193},[173,4904,4905,4907,4909,4912],{"class":175,"line":1199},[173,4906,4765],{"class":253},[173,4908,4768],{"class":253},[173,4910,4911],{"class":1073}," relay",[173,4913,3223],{"class":193},[173,4915,4916,4919,4921,4923,4925,4927,4929,4931],{"class":175,"line":1205},[173,4917,4918],{"class":179},"        std",[173,4920,1756],{"class":193},[173,4922,3116],{"class":179},[173,4924,1110],{"class":193},[173,4926,3121],{"class":179},[173,4928,3124],{"class":193},[173,4930,3127],{"class":253},[173,4932,3244],{"class":193},[173,4934,4935,4938,4940,4942,4944,4947,4949,4951,4953],{"class":175,"line":1229},[173,4936,4937],{"class":179},"        Peer",[173,4939,2335],{"class":253},[173,4941,3254],{"class":179},[173,4943,4856],{"class":253},[173,4945,4946],{"class":880}," nullptr",[173,4948,4829],{"class":193},[173,4950,877],{"class":253},[173,4952,2012],{"class":880},[173,4954,1124],{"class":193},[173,4956,4957],{"class":175,"line":1238},[173,4958,1129],{"class":193},[173,4960,4961],{"class":175,"line":1243},[173,4962,4963],{"class":186},"    \u002F\u002F Peer information\n",[173,4965,4966,4968,4971,4973,4976,4979,4981,4983,4985],{"class":175,"line":1249},[173,4967,4765],{"class":253},[173,4969,4970],{"class":179}," Json",[173,4972,1756],{"class":193},[173,4974,4975],{"class":179},"Value",[173,4977,4978],{"class":1073}," json",[173,4980,1665],{"class":193},[173,4982,877],{"class":253},[173,4984,2012],{"class":880},[173,4986,1124],{"class":193},[173,4988,4989,4991,4993,4995,4998,5000,5002,5004,5007,5009,5012,5014,5016,5018],{"class":175,"line":1268},[173,4990,4765],{"class":253},[173,4992,1753],{"class":179},[173,4994,1756],{"class":193},[173,4996,4997],{"class":179},"vector",[173,4999,1110],{"class":193},[173,5001,1608],{"class":179},[173,5003,1756],{"class":193},[173,5005,5006],{"class":179},"ptr",[173,5008,3124],{"class":193},[173,5010,5011],{"class":1073},"getActivePeers",[173,5013,1665],{"class":193},[173,5015,877],{"class":253},[173,5017,2012],{"class":880},[173,5019,1124],{"class":193},[173,5021,5022],{"class":175,"line":1277},[173,5023,1450],{"class":193},[22,5025,5026],{},[47,5027,5028],{},"PeerImp Class",[110,5030,5032],{"className":1061,"code":5031,"language":1063,"meta":119,"style":119},"class PeerImp : public Peer\n{\npublic:\n    \u002F\u002F Send message to this peer\n    void send(std::shared_ptr\u003CMessage> const& m) override;\n    \n    \u002F\u002F Process received message\n    void onMessage(std::shared_ptr\u003CMessage> const& m);\n    \n    \u002F\u002F Connection state\n    bool isConnected() const;\n    void disconnect(DisconnectReason reason);\n    \n    \u002F\u002F Quality metrics\n    std::chrono::milliseconds latency() const;\n    int score() const;\n    \nprivate:\n    \u002F\u002F Connection management\n    boost::asio::ip::tcp::socket socket_;\n    boost::asio::ssl::stream\u003Csocket_t&> stream_;\n    \n    \u002F\u002F Message queues\n    std::queue\u003Cstd::shared_ptr\u003CMessage>> sendQueue_;\n    \n    \u002F\u002F Metrics\n    std::chrono::steady_clock::time_point connected_;\n    std::chrono::milliseconds latency_;\n    int score_;\n};\n",[117,5033,5034,5050,5054,5058,5063,5096,5100,5105,5132,5136,5141,5155,5172,5176,5181,5204,5217,5221,5225,5230,5257,5286,5290,5295,5318,5322,5327,5348,5363,5370],{"__ignoreMap":119},[173,5035,5036,5038,5041,5044,5047],{"class":175,"line":176},[173,5037,3734],{"class":253},[173,5039,5040],{"class":179}," PeerImp",[173,5042,5043],{"class":193}," : ",[173,5045,5046],{"class":253},"public",[173,5048,5049],{"class":179}," Peer\n",[173,5051,5052],{"class":175,"line":183},[173,5053,1094],{"class":193},[173,5055,5056],{"class":175,"line":190},[173,5057,3785],{"class":253},[173,5059,5060],{"class":175,"line":197},[173,5061,5062],{"class":186},"    \u002F\u002F Send message to this peer\n",[173,5064,5065,5067,5070,5072,5074,5076,5078,5080,5082,5084,5086,5089,5091,5094],{"class":175,"line":203},[173,5066,3790],{"class":253},[173,5068,5069],{"class":1073}," send",[173,5071,1077],{"class":193},[173,5073,2406],{"class":179},[173,5075,1756],{"class":193},[173,5077,3116],{"class":179},[173,5079,1110],{"class":193},[173,5081,3121],{"class":179},[173,5083,3124],{"class":193},[173,5085,3127],{"class":253},[173,5087,5088],{"class":179}," m",[173,5090,4829],{"class":193},[173,5092,5093],{"class":253},"override",[173,5095,1124],{"class":193},[173,5097,5098],{"class":175,"line":952},[173,5099,1129],{"class":193},[173,5101,5102],{"class":175,"line":973},[173,5103,5104],{"class":186},"    \u002F\u002F Process received message\n",[173,5106,5107,5109,5112,5114,5116,5118,5120,5122,5124,5126,5128,5130],{"class":175,"line":993},[173,5108,3790],{"class":253},[173,5110,5111],{"class":1073}," onMessage",[173,5113,1077],{"class":193},[173,5115,2406],{"class":179},[173,5117,1756],{"class":193},[173,5119,3116],{"class":179},[173,5121,1110],{"class":193},[173,5123,3121],{"class":179},[173,5125,3124],{"class":193},[173,5127,3127],{"class":253},[173,5129,5088],{"class":179},[173,5131,1806],{"class":193},[173,5133,5134],{"class":175,"line":1014},[173,5135,1129],{"class":193},[173,5137,5138],{"class":175,"line":1035},[173,5139,5140],{"class":186},"    \u002F\u002F Connection state\n",[173,5142,5143,5146,5149,5151,5153],{"class":175,"line":1162},[173,5144,5145],{"class":253},"    bool",[173,5147,5148],{"class":1073}," isConnected",[173,5150,1665],{"class":193},[173,5152,4853],{"class":253},[173,5154,1124],{"class":193},[173,5156,5157,5159,5162,5164,5167,5170],{"class":175,"line":1185},[173,5158,3790],{"class":253},[173,5160,5161],{"class":1073}," disconnect",[173,5163,1077],{"class":193},[173,5165,5166],{"class":179},"DisconnectReason",[173,5168,5169],{"class":179}," reason",[173,5171,1806],{"class":193},[173,5173,5174],{"class":175,"line":1194},[173,5175,1129],{"class":193},[173,5177,5178],{"class":175,"line":1199},[173,5179,5180],{"class":186},"    \u002F\u002F Quality metrics\n",[173,5182,5183,5185,5187,5190,5192,5195,5198,5200,5202],{"class":175,"line":1205},[173,5184,2516],{"class":179},[173,5186,1756],{"class":193},[173,5188,5189],{"class":179},"chrono",[173,5191,1756],{"class":193},[173,5193,5194],{"class":179},"milliseconds",[173,5196,5197],{"class":1073}," latency",[173,5199,1665],{"class":193},[173,5201,4853],{"class":253},[173,5203,1124],{"class":193},[173,5205,5206,5208,5211,5213,5215],{"class":175,"line":1229},[173,5207,2178],{"class":253},[173,5209,5210],{"class":1073}," score",[173,5212,1665],{"class":193},[173,5214,4853],{"class":253},[173,5216,1124],{"class":193},[173,5218,5219],{"class":175,"line":1238},[173,5220,1129],{"class":193},[173,5222,5223],{"class":175,"line":1243},[173,5224,3746],{"class":253},[173,5226,5227],{"class":175,"line":1249},[173,5228,5229],{"class":186},"    \u002F\u002F Connection management\n",[173,5231,5232,5235,5237,5240,5242,5244,5246,5249,5251,5254],{"class":175,"line":1268},[173,5233,5234],{"class":179},"    boost",[173,5236,1756],{"class":193},[173,5238,5239],{"class":179},"asio",[173,5241,1756],{"class":193},[173,5243,262],{"class":179},[173,5245,1756],{"class":193},[173,5247,5248],{"class":179},"tcp",[173,5250,1756],{"class":193},[173,5252,5253],{"class":179},"socket",[173,5255,5256],{"class":193}," socket_;\n",[173,5258,5259,5261,5263,5265,5267,5270,5272,5275,5277,5280,5283],{"class":175,"line":1277},[173,5260,5234],{"class":179},[173,5262,1756],{"class":193},[173,5264,5239],{"class":179},[173,5266,1756],{"class":193},[173,5268,5269],{"class":179},"ssl",[173,5271,1756],{"class":193},[173,5273,5274],{"class":179},"stream",[173,5276,1110],{"class":193},[173,5278,5279],{"class":880},"socket_t",[173,5281,5282],{"class":253},"&",[173,5284,5285],{"class":193},"> stream_;\n",[173,5287,5288],{"class":175,"line":1282},[173,5289,1129],{"class":193},[173,5291,5292],{"class":175,"line":1293},[173,5293,5294],{"class":186},"    \u002F\u002F Message queues\n",[173,5296,5297,5299,5301,5303,5305,5307,5309,5311,5313,5315],{"class":175,"line":2684},[173,5298,2516],{"class":179},[173,5300,1756],{"class":193},[173,5302,3769],{"class":179},[173,5304,1110],{"class":193},[173,5306,2406],{"class":179},[173,5308,1756],{"class":193},[173,5310,3116],{"class":179},[173,5312,1110],{"class":193},[173,5314,3121],{"class":179},[173,5316,5317],{"class":193},">> sendQueue_;\n",[173,5319,5320],{"class":175,"line":2689},[173,5321,1129],{"class":193},[173,5323,5324],{"class":175,"line":3885},[173,5325,5326],{"class":186},"    \u002F\u002F Metrics\n",[173,5328,5329,5331,5333,5335,5337,5340,5342,5345],{"class":175,"line":3891},[173,5330,2516],{"class":179},[173,5332,1756],{"class":193},[173,5334,5189],{"class":179},[173,5336,1756],{"class":193},[173,5338,5339],{"class":179},"steady_clock",[173,5341,1756],{"class":193},[173,5343,5344],{"class":179},"time_point",[173,5346,5347],{"class":193}," connected_;\n",[173,5349,5350,5352,5354,5356,5358,5360],{"class":175,"line":3910},[173,5351,2516],{"class":179},[173,5353,1756],{"class":193},[173,5355,5189],{"class":179},[173,5357,1756],{"class":193},[173,5359,5194],{"class":179},[173,5361,5362],{"class":193}," latency_;\n",[173,5364,5365,5367],{"class":175,"line":3921},[173,5366,2178],{"class":253},[173,5368,5369],{"class":193}," score_;\n",[173,5371,5372],{"class":175,"line":3930},[173,5373,1450],{"class":193},[39,5375,5377],{"id":5376},"code-navigation-tips","Code Navigation Tips",[22,5379,5380],{},[47,5381,5382],{},"Finding Connection Logic",[22,5384,5385],{},"Search for connection establishment:",[110,5387,5389],{"className":1061,"code":5388,"language":1063,"meta":119,"style":119},"\u002F\u002F In OverlayImpl.cpp\nvoid OverlayImpl::connect(std::string const& ip)\n{\n    \u002F\u002F Parse IP and port\n    auto endpoint = parseEndpoint(ip);\n    \n    \u002F\u002F Create connection attempt\n    auto attempt = std::make_shared\u003CConnectAttempt>(\n        app_,\n        io_service_,\n        endpoint,\n        peerFinder_.config());\n    \n    \u002F\u002F Begin async connection\n    attempt->run();\n}\n",[117,5390,5391,5396,5422,5426,5431,5445,5449,5454,5477,5482,5487,5492,5502,5506,5511,5521],{"__ignoreMap":119},[173,5392,5393],{"class":175,"line":176},[173,5394,5395],{"class":186},"\u002F\u002F In OverlayImpl.cpp\n",[173,5397,5398,5400,5403,5405,5408,5410,5412,5414,5416,5418,5420],{"class":175,"line":183},[173,5399,1731],{"class":253},[173,5401,5402],{"class":179}," OverlayImpl",[173,5404,1756],{"class":193},[173,5406,5407],{"class":1073},"connect",[173,5409,1077],{"class":193},[173,5411,2406],{"class":179},[173,5413,1756],{"class":193},[173,5415,4822],{"class":179},[173,5417,1083],{"class":253},[173,5419,1523],{"class":179},[173,5421,1089],{"class":193},[173,5423,5424],{"class":175,"line":190},[173,5425,1094],{"class":193},[173,5427,5428],{"class":175,"line":197},[173,5429,5430],{"class":186},"    \u002F\u002F Parse IP and port\n",[173,5432,5433,5435,5438,5440,5443],{"class":175,"line":203},[173,5434,1534],{"class":253},[173,5436,5437],{"class":193}," endpoint ",[173,5439,877],{"class":253},[173,5441,5442],{"class":1073}," parseEndpoint",[173,5444,1545],{"class":193},[173,5446,5447],{"class":175,"line":952},[173,5448,1129],{"class":193},[173,5450,5451],{"class":175,"line":973},[173,5452,5453],{"class":186},"    \u002F\u002F Create connection attempt\n",[173,5455,5456,5458,5461,5463,5465,5467,5469,5471,5474],{"class":175,"line":993},[173,5457,1534],{"class":253},[173,5459,5460],{"class":193}," attempt ",[173,5462,877],{"class":253},[173,5464,1753],{"class":179},[173,5466,1756],{"class":193},[173,5468,1759],{"class":1073},[173,5470,1110],{"class":193},[173,5472,5473],{"class":179},"ConnectAttempt",[173,5475,5476],{"class":193},">(\n",[173,5478,5479],{"class":175,"line":1014},[173,5480,5481],{"class":193},"        app_,\n",[173,5483,5484],{"class":175,"line":1035},[173,5485,5486],{"class":193},"        io_service_,\n",[173,5488,5489],{"class":175,"line":1162},[173,5490,5491],{"class":193},"        endpoint,\n",[173,5493,5494,5497,5500],{"class":175,"line":1185},[173,5495,5496],{"class":193},"        peerFinder_.",[173,5498,5499],{"class":1073},"config",[173,5501,1821],{"class":193},[173,5503,5504],{"class":175,"line":1194},[173,5505,1129],{"class":193},[173,5507,5508],{"class":175,"line":1199},[173,5509,5510],{"class":186},"    \u002F\u002F Begin async connection\n",[173,5512,5513,5516,5519],{"class":175,"line":1205},[173,5514,5515],{"class":193},"    attempt->",[173,5517,5518],{"class":1073},"run",[173,5520,1893],{"class":193},[173,5522,5523],{"class":175,"line":1229},[173,5524,1038],{"class":193},[22,5526,5527],{},[47,5528,5529],{},"Tracing Message Flow",[22,5531,5532],{},"Follow message from receipt to processing:",[110,5534,5536],{"className":1061,"code":5535,"language":1063,"meta":119,"style":119},"\u002F\u002F PeerImp::onMessage (entry point)\nvoid PeerImp::onMessage(std::shared_ptr\u003CMessage> const& msg)\n{\n    \u002F\u002F Check for duplicates (squelch)\n    if (app_.overlay().hasSeen(msg->getHash()))\n        return;\n    \n    \u002F\u002F Mark as seen\n    app_.overlay().markSeen(msg->getHash());\n    \n    \u002F\u002F Process based on type\n    switch (msg->getType())\n    {\n        case protocol::mtTRANSACTION:\n            onTransaction(msg);\n            break;\n        case protocol::mtVALIDATION:\n            onValidation(msg);\n            break;\n        \u002F\u002F ... other types\n    }\n    \n    \u002F\u002F Relay to other peers\n    app_.overlay().relay(msg, this);\n}\n",[117,5537,5538,5543,5574,5578,5583,5606,5612,5616,5621,5639,5643,5648,5661,5665,5676,5683,5689,5698,5705,5711,5716,5720,5724,5729,5747],{"__ignoreMap":119},[173,5539,5540],{"class":175,"line":176},[173,5541,5542],{"class":186},"\u002F\u002F PeerImp::onMessage (entry point)\n",[173,5544,5545,5547,5549,5551,5554,5556,5558,5560,5562,5564,5566,5568,5570,5572],{"class":175,"line":183},[173,5546,1731],{"class":253},[173,5548,5040],{"class":179},[173,5550,1756],{"class":193},[173,5552,5553],{"class":1073},"onMessage",[173,5555,1077],{"class":193},[173,5557,2406],{"class":179},[173,5559,1756],{"class":193},[173,5561,3116],{"class":179},[173,5563,1110],{"class":193},[173,5565,3121],{"class":179},[173,5567,3124],{"class":193},[173,5569,3127],{"class":253},[173,5571,3130],{"class":179},[173,5573,1089],{"class":193},[173,5575,5576],{"class":175,"line":190},[173,5577,1094],{"class":193},[173,5579,5580],{"class":175,"line":197},[173,5581,5582],{"class":186},"    \u002F\u002F Check for duplicates (squelch)\n",[173,5584,5585,5587,5590,5593,5596,5599,5602,5604],{"class":175,"line":203},[173,5586,1104],{"class":253},[173,5588,5589],{"class":193}," (app_.",[173,5591,5592],{"class":1073},"overlay",[173,5594,5595],{"class":193},"().",[173,5597,5598],{"class":1073},"hasSeen",[173,5600,5601],{"class":193},"(msg->",[173,5603,3553],{"class":1073},[173,5605,1182],{"class":193},[173,5607,5608,5610],{"class":175,"line":952},[173,5609,1118],{"class":253},[173,5611,1124],{"class":193},[173,5613,5614],{"class":175,"line":973},[173,5615,1129],{"class":193},[173,5617,5618],{"class":175,"line":993},[173,5619,5620],{"class":186},"    \u002F\u002F Mark as seen\n",[173,5622,5623,5626,5628,5630,5633,5635,5637],{"class":175,"line":1014},[173,5624,5625],{"class":193},"    app_.",[173,5627,5592],{"class":1073},[173,5629,5595],{"class":193},[173,5631,5632],{"class":1073},"markSeen",[173,5634,5601],{"class":193},[173,5636,3553],{"class":1073},[173,5638,1821],{"class":193},[173,5640,5641],{"class":175,"line":1035},[173,5642,1129],{"class":193},[173,5644,5645],{"class":175,"line":1162},[173,5646,5647],{"class":186},"    \u002F\u002F Process based on type\n",[173,5649,5650,5653,5656,5659],{"class":175,"line":1185},[173,5651,5652],{"class":253},"    switch",[173,5654,5655],{"class":193}," (msg->",[173,5657,5658],{"class":1073},"getType",[173,5660,1674],{"class":193},[173,5662,5663],{"class":175,"line":1194},[173,5664,1981],{"class":193},[173,5666,5667,5670,5673],{"class":175,"line":1199},[173,5668,5669],{"class":253},"        case",[173,5671,5672],{"class":179}," protocol",[173,5674,5675],{"class":193},"::mtTRANSACTION:\n",[173,5677,5678,5681],{"class":175,"line":1205},[173,5679,5680],{"class":1073},"            onTransaction",[173,5682,3171],{"class":193},[173,5684,5685,5687],{"class":175,"line":1229},[173,5686,2679],{"class":253},[173,5688,1124],{"class":193},[173,5690,5691,5693,5695],{"class":175,"line":1238},[173,5692,5669],{"class":253},[173,5694,5672],{"class":179},[173,5696,5697],{"class":193},"::mtVALIDATION:\n",[173,5699,5700,5703],{"class":175,"line":1243},[173,5701,5702],{"class":1073},"            onValidation",[173,5704,3171],{"class":193},[173,5706,5707,5709],{"class":175,"line":1249},[173,5708,2679],{"class":253},[173,5710,1124],{"class":193},[173,5712,5713],{"class":175,"line":1268},[173,5714,5715],{"class":186},"        \u002F\u002F ... other types\n",[173,5717,5718],{"class":175,"line":1277},[173,5719,2030],{"class":193},[173,5721,5722],{"class":175,"line":1282},[173,5723,1129],{"class":193},[173,5725,5726],{"class":175,"line":1293},[173,5727,5728],{"class":186},"    \u002F\u002F Relay to other peers\n",[173,5730,5731,5733,5735,5737,5740,5743,5745],{"class":175,"line":2684},[173,5732,5625],{"class":193},[173,5734,5592],{"class":1073},[173,5736,5595],{"class":193},[173,5738,5739],{"class":1073},"relay",[173,5741,5742],{"class":193},"(msg, ",[173,5744,3002],{"class":880},[173,5746,1806],{"class":193},[173,5748,5749],{"class":175,"line":2689},[173,5750,1038],{"class":193},[14,5752],{},[17,5754,5756],{"id":5755},"hands-on-exercise","Hands-On Exercise",[39,5758,5760],{"id":5759},"exercise-monitor-and-analyze-network-topology","Exercise: Monitor and Analyze Network Topology",[22,5762,5763,5766],{},[47,5764,5765],{},"Objective",": Understand your node's position in the network and analyze peer connections.",[22,5768,5769],{},[47,5770,5771],{},"Part 1: Initial Network State",[22,5773,5774,5777],{},[47,5775,5776],{},"Step 1",": Get current peer list",[110,5779,5781],{"className":539,"code":5780,"language":541,"meta":119,"style":119},"rippled peers > peers_initial.json\n",[117,5782,5783],{"__ignoreMap":119},[173,5784,5785,5787,5790,5793],{"class":175,"line":176},[173,5786,4358],{"class":179},[173,5788,5789],{"class":551}," peers",[173,5791,5792],{"class":253}," >",[173,5794,5795],{"class":551}," peers_initial.json\n",[22,5797,5798,5801],{},[47,5799,5800],{},"Step 2",": Analyze the output",[22,5803,5804],{},"Count:",[52,5806,5807,5810,5813,5816],{},[55,5808,5809],{},"Total peers",[55,5811,5812],{},"Outbound vs inbound connections",[55,5814,5815],{},"Peer versions",[55,5817,5818],{},"Geographic distribution (if known)",[22,5820,5821,78],{},[47,5822,5823],{},"Questions",[52,5825,5826,5829,5832],{},[55,5827,5828],{},"Do you have the target number of peers?",[55,5830,5831],{},"Is the outbound\u002Finbound ratio balanced?",[55,5833,5834],{},"Are you connected to validators in your UNL?",[22,5836,5837],{},[47,5838,5839],{},"Part 2: Connection Quality Analysis",[22,5841,5842,5844],{},[47,5843,5776],{},": Enable overlay logging",[110,5846,5848],{"className":539,"code":5847,"language":541,"meta":119,"style":119},"rippled log_level Overlay debug\n",[117,5849,5850],{"__ignoreMap":119},[173,5851,5852,5854,5857,5860],{"class":175,"line":176},[173,5853,4358],{"class":179},[173,5855,5856],{"class":551}," log_level",[173,5858,5859],{"class":551}," Overlay",[173,5861,5862],{"class":551}," debug\n",[22,5864,5865,5867],{},[47,5866,5800],{},": Monitor for 5 minutes",[110,5869,5871],{"className":539,"code":5870,"language":541,"meta":119,"style":119},"tail -f \u002Fvar\u002Flog\u002Frippled\u002Fdebug.log | grep -E \"latency|score|disconnect\"\n",[117,5872,5873],{"__ignoreMap":119},[173,5874,5875,5878,5881,5884,5887,5890,5893],{"class":175,"line":176},[173,5876,5877],{"class":179},"tail",[173,5879,5880],{"class":880}," -f",[173,5882,5883],{"class":551}," \u002Fvar\u002Flog\u002Frippled\u002Fdebug.log",[173,5885,5886],{"class":253}," |",[173,5888,5889],{"class":179}," grep",[173,5891,5892],{"class":880}," -E",[173,5894,5895],{"class":551}," \"latency|score|disconnect\"\n",[22,5897,5898,5901],{},[47,5899,5900],{},"Step 3",": Identify patterns",[22,5903,5904],{},"Look for:",[52,5906,5907,5910,5913,5916],{},[55,5908,5909],{},"Average peer latency",[55,5911,5912],{},"Connection failures",[55,5914,5915],{},"Disconnection reasons",[55,5917,5918],{},"Reconnection attempts",[22,5920,5921],{},[47,5922,5923],{},"Part 3: Connectivity Test",[22,5925,5926,5928],{},[47,5927,5776],{},": Manually connect to a peer",[110,5930,5932],{"className":539,"code":5931,"language":541,"meta":119,"style":119},"# Connect to XRP Ledger Foundation validator\nrippled connect r.ripple.com:51235\n",[117,5933,5934,5939],{"__ignoreMap":119},[173,5935,5936],{"class":175,"line":176},[173,5937,5938],{"class":186},"# Connect to XRP Ledger Foundation validator\n",[173,5940,5941,5943,5945],{"class":175,"line":183},[173,5942,4358],{"class":179},[173,5944,4561],{"class":551},[173,5946,5947],{"class":551}," r.ripple.com:51235\n",[22,5949,5950,5952],{},[47,5951,5800],{},": Verify connection",[110,5954,5956],{"className":539,"code":5955,"language":541,"meta":119,"style":119},"rippled peers | grep \"r.ripple.com\"\n",[117,5957,5958],{"__ignoreMap":119},[173,5959,5960,5962,5964,5966,5968],{"class":175,"line":176},[173,5961,4358],{"class":179},[173,5963,5789],{"class":551},[173,5965,5886],{"class":253},[173,5967,5889],{"class":179},[173,5969,5970],{"class":551}," \"r.ripple.com\"\n",[22,5972,5973,5975],{},[47,5974,5900],{},": Observe handshake in logs",[110,5977,5980],{"className":5978,"code":5979,"language":115},[113],"\"Overlay\": \"Connected to r.ripple.com:51235\"\n\"Overlay\": \"Handshake complete with peer n9KorY8...\"\n\"Overlay\": \"Added peer n9KorY8... to active peers\"\n",[117,5981,5979],{"__ignoreMap":119},[22,5983,5984],{},[47,5985,5986],{},"Part 4: Network Health Check",[22,5988,5989,5991],{},[47,5990,5776],{},": Check peer count over time",[110,5993,5995],{"className":539,"code":5994,"language":541,"meta":119,"style":119},"# Run every minute for 10 minutes\nfor i in {1..10}; do\n  echo \"$(date): $(rippled peers | grep -c address) peers\"\n  sleep 60\ndone\n",[117,5996,5997,6002,6025,6054,6062],{"__ignoreMap":119},[173,5998,5999],{"class":175,"line":176},[173,6000,6001],{"class":186},"# Run every minute for 10 minutes\n",[173,6003,6004,6007,6010,6013,6016,6019,6022],{"class":175,"line":183},[173,6005,6006],{"class":253},"for",[173,6008,6009],{"class":193}," i ",[173,6011,6012],{"class":253},"in",[173,6014,6015],{"class":193}," {",[173,6017,6018],{"class":179},"1..10}",[173,6020,6021],{"class":193},"; ",[173,6023,6024],{"class":253},"do\n",[173,6026,6027,6030,6033,6036,6039,6041,6043,6046,6048,6051],{"class":175,"line":190},[173,6028,6029],{"class":880},"  echo",[173,6031,6032],{"class":551}," \"$(",[173,6034,6035],{"class":179},"date",[173,6037,6038],{"class":551},"): $(",[173,6040,4358],{"class":179},[173,6042,2504],{"class":551},[173,6044,6045],{"class":253},"|",[173,6047,5889],{"class":179},[173,6049,6050],{"class":880}," -c",[173,6052,6053],{"class":551}," address) peers\"\n",[173,6055,6056,6059],{"class":175,"line":197},[173,6057,6058],{"class":179},"  sleep",[173,6060,6061],{"class":880}," 60\n",[173,6063,6064],{"class":175,"line":203},[173,6065,6066],{"class":253},"done\n",[22,6068,6069,6071],{},[47,6070,5800],{},": Monitor connection churn",[110,6073,6075],{"className":539,"code":6074,"language":541,"meta":119,"style":119},"# Count new connections and disconnections\ngrep -c \"Connected to peer\" \u002Fvar\u002Flog\u002Frippled\u002Fdebug.log\ngrep -c \"Disconnected from peer\" \u002Fvar\u002Flog\u002Frippled\u002Fdebug.log\n",[117,6076,6077,6082,6095],{"__ignoreMap":119},[173,6078,6079],{"class":175,"line":176},[173,6080,6081],{"class":186},"# Count new connections and disconnections\n",[173,6083,6084,6087,6089,6092],{"class":175,"line":183},[173,6085,6086],{"class":179},"grep",[173,6088,6050],{"class":880},[173,6090,6091],{"class":551}," \"Connected to peer\"",[173,6093,6094],{"class":551}," \u002Fvar\u002Flog\u002Frippled\u002Fdebug.log\n",[173,6096,6097,6099,6101,6104],{"class":175,"line":190},[173,6098,6086],{"class":179},[173,6100,6050],{"class":880},[173,6102,6103],{"class":551}," \"Disconnected from peer\"",[173,6105,6094],{"class":551},[22,6107,6108,6110],{},[47,6109,5900],{},": Assess stability",[22,6112,6113],{},"Calculate:",[52,6115,6116,6119,6122],{},[55,6117,6118],{},"Connection churn rate (disconnections per hour)",[55,6120,6121],{},"Average peer lifetime",[55,6123,6124],{},"Reconnection frequency",[22,6126,6127],{},[47,6128,6129],{},"Part 5: Peer Quality Distribution",[22,6131,6132,6134],{},[47,6133,5776],{},": Extract peer metrics",[22,6136,6137,6138,6141],{},"From ",[117,6139,6140],{},"peers"," output, record for each peer:",[52,6143,6144,6146,6148],{},[55,6145,1715],{},[55,6147,2113],{},[55,6149,6150],{},"Complete ledgers range",[22,6152,6153,6155],{},[47,6154,5800],{},": Create distribution charts",[22,6157,6158],{},"Latency distribution:",[110,6160,6163],{"className":6161,"code":6162,"language":115},[113],"0-50ms:    |||||| (6 peers)\n51-100ms:  |||||||||| (10 peers)\n101-200ms: ||| (3 peers)\n201+ms:    | (1 peer)\n",[117,6164,6162],{"__ignoreMap":119},[22,6166,6167,6169],{},[47,6168,5900],{},": Identify issues",[52,6171,6172,6175,6178],{},[55,6173,6174],{},"Are any peers consistently high-latency?",[55,6176,6177],{},"Do any peers have incomplete ledger history?",[55,6179,6180],{},"Are there peers with low uptime?",[22,6182,6183],{},[47,6184,6185],{},"Analysis Questions",[22,6187,6188],{},"Answer these based on your observations:",[492,6190,6191,6201,6211,6221,6231,6241],{},[55,6192,6193,6196],{},[47,6194,6195],{},"What's your average peer latency?",[52,6197,6198],{},[55,6199,6200],{},"Is it acceptable (\u003C200ms)?",[55,6202,6203,6206],{},[47,6204,6205],{},"How stable are your connections?",[52,6207,6208],{},[55,6209,6210],{},"High churn may indicate network issues",[55,6212,6213,6216],{},[47,6214,6215],{},"Are you well-connected to validators?",[52,6217,6218],{},[55,6219,6220],{},"Check against your UNL",[55,6222,6223,6226],{},[47,6224,6225],{},"What's your network position?",[52,6227,6228],{},[55,6229,6230],{},"Are you mostly receiving or mostly sending connections?",[55,6232,6233,6236],{},[47,6234,6235],{},"Do you see any problematic peers?",[52,6237,6238],{},[55,6239,6240],{},"High latency, frequent disconnections?",[55,6242,6243,6246],{},[47,6244,6245],{},"How does your node handle connection limits?",[52,6247,6248],{},[55,6249,6250],{},"Does it maintain target peer count?",[14,6252],{},[17,6254,6256],{"id":6255},"key-takeaways","Key Takeaways",[39,6258,6260],{"id":6259},"core-concepts","Core Concepts",[22,6262,6263,6264,6267],{},"✅ ",[47,6265,6266],{},"Mesh Topology",": Decentralized network with no single point of failure",[22,6269,6263,6270,6273],{},[47,6271,6272],{},"Three Connection Types",": Outbound, inbound, and fixed connections serve different purposes",[22,6275,6263,6276,6279],{},[47,6277,6278],{},"Multi-Mechanism Discovery",": DNS seeds, configured peers, and gossip protocol enable robust peer discovery",[22,6281,6263,6282,6285],{},[47,6283,6284],{},"Connection Quality",": Continuous monitoring and scoring of peer quality",[22,6287,6263,6288,6291],{},[47,6289,6290],{},"Intelligent Routing",": Message-specific routing strategies optimize network efficiency",[22,6293,6263,6294,6296],{},[47,6295,3463],{},": Prevents message loops and duplicate processing",[22,6298,6263,6299,6302],{},[47,6300,6301],{},"Priority Queuing",": Ensures critical messages are transmitted first",[39,6304,6306],{"id":6305},"network-health","Network Health",[22,6308,6263,6309,6312],{},[47,6310,6311],{},"Target Peer Count",": Based on node_size configuration",[22,6314,6263,6315,6318],{},[47,6316,6317],{},"Balanced Connections",": ~50% outbound, ~50% inbound",[22,6320,6263,6321,6324],{},[47,6322,6323],{},"Quality Metrics",": Latency, message rate, error rate, uptime",[22,6326,6263,6327,6329],{},[47,6328,2443],{},": Low-quality peers replaced with better alternatives",[22,6331,6263,6332,6334],{},[47,6333,1588],{},": Critical connections maintained aggressively",[39,6336,6338],{"id":6337},"development-skills","Development Skills",[22,6340,6263,6341,6344,6345],{},[47,6342,6343],{},"Codebase Location",": Overlay implementation in ",[117,6346,6347],{},"src\u002Fripple\u002Foverlay\u002F",[22,6349,6263,6350,6352,6353,2403,6355,2403,6357,6360],{},[47,6351,164],{},": Understanding ",[117,6354,400],{},[117,6356,431],{},[117,6358,6359],{},"[port_peer]"," sections",[22,6362,6263,6363,6366],{},[47,6364,6365],{},"Monitoring",": Using RPC commands and logs to assess network health",[22,6368,6263,6369,6372],{},[47,6370,6371],{},"Debugging",": Tracing connection issues and message flow",[14,6374],{},[17,6376,6378],{"id":6377},"common-issues-and-solutions","Common Issues and Solutions",[39,6380,6382],{"id":6381},"issue-1-low-peer-count","Issue 1: Low Peer Count",[22,6384,6385,6388],{},[47,6386,6387],{},"Symptoms",": Active peers consistently below target",[22,6390,6391,78],{},[47,6392,6393],{},"Possible Causes",[52,6395,6396,6399,6402],{},[55,6397,6398],{},"Firewall blocking inbound connections",[55,6400,6401],{},"ISP blocking port",[55,6403,6404],{},"Poor peer quality (all disconnect quickly)",[22,6406,6407,78],{},[47,6408,6409],{},"Solutions",[110,6411,6413],{"className":539,"code":6412,"language":541,"meta":119,"style":119},"# Check firewall\nsudo iptables -L | grep 51235\n\n# Verify port is accessible\ntelnet your-ip 51235\n\n# Check if node is reachable\nrippled server_info | grep pubkey_node\n",[117,6414,6415,6420,6438,6442,6447,6457,6461,6466],{"__ignoreMap":119},[173,6416,6417],{"class":175,"line":176},[173,6418,6419],{"class":186},"# Check firewall\n",[173,6421,6422,6425,6428,6431,6433,6435],{"class":175,"line":183},[173,6423,6424],{"class":179},"sudo",[173,6426,6427],{"class":551}," iptables",[173,6429,6430],{"class":880}," -L",[173,6432,5886],{"class":253},[173,6434,5889],{"class":179},[173,6436,6437],{"class":880}," 51235\n",[173,6439,6440],{"class":175,"line":190},[173,6441,1501],{"emptyLinePlaceholder":1500},[173,6443,6444],{"class":175,"line":197},[173,6445,6446],{"class":186},"# Verify port is accessible\n",[173,6448,6449,6452,6455],{"class":175,"line":203},[173,6450,6451],{"class":179},"telnet",[173,6453,6454],{"class":551}," your-ip",[173,6456,6437],{"class":880},[173,6458,6459],{"class":175,"line":952},[173,6460,1501],{"emptyLinePlaceholder":1500},[173,6462,6463],{"class":175,"line":973},[173,6464,6465],{"class":186},"# Check if node is reachable\n",[173,6467,6468,6470,6473,6475,6477],{"class":175,"line":993},[173,6469,4358],{"class":179},[173,6471,6472],{"class":551}," server_info",[173,6474,5886],{"class":253},[173,6476,5889],{"class":179},[173,6478,6479],{"class":551}," pubkey_node\n",[39,6481,6483],{"id":6482},"issue-2-high-latency-peers","Issue 2: High Latency Peers",[22,6485,6486,6488],{},[47,6487,6387],{},": Average latency >200ms",[22,6490,6491,78],{},[47,6492,6393],{},[52,6494,6495,6498,6501],{},[55,6496,6497],{},"Geographic distance to peers",[55,6499,6500],{},"Network congestion",[55,6502,6503],{},"Poor quality peers",[22,6505,6506,78],{},[47,6507,6409],{},[110,6509,6511],{"className":539,"code":6510,"language":541,"meta":119,"style":119},"# Manually connect to closer peers\nrippled connect low-latency-peer.example.com:51235\n\n# Add fixed peers in same region\n[ips_fixed]\nlocal-peer-1.example.com 51235\nlocal-peer-2.example.com 51235\n",[117,6512,6513,6518,6527,6531,6536,6540,6547],{"__ignoreMap":119},[173,6514,6515],{"class":175,"line":176},[173,6516,6517],{"class":186},"# Manually connect to closer peers\n",[173,6519,6520,6522,6524],{"class":175,"line":183},[173,6521,4358],{"class":179},[173,6523,4561],{"class":551},[173,6525,6526],{"class":551}," low-latency-peer.example.com:51235\n",[173,6528,6529],{"class":175,"line":190},[173,6530,1501],{"emptyLinePlaceholder":1500},[173,6532,6533],{"class":175,"line":197},[173,6534,6535],{"class":186},"# Add fixed peers in same region\n",[173,6537,6538],{"class":175,"line":203},[173,6539,318],{"class":193},[173,6541,6542,6545],{"class":175,"line":952},[173,6543,6544],{"class":179},"local-peer-1.example.com",[173,6546,6437],{"class":880},[173,6548,6549,6552],{"class":175,"line":973},[173,6550,6551],{"class":179},"local-peer-2.example.com",[173,6553,6437],{"class":880},[39,6555,6557],{"id":6556},"issue-3-frequent-disconnections","Issue 3: Frequent Disconnections",[22,6559,6560,6562],{},[47,6561,6387],{},": High connection churn rate",[22,6564,6565,78],{},[47,6566,6393],{},[52,6568,6569,6572,6575],{},[55,6570,6571],{},"Network instability",[55,6573,6574],{},"Protocol incompatibility",[55,6576,6577],{},"Being saturated by other peers",[22,6579,6580,78],{},[47,6581,6409],{},[110,6583,6585],{"className":539,"code":6584,"language":541,"meta":119,"style":119},"# Check logs for disconnect reasons\ngrep \"Disconnected\" \u002Fvar\u002Flog\u002Frippled\u002Fdebug.log\n\n# Look for patterns\ngrep \"Disconnected.*reason\" \u002Fvar\u002Flog\u002Frippled\u002Fdebug.log | \\\n  cut -d: -f4 | sort | uniq -c\n",[117,6586,6587,6592,6601,6605,6610,6624],{"__ignoreMap":119},[173,6588,6589],{"class":175,"line":176},[173,6590,6591],{"class":186},"# Check logs for disconnect reasons\n",[173,6593,6594,6596,6599],{"class":175,"line":183},[173,6595,6086],{"class":179},[173,6597,6598],{"class":551}," \"Disconnected\"",[173,6600,6094],{"class":551},[173,6602,6603],{"class":175,"line":190},[173,6604,1501],{"emptyLinePlaceholder":1500},[173,6606,6607],{"class":175,"line":197},[173,6608,6609],{"class":186},"# Look for patterns\n",[173,6611,6612,6614,6617,6619,6621],{"class":175,"line":203},[173,6613,6086],{"class":179},[173,6615,6616],{"class":551}," \"Disconnected.*reason\"",[173,6618,5883],{"class":551},[173,6620,5886],{"class":253},[173,6622,6623],{"class":253}," \\\n",[173,6625,6626,6629,6632,6635,6637,6640,6642,6645],{"class":175,"line":952},[173,6627,6628],{"class":179},"  cut",[173,6630,6631],{"class":880}," -d:",[173,6633,6634],{"class":880}," -f4",[173,6636,5886],{"class":253},[173,6638,6639],{"class":179}," sort",[173,6641,5886],{"class":253},[173,6643,6644],{"class":179}," uniq",[173,6646,6647],{"class":880}," -c\n",[39,6649,6651],{"id":6650},"issue-4-no-validator-connections","Issue 4: No Validator Connections",[22,6653,6654,6656],{},[47,6655,6387],{},": Not connected to any UNL validators",[22,6658,6659,78],{},[47,6660,6393],{},[52,6662,6663,6666,6669],{},[55,6664,6665],{},"Validators are unreachable",[55,6667,6668],{},"Validators' connection slots full",[55,6670,6671],{},"Network configuration issues",[22,6673,6674,78],{},[47,6675,6409],{},[110,6677,6679],{"className":539,"code":6678,"language":541,"meta":119,"style":119},"# Manually connect to validators\nrippled connect validator.example.com:51235\n\n# Use fixed connections for validators\n[ips_fixed]\nvalidator1.example.com 51235\nvalidator2.example.com 51235\n",[117,6680,6681,6686,6695,6699,6704,6708,6715],{"__ignoreMap":119},[173,6682,6683],{"class":175,"line":176},[173,6684,6685],{"class":186},"# Manually connect to validators\n",[173,6687,6688,6690,6692],{"class":175,"line":183},[173,6689,4358],{"class":179},[173,6691,4561],{"class":551},[173,6693,6694],{"class":551}," validator.example.com:51235\n",[173,6696,6697],{"class":175,"line":190},[173,6698,1501],{"emptyLinePlaceholder":1500},[173,6700,6701],{"class":175,"line":197},[173,6702,6703],{"class":186},"# Use fixed connections for validators\n",[173,6705,6706],{"class":175,"line":203},[173,6707,318],{"class":193},[173,6709,6710,6713],{"class":175,"line":952},[173,6711,6712],{"class":179},"validator1.example.com",[173,6714,6437],{"class":880},[173,6716,6717,6720],{"class":175,"line":973},[173,6718,6719],{"class":179},"validator2.example.com",[173,6721,6437],{"class":880},[14,6723],{},[17,6725,6727],{"id":6726},"additional-resources","Additional Resources",[39,6729,6731],{"id":6730},"official-documentation","Official Documentation",[52,6733,6734,6746,6756],{},[55,6735,6736,4405,6739],{},[47,6737,6738],{},"XRP Ledger Dev Portal",[6740,6741,6745],"a",{"href":6742,"rel":6743},"https:\u002F\u002Fxrpl.org\u002Fdocs",[6744],"nofollow","xrpl.org\u002Fdocs",[55,6747,6748,4405,6751],{},[47,6749,6750],{},"Peer Protocol",[6740,6752,6755],{"href":6753,"rel":6754},"https:\u002F\u002Fxrpl.org\u002Fdocs\u002Fconcepts\u002Fnetworks-and-servers\u002Fpeer-protocol",[6744],"xrpl.org\u002Fpeer-protocol",[55,6757,6758,4405,6761],{},[47,6759,6760],{},"Server Configuration",[6740,6762,6765],{"href":6763,"rel":6764},"https:\u002F\u002Fxrpl.org\u002Fdocs\u002Finfrastructure\u002Fconfiguration",[6744],"xrpl.org\u002Frippled-server-configuration",[39,6767,6769],{"id":6768},"codebase-references","Codebase References",[52,6771,6772,6777,6782],{},[55,6773,6774,6776],{},[117,6775,6347],{}," - Overlay network implementation",[55,6778,6779,6781],{},[117,6780,4687],{}," - Peer connection handling",[55,6783,6784,6786],{},[117,6785,4662],{}," - Core overlay logic",[39,6788,6790],{"id":6789},"related-topics","Related Topics",[52,6792,6793,6800,6807],{},[55,6794,6795,6799],{},[6740,6796,6798],{"href":6797},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability","Protocols"," - Protocol message formats and communication",[55,6801,6802,6806],{},[6740,6803,6805],{"href":6804},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol","Consensus Engine"," - How consensus uses overlay network",[55,6808,6809,6813],{},[6740,6810,6812],{"href":6811},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination","Application Layer"," - How overlay integrates with application",[14,6815],{},[6817,6818,6819],"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 .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}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 .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}html pre.shiki code .sKpQp, html code.shiki .sKpQp{--shiki-default:#72F088}",{"title":119,"searchDepth":183,"depth":183,"links":6821},[6822,6823,6829,6835,6839,6845,6850,6855,6860,6863,6868,6874],{"id":19,"depth":183,"text":20},{"id":36,"depth":183,"text":37,"children":6824},[6825,6826,6827,6828],{"id":41,"depth":190,"text":42},{"id":107,"depth":190,"text":108},{"id":125,"depth":190,"text":126},{"id":341,"depth":190,"text":342},{"id":385,"depth":183,"text":386,"children":6830},[6831,6832,6833,6834],{"id":389,"depth":190,"text":390},{"id":481,"depth":190,"text":482},{"id":606,"depth":190,"text":607},{"id":690,"depth":190,"text":691},{"id":737,"depth":183,"text":738,"children":6836},[6837,6838],{"id":741,"depth":190,"text":742},{"id":751,"depth":190,"text":752},{"id":1455,"depth":183,"text":1456,"children":6840},[6841,6842,6843,6844],{"id":1459,"depth":190,"text":1460},{"id":1701,"depth":190,"text":1702},{"id":2442,"depth":190,"text":2443},{"id":2694,"depth":190,"text":2695},{"id":3040,"depth":183,"text":3041,"children":6846},[6847,6848,6849],{"id":3044,"depth":190,"text":3045},{"id":3462,"depth":190,"text":3463},{"id":3661,"depth":190,"text":3662},{"id":3995,"depth":183,"text":3996,"children":6851},[6852,6853,6854],{"id":3999,"depth":190,"text":4000},{"id":4339,"depth":190,"text":4340},{"id":4567,"depth":190,"text":4568},{"id":4633,"depth":183,"text":4634,"children":6856},[6857,6858,6859],{"id":4637,"depth":190,"text":4638},{"id":4729,"depth":190,"text":4730},{"id":5376,"depth":190,"text":5377},{"id":5755,"depth":183,"text":5756,"children":6861},[6862],{"id":5759,"depth":190,"text":5760},{"id":6255,"depth":183,"text":6256,"children":6864},[6865,6866,6867],{"id":6259,"depth":190,"text":6260},{"id":6305,"depth":190,"text":6306},{"id":6337,"depth":190,"text":6338},{"id":6377,"depth":183,"text":6378,"children":6869},[6870,6871,6872,6873],{"id":6381,"depth":190,"text":6382},{"id":6482,"depth":190,"text":6483},{"id":6556,"depth":190,"text":6557},{"id":6650,"depth":190,"text":6651},{"id":6726,"depth":183,"text":6727,"children":6875},[6876,6877,6878],{"id":6730,"depth":190,"text":6731},{"id":6768,"depth":190,"text":6769},{"id":6789,"depth":190,"text":6790},"Overlay Network: Peer-to-Peer Networking Layer for Rippled II: Deep Dive into the Protocol and Codebase, in the Core Dev Bootcamp: XRPL Commons docs.","md",{},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":5,"description":6879},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer.md","docs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer","RaSmRM_WxqZTzkQVS6pOpf6bMFACSL-T6DmX9KMKs3w",[],[6889,6930,6944,6964,6987,7375],{"title":6890,"path":6891,"children":6892,"description":6929,"pages":1194},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[6893,6896,6899,6902,6905,6908,6911,6914,6917,6920,6923,6926],{"title":6894,"path":6895},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":6897,"path":6898},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":6900,"path":6901},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":6903,"path":6904},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":6906,"path":6907},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":6909,"path":6910},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":6912,"path":6913},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":6915,"path":6916},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":6918,"path":6919},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":6921,"path":6922},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":6924,"path":6925},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":6927,"path":6928},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",{"title":6931,"path":6932,"children":6933,"description":6943,"pages":197},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[6934,6937,6940],{"title":6935,"path":6936},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":6938,"path":6939},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":6941,"path":6942},"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":6945,"path":6946,"children":6947,"description":6963,"pages":952},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[6948,6951,6954,6957,6960],{"title":6949,"path":6950},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":6952,"path":6953},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":6955,"path":6956},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":6958,"path":6959},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":6961,"path":6962},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":6965,"path":6966,"children":6967,"description":6986,"pages":973},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[6968,6971,6974,6977,6980,6983],{"title":6969,"path":6970},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":6972,"path":6973},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":6975,"path":6976},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":6978,"path":6979},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":6981,"path":6982},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":6984,"path":6985},"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":6988,"path":6989,"children":6990,"description":7373,"pages":7374},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[6991,7011,7049,7099,7130,7187,7217,7233,7273,7307,7332,7348],{"title":6992,"path":6993,"children":6994},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[6995,6998,7001,7004],{"title":6996,"path":6997},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":6999,"path":7000},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":7002,"path":7003},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":7005,"path":7006,"children":7007},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[7008],{"title":7009,"path":7010},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":7012,"path":7013,"children":7014},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[7015,7017,7020,7022,7024,7025,7028,7031,7034],{"title":7016,"path":6797},"Protocols: Communication and Interoperability",{"title":7018,"path":7019},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":7021,"path":6811},"Application Layer: Central Orchestration and Coordination",{"title":7023,"path":6804},"Consensus Engine: XRP Ledger Consensus Protocol",{"title":5,"path":6882},{"title":7026,"path":7027},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":7029,"path":7030},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":7032,"path":7033},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":7005,"path":7035,"children":7036},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[7037,7040,7043,7046],{"title":7038,"path":7039},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":7041,"path":7042},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":7044,"path":7045},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":7047,"path":7048},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":7050,"path":7051,"children":7052},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[7053,7056,7059,7062,7065,7068,7071,7074,7077,7080,7083,7086],{"title":7054,"path":7055},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":7057,"path":7058},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":7060,"path":7061},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":7063,"path":7064},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":7066,"path":7067},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":7069,"path":7070},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":7072,"path":7073},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":7075,"path":7076},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":7078,"path":7079},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":7081,"path":7082},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":7084,"path":7085},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":7087,"path":7088,"children":7089},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[7090,7093,7096],{"title":7091,"path":7092},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":7094,"path":7095},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":7097,"path":7098},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":7100,"path":7101,"children":7102},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[7103,7106,7109,7112,7115,7118,7121,7124,7127],{"title":7104,"path":7105},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":7107,"path":7108},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":7110,"path":7111},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":7113,"path":7114},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":7116,"path":7117},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":7119,"path":7120},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":7122,"path":7123},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":7125,"path":7126},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":7128,"path":7129},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":7131,"path":7132,"children":7133},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[7134,7137,7140,7143,7146,7149,7152,7155,7158,7161,7164,7167,7170,7181],{"title":7135,"path":7136},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":7138,"path":7139},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":7141,"path":7142},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":7144,"path":7145},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":7147,"path":7148},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":7150,"path":7151},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":7153,"path":7154},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":7156,"path":7157},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":7159,"path":7160},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":7162,"path":7163},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":7165,"path":7166},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":7168,"path":7169},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":7087,"path":7171,"children":7172},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[7173,7175,7178],{"title":7091,"path":7174},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":7176,"path":7177},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":7179,"path":7180},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":7005,"path":7182,"children":7183},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[7184],{"title":7185,"path":7186},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":7188,"path":7189,"children":7190},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[7191,7194,7196,7199,7202,7205,7211],{"title":7192,"path":7193},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":742,"path":7195},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":7197,"path":7198},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":7200,"path":7201},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":7203,"path":7204},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":7087,"path":7206,"children":7207},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[7208],{"title":7209,"path":7210},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":7005,"path":7212,"children":7213},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[7214],{"title":7215,"path":7216},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":7218,"path":7219,"children":7220},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[7221,7224,7227,7230],{"title":7222,"path":7223},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":7225,"path":7226},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":7228,"path":7229},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":7231,"path":7232},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":7234,"path":7235,"children":7236},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[7237,7240,7243,7246,7249,7261],{"title":7238,"path":7239},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":7241,"path":7242},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":7244,"path":7245},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":7247,"path":7248},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":7087,"path":7250,"children":7251},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[7252,7255,7258],{"title":7253,"path":7254},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":7256,"path":7257},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":7259,"path":7260},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":7005,"path":7262,"children":7263},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[7264,7267,7270],{"title":7265,"path":7266},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":7268,"path":7269},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":7271,"path":7272},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":7274,"path":7275,"children":7276},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[7277,7280,7283,7286,7289,7292,7295,7298],{"title":7278,"path":7279},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":7281,"path":7282},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":7284,"path":7285},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":7287,"path":7288},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":7290,"path":7291},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":7293,"path":7294},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":7296,"path":7297},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":7005,"path":7299,"children":7300},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[7301,7304],{"title":7302,"path":7303},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":7305,"path":7306},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":7308,"path":7309,"children":7310},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[7311,7314,7317,7320,7323,7326,7329],{"title":7312,"path":7313},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":7315,"path":7316},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":7318,"path":7319},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":7321,"path":7322},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":7324,"path":7325},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":7327,"path":7328},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":7330,"path":7331},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":7333,"path":7334,"children":7335},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[7336,7339,7342,7345],{"title":7337,"path":7338},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":7340,"path":7341},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":7343,"path":7344},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":7346,"path":7347},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":7349,"path":7350,"children":7351},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[7352,7355,7358,7361,7364,7367,7370],{"title":7353,"path":7354},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":7356,"path":7357},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":7359,"path":7360},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":7362,"path":7363},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":7365,"path":7366},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":7368,"path":7369},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":7371,"path":7372},"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":7376,"path":7377,"children":7378,"description":7385,"pages":190},"Tools","\u002Fdocs\u002Ftools",[7379,7382],{"title":7380,"path":7381},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":7383,"path":7384},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220770465]