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

Add a new Tx method to settle challenge #41

Open
h3lio5 opened this issue Oct 30, 2024 · 0 comments · May be fixed by #45
Open

Add a new Tx method to settle challenge #41

h3lio5 opened this issue Oct 30, 2024 · 0 comments · May be fixed by #45
Assignees

Comments

@h3lio5
Copy link
Contributor

h3lio5 commented Oct 30, 2024

Currently, the settling a challenge, i.e., determining the winner of the challenge, happens inside the EndBlock hook defined in the challenge module. We want to move the logic of determining winner and dispersing the reward into a new Tx method settleChallenge().

relevant codebase: https://github.com/topology-foundation/topchain-node/blob/main/x/challenge/module/module.go#L157

@JanLewDev JanLewDev self-assigned this Nov 4, 2024
@JanLewDev JanLewDev linked a pull request Nov 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants