Skip to content

Conversation

@girazoki
Copy link
Contributor

Description

This PR allows to configure a worst_case_message_processor_weight for snowbridge-inbound-queue-v2. In the case several processors are added, this allows to indicate the weight annotation to take the worst case, and refund the weight if the worst-case-processor has not been used.

For what is worth I added an optional weight parameter that process_message can return now. If set to None, this indicates the willingness of not correcting the annotated weight. If set to some weight, this weight will be used to refund the relayer for using the non-worst-case-processor.

The default implementation for worst_case_message_processor_weight is set 0 weight. This might be a valid use case for runtimes (like bridgehub) that have a single processor, and whose benchmark already indicates the worst_case.

@girazoki girazoki changed the title wip Allow to configure worst-case-processor in inbound queue plus refund Dec 18, 2025
@paritytech-review-bot paritytech-review-bot bot requested a review from a team December 18, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant