Function massa_grpc::stream::send_endorsements::check_endorsement_draws
source ยท fn check_endorsement_draws(
endorsements: &HashMap<String, SecureShareEndorsement>,
selector_controller: &dyn SelectorController,
) -> Result<(), String>Expand description
Checks that each endorsement was created by the endorser drawn for its (slot, index) pair.
This mirrors the check done on endorsements received from peers (note_endorsements_from_peer)
and in the endorsement pool: endorsements accepted here are handed over to the protocol
propagation flow, which trusts its caller and rebroadcasts them without further validation.