Skip to content
  • yacovm's avatar
    [FAB-6160] peer deliver refresh AC upon resource update · 81af16ea
    yacovm authored
     is going to be merged,
    the custom ACL is going to reside in the resource config.
    The deliver service in the peer would need a way to re-evaluate clients
    when a resource config has occurred.
    The current code exposes a method to the support of the deliver service
    that returns the sequence of the latest channel config.
    The access control logic in the deliver service, caches this sequence,
    and before sending out a block - it checks if the config has changed,
    and if it did - re-evaluates the policies.
    This change set, simply makes this sequence to be the sum
    of both resource config sequences, and channel config sequences.
    Since both sequences are monotonously increasing, the sum is also
    monotonously increasing, and therefore we can present to the deliver
    service access control logic the sum as the sequence, without
    changing anything else.
    Change-Id: Ib3cc04c51f21598027fb8eae68d04b027184f52f
    Signed-off-by: default avataryacovm <>