Marmot-TS
    Preparing search index...

    Function requiredRetainedEpochs

    • The minimum set of epochs a client must retain to replay candidate branches inside the rollback horizon: every epoch from tip - maxRewindCommits (floored at 0) through the current tip. Staged-commit and deferred-parent states are additional and tracked separately by the caller.

      Parameters

      • currentTipEpoch: number
      • maxRewindCommits: number

      Returns number[]