Skip to content
  • YACOVM's avatar
    Gossip: Learn certificate at validation time · bc7f9d8e
    YACOVM authored
    
    
    When an AliveMessage enters the routine that handles all messages,
    It is first validated and only then the certificate may be learned
    from the alive message, but then it is validated again when it is
    learned because the identity store validates the cert when it attempts
    to store it.
    
    This is redundant, we may simply learn the cert at validation time as
    part of storing the cert (gossip/identity/identityMapper:Put also
    validates a cert, and even checks if the calculated PKI-ID matches
    the claimed PKI-ID)
    
    Change-Id: I90900818aef3b51c413384df989f4e63073401f6
    Signed-off-by: default avatarYacov Manevich <yacovm@il.ibm.com>
    bc7f9d8e