Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up slash-log state #2093

Closed
insumity opened this issue Jul 25, 2024 · 3 comments
Closed

Clean up slash-log state #2093

insumity opened this issue Jul 25, 2024 · 3 comments
Labels
good first issue Good for newcomers type: tech-debt Slows down development in the long run

Comments

@insumity
Copy link
Contributor

Problem

The provider module still stores state under SlashLogBytePrefix.SlashLogBytePrefix is used to construct the SlashLogKey that is used in SetSlashLog and GetSlashLog methods. SetSlashLog is used here while GetSlashLog is only used in an integration test, so the fact that we set something but we have no getters to read it makes this unusable. Additionally, the whole slashing for equivocation evidence chunk where SetSlashLog is called is not really used. Equivocation evidence is to be submitted through MsgSubmitConsumerDoubleVoting messages.

This means that we can remove everything associated with SlashLogBytePrefix.

@insumity insumity added the status: waiting-triage This issue/PR has not yet been triaged by the team. label Jul 25, 2024
@github-project-automation github-project-automation bot moved this to 🩹 F1: Triage in Cosmos Hub Jul 25, 2024
@insumity insumity added good first issue Good for newcomers and removed status: waiting-triage This issue/PR has not yet been triaged by the team. labels Jul 25, 2024
@ukane-philemon
Copy link

Problem

The provider module still stores state under SlashLogBytePrefix.SlashLogBytePrefix is used to construct the SlashLogKey that is used in SetSlashLog and GetSlashLog methods. SetSlashLog is used here while GetSlashLog is only used in an integration test, so the fact that we set something but we have no getters to read it makes this unusable. Additionally, the whole slashing for equivocation evidence chunk where SetSlashLog is called is not really used. Equivocation evidence is to be submitted through MsgSubmitConsumerDoubleVoting messages.

This means that we can remove everything associated with SlashLogBytePrefix.

SetSlashLog is used here. Code might have been updated since OP posted.

@ukane-philemon
Copy link

ukane-philemon commented Jul 27, 2024

@insumity since double voting would send an MsgSubmitConsumerDoubleVoting message, I don't see a test case that ensures that. Or am I missing something?

@mpoke mpoke moved this from 🩹 F1: Triage to 📥 F2: Todo in Cosmos Hub Sep 17, 2024
@mpoke mpoke added the type: tech-debt Slows down development in the long run label Sep 17, 2024
@mpoke
Copy link
Contributor

mpoke commented Sep 17, 2024

Closing as duplicate of #1502

@mpoke mpoke closed this as completed Sep 17, 2024
@github-project-automation github-project-automation bot moved this from 📥 F2: Todo to 👍 F4: Assessment in Cosmos Hub Sep 17, 2024
@mpoke mpoke moved this from 👍 F4: Assessment to ✅ Done in Cosmos Hub Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type: tech-debt Slows down development in the long run
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants