PrevUpHomeNext

RCLConsensus::accept

Accept a new ledger based on the given transactions.

Synopsis
bool
accept(
    RCLTxSet const& set,
    NetClock::time_point consensusCloseTime,
    bool proposing_,
    bool validating_,
    bool haveCorrectLCL_,
    bool consensusFail_,
    LedgerHash const& prevLedgerHash_,
    RCLCxLedger const& previousLedger_,
    NetClock::duration closeResolution_,
    NetClock::time_point const& now,
    std::chrono::milliseconds const& roundTime_,
    hash_map< RCLCxTx::ID, DisputedTx< RCLCxTx, NodeID >> const& disputes_,
    std::map< NetClock::time_point, int > closeTimes_,
    NetClock::time_point const& closeTime,
    Json::Value&& json);
Description

TODO: Too many arguments, need to group related types.

Parameters

Name

Description

set

The set of accepted transactions

consensusCloseTime

Consensus agreed upon close time

proposing_

Whether we are proposing

validating_

Whether we are validating

haveCorrectLCL_

Whether we had the correct last closed ledger

consensusFail_

Whether consensus failed

prevLedgerHash_

The hash/id of the previous ledger

previousLedger_

The previous ledger

closeResolution_

The close time resolution used this round

now

Current network adjsuted time

roundTime_

Duration of this consensus round

disputes_

Disputed trarnsactions from this round

closeTimes_

Histogram of peers close times

closeTime

Our close time

json

Json representation of consensus

Return Value

Whether we should continue validating


PrevUpHomeNext