Skip to content

fix 816#682

Open
andyzhang2023 wants to merge 1 commit into
developfrom
feat-816
Open

fix 816#682
andyzhang2023 wants to merge 1 commit into
developfrom
feat-816

Conversation

@andyzhang2023

Copy link
Copy Markdown
Collaborator

Description

fix: prevent heartbeat attestation replay by consuming challenge after reward

@hashdit-bot

hashdit-bot Bot commented Jun 3, 2026

Copy link
Copy Markdown

Pull Request Review

This PR introduces a targeted replay-protection fix for heartbeat attestations in the Cosmos SDK-based challenge module. It adds a new RemoveChallenge(ctx, challengeId) keeper method to delete a specific challenge key from persistent storage, and invokes it in Attest after successful heartbeat reward processing. The change ensures a heartbeat challenge is consumed once used, preventing repeated submissions against the same challenge ID.

Sensitive Content

No sensitive content detected.

Security Issues

No serious security issues detected.


Generated by Hashdit Bot. This tool can absolutely NOT replace manual audits.

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