PrevUpHomeNext

RCLValidatedLedger

RCLValidatedLedger::ID
RCLValidatedLedger::RCLValidatedLedger
RCLValidatedLedger::Seq
RCLValidatedLedger::ancestors_
RCLValidatedLedger::id
RCLValidatedLedger::j_
RCLValidatedLedger::ledger_
RCLValidatedLedger::minSeq
RCLValidatedLedger::mismatch
RCLValidatedLedger::operator[]
RCLValidatedLedger::seq

Wraps a ledger instance for use in generic Validations LedgerTrie.

Synopsis
class RCLValidatedLedger
Types

Name

Description

ID

Seq

Member Functions

Name

Description

RCLValidatedLedger

id

The ID (hash) of the ledger.

minSeq

operator[]

Lookup the ID of the ancestor ledger.

seq

The sequence (index) of the ledger.

Friends

Name

Description

mismatch

Find the sequence number of the earliest mismatching ancestor.

Description

The LedgerTrie models a ledger's history as a map from Seq -> ID. Any two ledgers that have the same ID for a given Seq have the same ID for all earlier sequences (e.g. shared ancestry). In practice, a ledger only conveniently has the prior 256 ancestor hashes available. For RCLValidatedLedger, we treat any ledgers separated by more than 256 Seq as distinct.

Header

#include <ripple/app/consensus/RCLValidations.h>


PrevUpHomeNext