PrevUpHomeNext

RCLConsensus::Adaptor::getPrevLedger

Get the ID of the previous ledger/last closed ledger(LCL) on the network.

Synopsis
uint256
getPrevLedger(
    uint256 ledgerID,
    RCLCxLedger const& ledger,
    ConsensusMode mode);
Description
Parameters

Name

Description

ledgerID

ID of previous ledger used by consensus

ledger

Previous ledger consensus has available

mode

Current consensus mode

Return Value

The id of the last closed network

Remarks

ledgerID may not match ledger.id() if we haven't acquired the ledger matching ledgerID from the network


PrevUpHomeNext