PrevUpHomeNext

RCLConsensus::makeInitialPosition

Create our initial position of transactions to accept in this round of consensus.

Synopsis
std::pair< RCLTxSet, typename RCLCxPeerPos::Proposal >
makeInitialPosition(
    RCLCxLedger const& prevLedger,
    bool isProposing,
    bool isCorrectLCL,
    NetClock::time_point closeTime,
    NetClock::time_point now);
Description
Parameters

Name

Description

prevLedger

The ledger the transactions apply to

isProposing

Whether we are currently proposing

isCorrectLCL

Whether we have the correct LCL

closeTime

When we believe the ledger closed

now

The current network adjusted time

Return Value

Pair of (i) transactions we believe are in the ledger (ii) the corresponding proposal of those transactions to send to peers


PrevUpHomeNext