Skip to content

Conversation

@Alann27
Copy link
Contributor

@Alann27 Alann27 commented Mar 21, 2025

Summary

  • Added handler for older version of EventSupplierSlashed
  • Fixed getEntityIdArg when calling indexStakeEntity for the following events: poktroll.service.EventRelayMiningDifficultyUpdated and poktroll.tokenomics.EventSupplierSlashed

Issue

In alpha are poktroll.tokenomics.EventSupplierSlashed events emitted with an older version (not the actual as specified in poktroll proto files). You can see an example in the height 57750

Also we were not handling correctly the id of the entities for the poktroll.service.EventRelayMiningDifficultyUpdated event.

Type of change

Select one or more:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify)

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have commented my code
  • I have performed a self-review of my own code; both comments & source code
  • I create and reference any new tickets, if applicable
  • I have left TODOs throughout the codebase, if applicable

* Fixed `getEntityIdArg` when calling `indexStakeEntity` for the following events: `poktroll.service.EventRelayMiningDifficultyUpdated` and `poktroll.tokenomics.EventSupplierSlashed`
@Alann27 Alann27 added the bug Something isn't working label Mar 21, 2025
@Alann27 Alann27 requested a review from jorgecuesta March 21, 2025 12:44
@Alann27 Alann27 self-assigned this Mar 21, 2025
@Alann27 Alann27 marked this pull request as ready for review March 21, 2025 13:04
@jorgecuesta jorgecuesta merged commit 3e1b46a into main Mar 21, 2025
6 checks passed
@jorgecuesta jorgecuesta deleted the bug/fix-events-for-alpha branch March 21, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants