massa
massa copied to clipboard
Check endorsement PoS draw in Protocol
Perform a PoS draw check for endorsements in Protocol (funcion note_endorsmenets_from_node).
Outcomes:
- if the (slot, index) matches the endorsement producer => OK
- if there is a mismatch => ignore the endorsement and ban the sender
- if the PoS draw is invalid => also drop the endorsement with an error but don't ban the sender
The corresponding in-header check can be removed from Consensus.