Return the sequence number and ID of the preferred working ledger.
std::pair< Seq, ID > getPreferred( Ledger const& currLedger);
A ledger is preferred if it has more support amongst trusted validators and is not an ancestor of the current working ledger; otherwise it remains the current working ledger.
Name |
Description |
---|---|
|
The local nodes current working ledger |
The sequence and id of the preferred working ledger, or Seq{0},ID{} if no trusted validations are available to determine the preferred ledger.