pokt-network / poktroll

The official Shannon upgrade implementation of the Pocket Network Protocol implemented using Rollkit.dev
MIT License
15 stars 6 forks source link

[Relay Mining] Add Relay Mining math helpers #549

Closed Olshansk closed 1 month ago

Olshansk commented 1 month ago

⚠️ TestUpdateRelayMiningDifficulty_General is not done yet (and I may add other unit tests) but the helpers are mostly ready and the PR is well scoped enough ⚠️

Summary

Adding the following two files:

x/tokenomics/keeper/update_relay_mining_difficulty.go
x/tokenomics/keeper/update_relay_mining_difficulty_test.go

Add an experimental .prompts file

References

Issue

Type of change

Select one or more:

Testing

Documentation changes (only if making doc changes)

Local Testing (only if making code changes)

Sanity Checklist


:rocket: This description was created by Ellipsis for commit 003cba5b10f6329575ce6a0a489f55de6ad72436

Summary:

Introduces functionality to update relay mining difficulty and compute new difficulty hashes, along with tests.

Key points:


Generated with :heart: by ellipsis.dev