Skip to content

Conversation

@AntoTG
Copy link
Member

@AntoTG AntoTG commented Sep 17, 2025

Implements a missing keys tolerance feature, allowing the automation to proceed even if some validator keys are unavailable in the remote signer, up to a configurable limit (Default is 0).

This change:

  • Introduces a MISSING_KEYS_TOLERANCE environment variable.
  • Adds validation for the missingKeysTolerance parameter to ensure it is a non-negative integer.
  • Modifies the signature retrieval logic to skip missing keys and continue signing for available keys, failing only if the number of missing keys exceeds the configured tolerance (Default is 0).
  • Improves messages log and adds test coverage.

Introduces a mechanism to tolerate a configurable number of missing keys in the remote signer.

This prevents the process from failing immediately if some validator keys are unavailable. The 'missingKeysTolerance' parameter is added to the environment variables and application parameters, allowing users to define the maximum acceptable number of skipped signatures.

The application will now skip validators without keys in the remote signer, instead of failing.
If the number of skipped keys exceeds the defined tolerance, an error will be thrown.
@AntoTG AntoTG requested a review from iicc1 September 17, 2025 15:48
@AntoTG AntoTG merged commit 164a99b into main Sep 17, 2025
6 checks passed
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.

4 participants