Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-1452

A node must send LEDGER_STATUS with correct last ordered 3PC after catch-up

    Details

    • Type: Task
    • Status: Complete
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.6
    • Component/s: None
    • Labels:
      None

      Description

      There is a structure (IntervalTree) in node that can map seqNo in ledger to 3PC key.

      This is in-memory structure, so it's empty after node restart, and updated only during common ordering and execution of 3PC batches.

      We need to have an entry for the current ledger size in this map after catchup too, as this is used in LEDGER_STATUSes sent to others, and LEDGER_STATUSes are used for initial calcualtion of `last_ordered-3PC`.

        Attachments

          Activity

            People

            • Assignee:
              ozheregelya Olga Zheregelya
              Reporter:
              ashcherbakov Alexander Shcherbakov
              Watchers:
              Alexander Shcherbakov, Olga Zheregelya
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: