Skip to content

Throttles Background Notary Proofs on Failure#388

Merged
Step7750 merged 2 commits intomasterfrom
chore/prevent-repeat-bg-notary-failures
Apr 15, 2026
Merged

Throttles Background Notary Proofs on Failure#388
Step7750 merged 2 commits intomasterfrom
chore/prevent-repeat-bg-notary-failures

Conversation

@Step7750
Copy link
Copy Markdown
Collaborator

@Step7750 Step7750 commented Apr 15, 2026

If a user is having issues with notary proofs, this PR prevents re-requesting proofs for an hour after failure.

Alas, some users have horrid internet.

Ref CSF-753


Note

Low Risk
Low risk: small control-flow change that only gates background notary proving and persists a timestamp in local storage; main behavior still falls back to legacy rollback pings.

Overview
Rollback trade handling now throttles background notary proofs after a failure. pingRollbackTrades records the last background notary proof failure in chrome.storage.local and skips re-attempting proofs for 60 minutes, immediately falling back to the legacy PingRollbackTrade path during that window.

Adds a new storage key, StorageKey.LAST_NOTARY_BG_PROOF_FAILURE, to persist the cooldown timestamp.

Reviewed by Cursor Bugbot for commit be643fb. Bugbot is set up for automated code reviews on this repo. Configure here.

If a user is having issues with notary proofs, this PR prevents background rollback proofs for an hour after a failure.

Ref CSF-753
@Step7750 Step7750 requested a review from GODrums April 15, 2026 06:55
@Step7750 Step7750 merged commit 51d1602 into master Apr 15, 2026
3 checks passed
@Step7750 Step7750 deleted the chore/prevent-repeat-bg-notary-failures branch April 15, 2026 17:28
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.

2 participants