[{"data":1,"prerenderedAt":1527},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation":1024,"docs-tracks":1025},{"id":4,"title":5,"body":6,"description":1016,"extension":1017,"meta":1018,"navigation":265,"path":1019,"seo":1020,"source":1021,"stem":1022,"__hash__":1023},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation.md","Ledger Acquisition and Validation",{"type":7,"value":8,"toc":1001},"minimark",[9,13,16,21,25,29,32,43,47,53,118,122,125,131,135,138,379,385,391,395,400,406,410,415,492,497,503,508,554,558,564,568,571,725,729,732,738,742,747,753,758,844,848,851,857,861,866,920,925,971,976,994,997],[10,11,5],"h1",{"id":12},"ledger-acquisition-and-validation",[14,15],"hr",{},[17,18,20],"h2",{"id":19},"introduction","Introduction",[22,23,24],"p",{},"Nodes in the XRP Ledger network must maintain a consistent view of the ledger chain. This requires mechanisms to acquire missing ledgers from peers, validate their correctness, and integrate them into the local chain. This chapter covers the LedgerMaster orchestration layer, the InboundLedgers acquisition system, and the validation process.",[17,26,28],{"id":27},"ledgermaster-overview","LedgerMaster Overview",[22,30,31],{},"The LedgerMaster is the central coordinator for ledger state management:",[33,34,39],"pre",{"className":35,"code":37,"language":38},[36],"language-text","┌─────────────────────────────────────────────────────────────┐\n│                     LEDGER MASTER                           │\n│                                                             │\n│   ┌─────────────────────────────────────────────────────┐   │\n│   │                 Core State                          │   │\n│   │                                                     │   │\n│   │   mPubLedger      - Last published ledger           │   │\n│   │   mValidLedger    - Last validated ledger           │   │\n│   │   mLedgerHistory  - Historical ledger cache         │   │\n│   │   mClosedLedger   - Last closed ledger              │   │\n│   │   mCurrentLedger  - Working ledger (mutable)        │   │\n│   └─────────────────────────────────────────────────────┘   │\n│                                                             │\n│   ┌─────────────────────────────────────────────────────┐   │\n│   │                 Key Functions                       │   │\n│   │                                                     │   │\n│   │   doAdvance()       - Advance ledger state          │   │\n│   │   fetchForHistory() - Acquire missing ledgers       │   │\n│   │   checkAccept()     - Validate new ledger           │   │\n│   │   tryAdvance()      - Continue state machine        │   │\n│   │   storeLedger()     - Persist ledger                │   │\n│   └─────────────────────────────────────────────────────┘   │\n└─────────────────────────────────────────────────────────────┘\n","text",[40,41,37],"code",{"__ignoreMap":42},"",[17,44,46],{"id":45},"ledger-types-in-ledgermaster","Ledger Types in LedgerMaster",[33,48,51],{"className":49,"code":50,"language":38},[36],"┌─────────────────────────────────────────────────────────────┐\n│                   LEDGER TYPES                              │\n│                                                             │\n│   Timeline:                                                 │\n│                                                             │\n│   ┌─────────┐  ┌─────────┐  ┌─────────┐  ┌─────────────┐    │\n│   │Published│→ │Validated│→ │ Closed  │→ │  Current    │    │\n│   │ Ledger  │  │ Ledger  │  │ Ledger  │  │  (Open)     │    │\n│   └─────────┘  └─────────┘  └─────────┘  └─────────────┘    │\n│       ↑            ↑            ↑             ↑             │\n│   Streamed to  Network has   Consensus    Accepting         │\n│   clients      validated     completed    new txns          │\n│                                                             │\n│   Published ≤ Validated ≤ Closed ≤ Current                  │\n└─────────────────────────────────────────────────────────────┘\n",[40,52,50],{"__ignoreMap":42},[54,55,56,72],"table",{},[57,58,59],"thead",{},[60,61,62,66,69],"tr",{},[63,64,65],"th",{},"Ledger Type",[63,67,68],{},"Description",[63,70,71],{},"Mutability",[73,74,75,87,98,108],"tbody",{},[60,76,77,81,84],{},[78,79,80],"td",{},"Current",[78,82,83],{},"Open ledger accepting transactions",[78,85,86],{},"Mutable",[60,88,89,92,95],{},[78,90,91],{},"Closed",[78,93,94],{},"Just closed, awaiting validation",[78,96,97],{},"Immutable",[60,99,100,103,106],{},[78,101,102],{},"Validated",[78,104,105],{},"Network consensus achieved",[78,107,97],{},[60,109,110,113,116],{},[78,111,112],{},"Published",[78,114,115],{},"Streamed to subscribers",[78,117,97],{},[17,119,121],{"id":120},"gap-detection-and-filling","Gap Detection and Filling",[22,123,124],{},"When the node detects missing ledgers, it initiates acquisition:",[33,126,129],{"className":127,"code":128,"language":38},[36],"┌─────────────────────────────────────────────────────────────┐\n│                   GAP DETECTION                             │\n│                                                             │\n│   Local Chain:                                              │\n│                                                             │\n│   [Ledger 600] ──► [???] ──► [???] ──► [Ledger 603]         │\n│                     601       602                           │\n│                                                             │\n│   Detection:                                                │\n│   doAdvance() finds gap between 600 and 603                 │\n│                                                             │\n│   Filling Strategy:                                         │\n│   1. Request ledger 602 first (work backwards)              │\n│   2. When 602 complete, request 601                         │\n│   3. Continue until gap closed                              │\n│                                                             │\n│   Why backwards?                                            │\n│   - Can validate chain linkage immediately                  │\n│   - 602's parentHash must equal 601's hash                  │\n└─────────────────────────────────────────────────────────────┘\n",[40,130,128],{"__ignoreMap":42},[17,132,134],{"id":133},"inboundledgers-system","InboundLedgers System",[22,136,137],{},"The InboundLedgers class manages ledger acquisition from peers:",[33,139,143],{"className":140,"code":141,"language":142,"meta":42,"style":42},"language-cpp shiki shiki-themes github-dark-high-contrast","\u002F\u002F InboundLedgers.h\nclass InboundLedgers {\npublic:\n    \u002F\u002F Start or continue acquisition\n    std::shared_ptr\u003CLedger const> acquire(\n        uint256 const& hash,\n        std::uint32_t seq,\n        InboundLedger::Reason reason);\n\n    \u002F\u002F Record acquisition failure\n    void logFailure(uint256 const& hash, std::uint32_t seq);\n\n    \u002F\u002F Process incoming data from peer\n    void gotData(\n        std::weak_ptr\u003CPeer> peer,\n        uint256 const& hash,\n        Blob const& data);\n};\n","cpp",[40,144,145,154,169,175,181,212,227,243,260,267,273,306,311,317,327,349,360,373],{"__ignoreMap":42},[146,147,150],"span",{"class":148,"line":149},"line",1,[146,151,153],{"class":152},"sQrFR","\u002F\u002F InboundLedgers.h\n",[146,155,157,161,165],{"class":148,"line":156},2,[146,158,160],{"class":159},"sWyjQ","class",[146,162,164],{"class":163},"s_sBn"," InboundLedgers",[146,166,168],{"class":167},"sMAXC"," {\n",[146,170,172],{"class":148,"line":171},3,[146,173,174],{"class":159},"public:\n",[146,176,178],{"class":148,"line":177},4,[146,179,180],{"class":152},"    \u002F\u002F Start or continue acquisition\n",[146,182,184,187,190,193,196,199,202,205,209],{"class":148,"line":183},5,[146,185,186],{"class":163},"    std",[146,188,189],{"class":167},"::",[146,191,192],{"class":163},"shared_ptr",[146,194,195],{"class":167},"\u003C",[146,197,198],{"class":163},"Ledger",[146,200,201],{"class":159}," const",[146,203,204],{"class":167},"> ",[146,206,208],{"class":207},"sj_SG","acquire",[146,210,211],{"class":167},"(\n",[146,213,215,218,221,224],{"class":148,"line":214},6,[146,216,217],{"class":163},"        uint256",[146,219,220],{"class":159}," const&",[146,222,223],{"class":163}," hash",[146,225,226],{"class":167},",\n",[146,228,230,233,235,238,241],{"class":148,"line":229},7,[146,231,232],{"class":163},"        std",[146,234,189],{"class":167},[146,236,237],{"class":159},"uint32_t",[146,239,240],{"class":163}," seq",[146,242,226],{"class":167},[146,244,246,249,251,254,257],{"class":148,"line":245},8,[146,247,248],{"class":163},"        InboundLedger",[146,250,189],{"class":167},[146,252,253],{"class":163},"Reason",[146,255,256],{"class":163}," reason",[146,258,259],{"class":167},");\n",[146,261,263],{"class":148,"line":262},9,[146,264,266],{"emptyLinePlaceholder":265},true,"\n",[146,268,270],{"class":148,"line":269},10,[146,271,272],{"class":152},"    \u002F\u002F Record acquisition failure\n",[146,274,276,279,282,285,288,290,292,295,298,300,302,304],{"class":148,"line":275},11,[146,277,278],{"class":159},"    void",[146,280,281],{"class":207}," logFailure",[146,283,284],{"class":167},"(",[146,286,287],{"class":163},"uint256",[146,289,220],{"class":159},[146,291,223],{"class":163},[146,293,294],{"class":167},", ",[146,296,297],{"class":163},"std",[146,299,189],{"class":167},[146,301,237],{"class":159},[146,303,240],{"class":163},[146,305,259],{"class":167},[146,307,309],{"class":148,"line":308},12,[146,310,266],{"emptyLinePlaceholder":265},[146,312,314],{"class":148,"line":313},13,[146,315,316],{"class":152},"    \u002F\u002F Process incoming data from peer\n",[146,318,320,322,325],{"class":148,"line":319},14,[146,321,278],{"class":159},[146,323,324],{"class":207}," gotData",[146,326,211],{"class":167},[146,328,330,332,334,337,339,342,344,347],{"class":148,"line":329},15,[146,331,232],{"class":163},[146,333,189],{"class":167},[146,335,336],{"class":163},"weak_ptr",[146,338,195],{"class":167},[146,340,341],{"class":163},"Peer",[146,343,204],{"class":167},[146,345,346],{"class":163},"peer",[146,348,226],{"class":167},[146,350,352,354,356,358],{"class":148,"line":351},16,[146,353,217],{"class":163},[146,355,220],{"class":159},[146,357,223],{"class":163},[146,359,226],{"class":167},[146,361,363,366,368,371],{"class":148,"line":362},17,[146,364,365],{"class":163},"        Blob",[146,367,220],{"class":159},[146,369,370],{"class":163}," data",[146,372,259],{"class":167},[146,374,376],{"class":148,"line":375},18,[146,377,378],{"class":167},"};\n",[22,380,381],{},[382,383,384],"strong",{},"Acquisition Architecture:",[33,386,389],{"className":387,"code":388,"language":38},[36],"┌─────────────────────────────────────────────────────────────┐\n│                  INBOUND LEDGERS                            │\n│                                                             │\n│   ┌─────────────────────────────────────────────────────┐   │\n│   │            InboundLedgersImp                        │   │\n│   │                                                     │   │\n│   │   mLedgers: map\u003Chash, InboundLedger>                │   │\n│   │   mRecentFailures: map\u003Chash, failure_info>          │   │\n│   │   mStash: pending data cache                        │   │\n│   └─────────────────────────────────────────────────────┘   │\n│                           │                                 │\n│                           ▼                                 │\n│   ┌─────────────────────────────────────────────────────┐   │\n│   │              InboundLedger                          │   │\n│   │                                                     │   │\n│   │   mHash: target ledger hash                         │   │\n│   │   mSeq: target sequence number                      │   │\n│   │   mLedger: assembled ledger (when complete)         │   │\n│   │   mPeers: peers to request from                     │   │\n│   │   mNeededStateNodes: missing state data             │   │\n│   │   mNeededTxNodes: missing tx data                   │   │\n│   └─────────────────────────────────────────────────────┘   │\n└─────────────────────────────────────────────────────────────┘\n",[40,390,388],{"__ignoreMap":42},[17,392,394],{"id":393},"acquisition-process","Acquisition Process",[22,396,397],{},[382,398,399],{},"Step-by-Step Flow:",[33,401,404],{"className":402,"code":403,"language":38},[36],"┌─────────────────────────────────────────────────────────────┐\n│              LEDGER ACQUISITION FLOW                        │\n│                                                             │\n│   Step 1: TRIGGERING                                        │\n│   ──────────────────                                        │\n│   LedgerMaster::doAdvance()                                 │\n│       │                                                     │\n│       ▼                                                     │\n│   fetchForHistory(missing_seq)                              │\n│       │                                                     │\n│       ├── Try local storage first                           │\n│       │                                                     │\n│       └── If not found: InboundLedgers::acquire()           │\n│                                                             │\n│   Step 2: INITIALIZATION                                    │\n│   ─────────────────────                                     │\n│   InboundLedgers::acquire()                                 │\n│       │                                                     │\n│       ├── Check if already in progress                      │\n│       │                                                     │\n│       └── Create new InboundLedger if needed                │\n│               │                                             │\n│               ▼                                             │\n│           InboundLedger::init()                             │\n│               │                                             │\n│               ├── Check local storage                       │\n│               ├── Check fetch packs                         │\n│               └── Request from peers                        │\n│                                                             │\n│   Step 3: DATA GATHERING                                    │\n│   ─────────────────────                                     │\n│   InboundLedger::gotData()                                  │\n│       │                                                     │\n│       ├── Queue incoming data                               │\n│       │                                                     │\n│       ▼                                                     │\n│   processBatch()                                            │\n│       │                                                     │\n│       ├── Validate received nodes                           │\n│       ├── Add to SHAMaps                                    │\n│       └── Request any still-missing data                    │\n│                                                             │\n│   Step 4: COMPLETION                                        │\n│   ────────────────                                          │\n│   InboundLedger::done()                                     │\n│       │                                                     │\n│       ├── Mark ledger immutable                             │\n│       ├── Store via LedgerMaster::storeLedger()             │\n│       │                                                     │\n│       ▼                                                     │\n│   Schedule job:                                             │\n│       ├── LedgerMaster::checkAccept()                       │\n│       └── LedgerMaster::tryAdvance()                        │\n└─────────────────────────────────────────────────────────────┘\n",[40,405,403],{"__ignoreMap":42},[17,407,409],{"id":408},"validation-process","Validation Process",[22,411,412],{},[382,413,414],{},"Validation Quorum:",[33,416,418],{"className":140,"code":417,"language":142,"meta":42,"style":42},"\u002F\u002F Validation requirements\nstruct ValidationQuorum {\n    std::size_t minVal;           \u002F\u002F Minimum validations needed\n    std::set\u003CNodeID> trustedValidators;  \u002F\u002F UNL validators\n    std::set\u003CNodeID> negativeUNL;        \u002F\u002F Excluded validators\n};\n",[40,419,420,425,435,450,470,488],{"__ignoreMap":42},[146,421,422],{"class":148,"line":149},[146,423,424],{"class":152},"\u002F\u002F Validation requirements\n",[146,426,427,430,433],{"class":148,"line":156},[146,428,429],{"class":159},"struct",[146,431,432],{"class":163}," ValidationQuorum",[146,434,168],{"class":167},[146,436,437,439,441,444,447],{"class":148,"line":171},[146,438,186],{"class":163},[146,440,189],{"class":167},[146,442,443],{"class":159},"size_t",[146,445,446],{"class":167}," minVal;",[146,448,449],{"class":152},"           \u002F\u002F Minimum validations needed\n",[146,451,452,454,456,459,461,464,467],{"class":148,"line":177},[146,453,186],{"class":163},[146,455,189],{"class":167},[146,457,458],{"class":163},"set",[146,460,195],{"class":167},[146,462,463],{"class":163},"NodeID",[146,465,466],{"class":167},"> trustedValidators;",[146,468,469],{"class":152},"  \u002F\u002F UNL validators\n",[146,471,472,474,476,478,480,482,485],{"class":148,"line":183},[146,473,186],{"class":163},[146,475,189],{"class":167},[146,477,458],{"class":163},[146,479,195],{"class":167},[146,481,463],{"class":163},[146,483,484],{"class":167},"> negativeUNL;",[146,486,487],{"class":152},"        \u002F\u002F Excluded validators\n",[146,489,490],{"class":148,"line":214},[146,491,378],{"class":167},[22,493,494],{},[382,495,496],{},"checkAccept Flow:",[33,498,501],{"className":499,"code":500,"language":38},[36],"┌─────────────────────────────────────────────────────────────┐\n│                CHECK ACCEPT FLOW                            │\n│                                                             │\n│   LedgerMaster::checkAccept(ledger)                         │\n│       │                                                     │\n│       ├── Can this ledger be current?                       │\n│       │   └── Check sequence > last validated               │\n│       │                                                     │\n│       ├── Count trusted validations                         │\n│       │   └── Filter by UNL, exclude negative UNL           │\n│       │                                                     │\n│       ├── validations >= minVal?                            │\n│       │       │                                             │\n│       │   NO  │  YES                                        │\n│       │   ↓   ↓                                             │\n│       │ Return  Continue                                    │\n│       │                                                     │\n│       ├── Mark ledger as validated                          │\n│       │                                                     │\n│       ├── Set as new validated ledger                       │\n│       │                                                     │\n│       ├── Handle fee voting                                 │\n│       │                                                     │\n│       ├── Check for amendment warnings                      │\n│       │                                                     │\n│       └── Call tryAdvance()                                 │\n└─────────────────────────────────────────────────────────────┘\n",[40,502,500],{"__ignoreMap":42},[22,504,505],{},[382,506,507],{},"Validation Checks:",[54,509,510,520],{},[57,511,512],{},[60,513,514,517],{},[63,515,516],{},"Check",[63,518,519],{},"Purpose",[73,521,522,530,538,546],{},[60,523,524,527],{},[78,525,526],{},"Sequence check",[78,528,529],{},"Ensure forward progress",[60,531,532,535],{},[78,533,534],{},"Trusted count",[78,536,537],{},"Verify UNL agreement",[60,539,540,543],{},[78,541,542],{},"Minimum threshold",[78,544,545],{},"Require sufficient validations",[60,547,548,551],{},[78,549,550],{},"Negative UNL",[78,552,553],{},"Exclude untrusted validators",[17,555,557],{"id":556},"tryadvance-state-machine","tryAdvance State Machine",[33,559,562],{"className":560,"code":561,"language":38},[36],"┌─────────────────────────────────────────────────────────────┐\n│                   TRY ADVANCE                               │\n│                                                             │\n│   LedgerMaster::tryAdvance()                                │\n│       │                                                     │\n│       ├── Check for more ledgers to acquire                 │\n│       │                                                     │\n│       ├── Check for ledgers to publish                      │\n│       │                                                     │\n│       ├── Trigger gap filling if needed                     │\n│       │                                                     │\n│       └── Schedule next advancement check                   │\n│                                                             │\n│   State Transitions:                                        │\n│                                                             │\n│   [Gap Detected] → [Acquiring] → [Validating] → [Publishing]│\n│         ↑              │              │              │      │\n│         └──────────────┴──────────────┴──────────────┘      │\n│                    (failures restart)                       │\n└─────────────────────────────────────────────────────────────┘\n",[40,563,561],{"__ignoreMap":42},[17,565,567],{"id":566},"ledger-storage","Ledger Storage",[22,569,570],{},"When a ledger is complete and validated:",[33,572,574],{"className":140,"code":573,"language":142,"meta":42,"style":42},"\u002F\u002F LedgerMaster::storeLedger\nvoid storeLedger(std::shared_ptr\u003CLedger const> ledger) {\n    \u002F\u002F 1. Verify integrity\n    assert(ledger->info().accountHash == ledger->stateMap().getHash());\n    assert(ledger->info().txHash == ledger->txMap().getHash());\n\n    \u002F\u002F 2. Store in history cache\n    mLedgerHistory.insert(ledger, \u002F*validated=*\u002Ftrue);\n\n    \u002F\u002F 3. Persist to database\n    \u002F\u002F Header → SQL\n    \u002F\u002F SHAMap nodes → NodeStore\n}\n",[40,575,576,581,611,616,648,672,676,681,701,705,710,715,720],{"__ignoreMap":42},[146,577,578],{"class":148,"line":149},[146,579,580],{"class":152},"\u002F\u002F LedgerMaster::storeLedger\n",[146,582,583,586,589,591,593,595,597,599,601,603,605,608],{"class":148,"line":156},[146,584,585],{"class":159},"void",[146,587,588],{"class":207}," storeLedger",[146,590,284],{"class":167},[146,592,297],{"class":163},[146,594,189],{"class":167},[146,596,192],{"class":163},[146,598,195],{"class":167},[146,600,198],{"class":163},[146,602,201],{"class":159},[146,604,204],{"class":167},[146,606,607],{"class":163},"ledger",[146,609,610],{"class":167},") {\n",[146,612,613],{"class":148,"line":171},[146,614,615],{"class":152},"    \u002F\u002F 1. Verify integrity\n",[146,617,618,621,624,627,630,633,636,639,642,645],{"class":148,"line":177},[146,619,620],{"class":207},"    assert",[146,622,623],{"class":167},"(ledger->",[146,625,626],{"class":207},"info",[146,628,629],{"class":167},"().accountHash ",[146,631,632],{"class":159},"==",[146,634,635],{"class":167}," ledger->",[146,637,638],{"class":207},"stateMap",[146,640,641],{"class":167},"().",[146,643,644],{"class":207},"getHash",[146,646,647],{"class":167},"());\n",[146,649,650,652,654,656,659,661,663,666,668,670],{"class":148,"line":183},[146,651,620],{"class":207},[146,653,623],{"class":167},[146,655,626],{"class":207},[146,657,658],{"class":167},"().txHash ",[146,660,632],{"class":159},[146,662,635],{"class":167},[146,664,665],{"class":207},"txMap",[146,667,641],{"class":167},[146,669,644],{"class":207},[146,671,647],{"class":167},[146,673,674],{"class":148,"line":214},[146,675,266],{"emptyLinePlaceholder":265},[146,677,678],{"class":148,"line":229},[146,679,680],{"class":152},"    \u002F\u002F 2. Store in history cache\n",[146,682,683,686,689,692,695,699],{"class":148,"line":245},[146,684,685],{"class":167},"    mLedgerHistory.",[146,687,688],{"class":207},"insert",[146,690,691],{"class":167},"(ledger,",[146,693,694],{"class":152}," \u002F*validated=*\u002F",[146,696,698],{"class":697},"sCcAr","true",[146,700,259],{"class":167},[146,702,703],{"class":148,"line":262},[146,704,266],{"emptyLinePlaceholder":265},[146,706,707],{"class":148,"line":269},[146,708,709],{"class":152},"    \u002F\u002F 3. Persist to database\n",[146,711,712],{"class":148,"line":275},[146,713,714],{"class":152},"    \u002F\u002F Header → SQL\n",[146,716,717],{"class":148,"line":308},[146,718,719],{"class":152},"    \u002F\u002F SHAMap nodes → NodeStore\n",[146,721,722],{"class":148,"line":313},[146,723,724],{"class":167},"}\n",[17,726,728],{"id":727},"publication-stream","Publication Stream",[22,730,731],{},"Validated ledgers are published to clients:",[33,733,736],{"className":734,"code":735,"language":38},[36],"┌─────────────────────────────────────────────────────────────┐\n│                LEDGER PUBLICATION                           │\n│                                                             │\n│   LedgerMaster::findNewLedgersToPublish()                   │\n│       │                                                     │\n│       ▼                                                     │\n│   ┌─────────────────────────────────────────────────────┐   │\n│   │              Publication Queue                      │   │\n│   │                                                     │   │\n│   │   Last Published: 100                               │   │\n│   │   Last Validated: 105                               │   │\n│   │                                                     │   │\n│   │   Ready to publish: 101, 102, 103, 104, 105         │   │\n│   └─────────────────────────────────────────────────────┘   │\n│       │                                                     │\n│       ▼                                                     │\n│   For each ledger (in order):                               │\n│       │                                                     │\n│       ├── Check consecutive (no gaps)                       │\n│       │                                                     │\n│       ├── If gap found: acquire missing                     │\n│       │                                                     │\n│       └── Publish to subscribers                            │\n│               │                                             │\n│               ├── WebSocket clients                         │\n│               ├── Streaming APIs                            │\n│               └── Internal consumers                        │\n└─────────────────────────────────────────────────────────────┘\n",[40,737,735],{"__ignoreMap":42},[17,739,741],{"id":740},"error-handling-and-recovery","Error Handling and Recovery",[22,743,744],{},[382,745,746],{},"Acquisition Failures:",[33,748,751],{"className":749,"code":750,"language":38},[36],"┌─────────────────────────────────────────────────────────────┐\n│              ERROR HANDLING                                 │\n│                                                             │\n│   Failure Type         │ Recovery Action                    │\n│   ─────────────────────┼──────────────────────────────      │\n│   Network timeout      │ Retry with different peers         │\n│   Data corruption      │ Log, retry from scratch            │\n│   Missing peers        │ Wait for peer connections          │\n│   Invalid hash         │ Log failure, skip ledger           │\n│   Database error       │ Retry persistence                  │\n│                                                             │\n│   Failure Tracking:                                         │\n│                                                             │\n│   InboundLedgers::logFailure(hash, seq)                     │\n│       │                                                     │\n│       ├── Record in mRecentFailures                         │\n│       │                                                     │\n│       ├── Implement backoff strategy                        │\n│       │                                                     │\n│       └── Eventually retry or abandon                       │\n└─────────────────────────────────────────────────────────────┘\n",[40,752,750],{"__ignoreMap":42},[22,754,755],{},[382,756,757],{},"Validation Mismatches:",[33,759,761],{"className":140,"code":760,"language":142,"meta":42,"style":42},"\u002F\u002F When built ledger doesn't match validated\nif (builtHash != validatedHash) {\n    JLOG(journal_.warn())\n        \u003C\u003C \"Built ledger \" \u003C\u003C builtHash\n        \u003C\u003C \" doesn't match validated \" \u003C\u003C validatedHash;\n\n    \u002F\u002F Trigger reacquisition\n    acquireLedger(validatedHash, validatedSeq);\n}\n",[40,762,763,768,782,796,811,823,827,832,840],{"__ignoreMap":42},[146,764,765],{"class":148,"line":149},[146,766,767],{"class":152},"\u002F\u002F When built ledger doesn't match validated\n",[146,769,770,773,776,779],{"class":148,"line":156},[146,771,772],{"class":159},"if",[146,774,775],{"class":167}," (builtHash ",[146,777,778],{"class":159},"!=",[146,780,781],{"class":167}," validatedHash) {\n",[146,783,784,787,790,793],{"class":148,"line":171},[146,785,786],{"class":207},"    JLOG",[146,788,789],{"class":167},"(journal_.",[146,791,792],{"class":207},"warn",[146,794,795],{"class":167},"())\n",[146,797,798,801,805,808],{"class":148,"line":177},[146,799,800],{"class":159},"        \u003C\u003C",[146,802,804],{"class":803},"sTRMh"," \"Built ledger \"",[146,806,807],{"class":159}," \u003C\u003C",[146,809,810],{"class":167}," builtHash\n",[146,812,813,815,818,820],{"class":148,"line":183},[146,814,800],{"class":159},[146,816,817],{"class":803}," \" doesn't match validated \"",[146,819,807],{"class":159},[146,821,822],{"class":167}," validatedHash;\n",[146,824,825],{"class":148,"line":214},[146,826,266],{"emptyLinePlaceholder":265},[146,828,829],{"class":148,"line":229},[146,830,831],{"class":152},"    \u002F\u002F Trigger reacquisition\n",[146,833,834,837],{"class":148,"line":245},[146,835,836],{"class":207},"    acquireLedger",[146,838,839],{"class":167},"(validatedHash, validatedSeq);\n",[146,841,842],{"class":148,"line":262},[146,843,724],{"class":167},[17,845,847],{"id":846},"ledger-cleaning","Ledger Cleaning",[22,849,850],{},"The LedgerCleaner component maintains ledger integrity:",[33,852,855],{"className":853,"code":854,"language":38},[36],"┌─────────────────────────────────────────────────────────────┐\n│                 LEDGER CLEANER                              │\n│                                                             │\n│   Purpose:                                                  │\n│   • Check for missing or inconsistent nodes                 │\n│   • Fix transactions with missing metadata                  │\n│   • Reacquire corrupted data                                │\n│                                                             │\n│   Operation:                                                │\n│                                                             │\n│   LedgerCleaner::doClean()                                  │\n│       │                                                     │\n│       ├── Check configured ledger range                     │\n│       │                                                     │\n│       ├── For each ledger:                                  │\n│       │       │                                             │\n│       │       ├── Verify state tree nodes                   │\n│       │       │                                             │\n│       │       ├── Verify transaction nodes                  │\n│       │       │                                             │\n│       │       └── Fix or reacquire if needed                │\n│       │                                                     │\n│       └── Track failures for retry                          │\n│                                                             │\n│   Constraints:                                              │\n│   • Runs at low priority                                    │\n│   • Avoids high server load periods                         │\n│   • Configurable via RPC                                    │\n└─────────────────────────────────────────────────────────────┘\n",[40,856,854],{"__ignoreMap":42},[17,858,860],{"id":859},"summary","Summary",[22,862,863],{},[382,864,865],{},"Key Components:",[54,867,868,878],{},[57,869,870],{},[60,871,872,875],{},[63,873,874],{},"Component",[63,876,877],{},"Role",[73,879,880,888,896,904,912],{},[60,881,882,885],{},[78,883,884],{},"LedgerMaster",[78,886,887],{},"Central coordinator",[60,889,890,893],{},[78,891,892],{},"InboundLedgers",[78,894,895],{},"Network acquisition",[60,897,898,901],{},[78,899,900],{},"InboundLedger",[78,902,903],{},"Single ledger assembly",[60,905,906,909],{},[78,907,908],{},"LedgerHistory",[78,910,911],{},"Cache management",[60,913,914,917],{},[78,915,916],{},"LedgerCleaner",[78,918,919],{},"Integrity maintenance",[22,921,922],{},[382,923,924],{},"Acquisition Flow:",[926,927,928,935,941,947,953,959,965],"ol",{},[929,930,931,934],"li",{},[382,932,933],{},"Detection",": doAdvance() finds missing ledgers",[929,936,937,940],{},[382,938,939],{},"Request",": InboundLedgers::acquire() starts acquisition",[929,942,943,946],{},[382,944,945],{},"Gathering",": InboundLedger collects data from peers",[929,948,949,952],{},[382,950,951],{},"Assembly",": SHAMaps built from received nodes",[929,954,955,958],{},[382,956,957],{},"Validation",": checkAccept() verifies sufficient validations",[929,960,961,964],{},[382,962,963],{},"Storage",": Persist to database and cache",[929,966,967,970],{},[382,968,969],{},"Publication",": Stream to subscribers",[22,972,973],{},[382,974,975],{},"Key Properties:",[977,978,979,982,985,988,991],"ul",{},[929,980,981],{},"Backwards filling for chain validation",[929,983,984],{},"Quorum-based acceptance",[929,986,987],{},"Automatic retry on failure",[929,989,990],{},"Continuous integrity checking",[929,992,993],{},"Efficient caching and storage",[22,995,996],{},"In the next chapter, we'll explore how transactions flow through the system via RPC and peer connections.",[998,999,1000],"style",{},"html pre.shiki code .sQrFR, html code.shiki .sQrFR{--shiki-default:#BDC4CC}html pre.shiki code .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}html pre.shiki code .s_sBn, html code.shiki .s_sBn{--shiki-default:#FFB757}html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}html pre.shiki code .sj_SG, html code.shiki .sj_SG{--shiki-default:#DBB7FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}html pre.shiki code .sTRMh, html code.shiki .sTRMh{--shiki-default:#ADDCFF}",{"title":42,"searchDepth":156,"depth":156,"links":1002},[1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015],{"id":19,"depth":156,"text":20},{"id":27,"depth":156,"text":28},{"id":45,"depth":156,"text":46},{"id":120,"depth":156,"text":121},{"id":133,"depth":156,"text":134},{"id":393,"depth":156,"text":394},{"id":408,"depth":156,"text":409},{"id":556,"depth":156,"text":557},{"id":566,"depth":156,"text":567},{"id":727,"depth":156,"text":728},{"id":740,"depth":156,"text":741},{"id":846,"depth":156,"text":847},{"id":859,"depth":156,"text":860},"Ledger Acquisition and Validation for Consensus I: Node, Consensus, and Ledger Fundamentals, in the Core Dev Bootcamp: XRPL Commons docs.","md",{},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":5,"description":1016},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation.md","docs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation","vv07gwmi8Y_JyiJxEBzHgjo9VwMWY6ayFBSxehLgcT4",[],[1026,1067,1081,1101,1124,1516],{"title":1027,"path":1028,"children":1029,"description":1066,"pages":313},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[1030,1033,1036,1039,1042,1045,1048,1051,1054,1057,1060,1063],{"title":1031,"path":1032},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":1034,"path":1035},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":1037,"path":1038},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":1040,"path":1041},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":1043,"path":1044},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":1046,"path":1047},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":1049,"path":1050},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":1052,"path":1053},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":1055,"path":1056},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":1058,"path":1059},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":1061,"path":1062},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":1064,"path":1065},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",{"title":1068,"path":1069,"children":1070,"description":1080,"pages":177},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[1071,1074,1077],{"title":1072,"path":1073},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":1075,"path":1076},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":1078,"path":1079},"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":1082,"path":1083,"children":1084,"description":1100,"pages":214},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[1085,1088,1091,1094,1097],{"title":1086,"path":1087},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":1089,"path":1090},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":1092,"path":1093},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":1095,"path":1096},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":1098,"path":1099},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":1102,"path":1103,"children":1104,"description":1123,"pages":229},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[1105,1108,1111,1114,1117,1120],{"title":1106,"path":1107},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":1109,"path":1110},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":1112,"path":1113},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":1115,"path":1116},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":1118,"path":1119},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":1121,"path":1122},"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":1125,"path":1126,"children":1127,"description":1514,"pages":1515},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[1128,1148,1191,1241,1272,1329,1360,1376,1416,1448,1473,1489],{"title":1129,"path":1130,"children":1131},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[1132,1135,1138,1141],{"title":1133,"path":1134},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":1136,"path":1137},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":1139,"path":1140},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":1142,"path":1143,"children":1144},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[1145],{"title":1146,"path":1147},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":1149,"path":1150,"children":1151},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[1152,1155,1158,1161,1164,1167,1170,1173,1176],{"title":1153,"path":1154},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":1156,"path":1157},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":1159,"path":1160},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":1162,"path":1163},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":1165,"path":1166},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":1168,"path":1169},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":1171,"path":1172},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":1174,"path":1175},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":1142,"path":1177,"children":1178},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[1179,1182,1185,1188],{"title":1180,"path":1181},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":1183,"path":1184},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":1186,"path":1187},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":1189,"path":1190},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":1192,"path":1193,"children":1194},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[1195,1198,1201,1204,1207,1210,1213,1216,1219,1222,1225,1228],{"title":1196,"path":1197},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":1199,"path":1200},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":1202,"path":1203},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":1205,"path":1206},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":1208,"path":1209},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":1211,"path":1212},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":1214,"path":1215},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":1217,"path":1218},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":1220,"path":1221},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":1223,"path":1224},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":1226,"path":1227},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":1229,"path":1230,"children":1231},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[1232,1235,1238],{"title":1233,"path":1234},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":1236,"path":1237},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":1239,"path":1240},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":1242,"path":1243,"children":1244},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[1245,1248,1251,1254,1257,1260,1263,1266,1269],{"title":1246,"path":1247},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":1249,"path":1250},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":1252,"path":1253},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":1255,"path":1256},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":1258,"path":1259},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":1261,"path":1262},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":1264,"path":1265},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":1267,"path":1268},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":1270,"path":1271},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":1273,"path":1274,"children":1275},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[1276,1279,1282,1285,1288,1291,1294,1297,1300,1303,1306,1309,1312,1323],{"title":1277,"path":1278},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":1280,"path":1281},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":1283,"path":1284},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":1286,"path":1287},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":1289,"path":1290},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":1292,"path":1293},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":1295,"path":1296},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":1298,"path":1299},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":1301,"path":1302},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":1304,"path":1305},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":1307,"path":1308},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":1310,"path":1311},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":1229,"path":1313,"children":1314},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[1315,1317,1320],{"title":1233,"path":1316},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":1318,"path":1319},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":1321,"path":1322},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":1142,"path":1324,"children":1325},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[1326],{"title":1327,"path":1328},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":1330,"path":1331,"children":1332},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[1333,1336,1339,1342,1345,1348,1354],{"title":1334,"path":1335},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":1337,"path":1338},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":1340,"path":1341},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":1343,"path":1344},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":1346,"path":1347},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":1229,"path":1349,"children":1350},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[1351],{"title":1352,"path":1353},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":1142,"path":1355,"children":1356},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[1357],{"title":1358,"path":1359},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":1361,"path":1362,"children":1363},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[1364,1367,1370,1373],{"title":1365,"path":1366},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":1368,"path":1369},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":1371,"path":1372},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":1374,"path":1375},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":1377,"path":1378,"children":1379},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[1380,1383,1386,1389,1392,1404],{"title":1381,"path":1382},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":1384,"path":1385},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":1387,"path":1388},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":1390,"path":1391},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":1229,"path":1393,"children":1394},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[1395,1398,1401],{"title":1396,"path":1397},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":1399,"path":1400},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":1402,"path":1403},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":1142,"path":1405,"children":1406},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[1407,1410,1413],{"title":1408,"path":1409},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":1411,"path":1412},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":1414,"path":1415},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":1417,"path":1418,"children":1419},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[1420,1423,1426,1429,1432,1435,1436,1439],{"title":1421,"path":1422},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":1424,"path":1425},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":1427,"path":1428},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":1430,"path":1431},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":1433,"path":1434},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":5,"path":1019},{"title":1437,"path":1438},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":1142,"path":1440,"children":1441},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[1442,1445],{"title":1443,"path":1444},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":1446,"path":1447},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":1449,"path":1450,"children":1451},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[1452,1455,1458,1461,1464,1467,1470],{"title":1453,"path":1454},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":1456,"path":1457},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":1459,"path":1460},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":1462,"path":1463},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":1465,"path":1466},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":1468,"path":1469},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":1471,"path":1472},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":1474,"path":1475,"children":1476},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[1477,1480,1483,1486],{"title":1478,"path":1479},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":1481,"path":1482},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":1484,"path":1485},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":1487,"path":1488},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":1490,"path":1491,"children":1492},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[1493,1496,1499,1502,1505,1508,1511],{"title":1494,"path":1495},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":1497,"path":1498},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":1500,"path":1501},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":1503,"path":1504},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":1506,"path":1507},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":1509,"path":1510},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":1512,"path":1513},"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":1517,"path":1518,"children":1519,"description":1526,"pages":171},"Tools","\u002Fdocs\u002Ftools",[1520,1523],{"title":1521,"path":1522},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":1524,"path":1525},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220774550]