Function checkPeriodToLive

  • Check the expire period validity.

    Parameters

    • periodToLive: number = PERIOD_TO_LIVE_DEFAULT

      The period to live.

    Returns void

    The expire period.

    Remarks

    If the periodToLive is too big, the node will silently reject the operation. This is why the periodToLive is limited to an upper value.

    Throws

    An error if the periodToLive is too low or too big.