PrevUpHomeNext

RCLConsensus::buildLCL

Build the new last closed ledger.

Synopsis
RCLCxLedger
buildLCL(
    RCLCxLedger const& previousLedger,
    RCLTxSet const& set,
    NetClock::time_point closeTime,
    bool closeTimeCorrect,
    NetClock::duration closeResolution,
    NetClock::time_point now,
    std::chrono::milliseconds roundTime,
    CanonicalTXSet& retriableTxs);
Description

Accept the given the provided set of consensus transactions and build the last closed ledger. Since consensus just agrees on which transactions to apply, but not whether they make it into the closed ledger, this function also populates retriableTxs with those that can be retried in the next round.

Parameters

Name

Description

previousLedger

Prior ledger building upon

set

The set of transactions to apply to the ledger

closeTime

The the ledger closed

closeTimeCorrect

Whether consensus agreed on close time

closeResolution

Resolution used to determine consensus close time

now

Current network adjusted time

roundTime

Duration of this consensus rorund

retriableTxs

Populate with transactions to retry in next round

Return Value

The newly built ledger


PrevUpHomeNext