Closed Olshansk closed 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 ⚠️
TestUpdateRelayMiningDifficulty_General
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
Select one or more:
Documentation changes (only if making doc changes)
make docusaurus_start
Local Testing (only if making code changes)
make go_develop_and_test
make test_e2e
devnet-test-e2e
make trigger_ci
Introduces functionality to update relay mining difficulty and compute new difficulty hashes, along with tests.
Key points:
update_relay_mining_difficulty.go
update_relay_mining_difficulty_test.go
x/tokenomics/keeper
UpdateRelayMiningDifficulty
ComputeNewDifficultyTargetHash
Generated with :heart: by ellipsis.dev
⚠️
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:
Add an experimental .prompts file
References
Issue
542
Type of change
Select one or more:
Testing
Documentation changes (only if making doc changes)
make docusaurus_start
; only needed if you make doc changesLocal Testing (only if making code changes)
make go_develop_and_test
make test_e2e
devnet-test-e2e
label to the PR.make trigger_ci
if you want to re-trigger tests without any code changesSanity Checklist
Summary:
Introduces functionality to update relay mining difficulty and compute new difficulty hashes, along with tests.
Key points:
update_relay_mining_difficulty.go
andupdate_relay_mining_difficulty_test.go
inx/tokenomics/keeper
UpdateRelayMiningDifficulty
to adjust relay mining difficulty based on relay countsComputeNewDifficultyTargetHash
for calculating difficulty hashesGenerated with :heart: by ellipsis.dev