This repository was archived by the owner on Sep 8, 2026. It is now read-only.
feat(validator-debt): add overrides option to validator debt payment - #216
Merged
Conversation
bgm-malbeclabs
requested review from
Copilot and
karl-dz
and removed request for
Copilot
November 29, 2025 00:53
bgm-malbeclabs
commented
Nov 29, 2025
bgm-malbeclabs
commented
Nov 29, 2025
There was a problem hiding this comment.
Pull request overview
Adds an "overrides" mechanism to skip validator debt payments for specified validators/epochs by reading a CSV file, intended as a temporary workaround until on-chain data is used.
- Introduces reading overrides from a CSV at a fixed path and builds a list of (pubkey, epoch) entries
- Skips processing debts matching an override for the current epoch
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bgm-malbeclabs
added a commit
to malbeclabs/doublezero
that referenced
this pull request
Aug 28, 2026
…albeclabs/doublezero-offchain#216) ## Summary of Changes This PR adds an `overrides.csv` to exclude validators from an epoch or epochs from debt collection. The attached `overrides.csv` outlines the validators and epochs they are to be excluded from: [overrides.csv](https://github.com/user-attachments/files/23864374/overrides.csv) Note that this is a temporary fix; the longer term fix will be using onchain data and writing data onchain. Closes #2316. ## Testing Verification * This was run locally against epoch 60: ``` 7VZM7YHcX73TpGoXDeBu61g4QKC86GwAEnew8dA7Y2xn: Some( "Program log: Merkle leaf index 89 has already been processed", ) 7ZjHeeYEesmBs4N6aDvCQimKdtJX2bs5boXpJmpG2bZJ: Some( "Program log: Insufficient funds in Solana validator deposit to pay debt", ) Validator 7cVfgArCheMR6Cs4t6vz5rfnqd56vZq4ndaBrY5xkxXy for epoch malbeclabs/doublezero-offchain#60 excluded from debt collection 7knvB4bbqHCKuNp3ef2hJWdwqoH6WAUi55NQt6LdRfkx: Some( "Program log: Merkle leaf index 92 has already been processed", ) ``` In the admittedly convoluted logs, the `7cVfgArCheMR6Cs4t6vz5rfnqd56vZq4ndaBrY5xkxXy` is excluded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This PR adds an
overrides.csvto exclude validators from an epoch or epochs from debt collection. The attachedoverrides.csvoutlines the validators and epochs they are to be excluded from:overrides.csv
Note that this is a temporary fix; the longer term fix will be using onchain data and writing data onchain.
Closes malbeclabs/doublezero#2316.
Testing Verification
In the admittedly convoluted logs, the
7cVfgArCheMR6Cs4t6vz5rfnqd56vZq4ndaBrY5xkxXyis excluded