Accept a new ledger based on the given transactions.
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);
TODO: Too many arguments, need to group related types.
Name |
Description |
---|---|
|
The set of accepted transactions |
|
|
|
Whether we are proposing |
|
Whether we are validating |
|
Whether we had the correct last closed ledger |
|
Whether consensus failed |
|
The hash/id of the previous ledger |
|
The previous ledger |
|
The close time resolution used this round |
|
Current network adjsuted time |
|
Duration of this consensus round |
|
Disputed trarnsactions from this round |
|
Histogram of peers close times |
|
Our close time |
|
Json representation of consensus |
Whether we should continue validating