Skip to content

lib: fix default difficulty#96

Merged
Xe merged 1 commit intomainfrom
Xe/default-difficulty-fix
Mar 23, 2025
Merged

lib: fix default difficulty#96
Xe merged 1 commit intomainfrom
Xe/default-difficulty-fix

Conversation

@Xe
Copy link
Copy Markdown
Contributor

@Xe Xe commented Mar 23, 2025

Before this did not respect the difficulty flag and instead used difficulty 4. This has been fixed.

Checklist:

  • Added a description of the changes to the [Unreleased] section of docs/docs/CHANGELOG.md
  • Tested this at least manually

Before this did not respect the difficulty flag and instead used
difficulty 4. This has been fixed.

Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe requested a review from Copilot March 23, 2025 22:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request fixes an issue where the default difficulty was hardcoded instead of using the specified policy value. It also introduces tests to ensure the default difficulty settings are correctly applied and updates the changelog accordingly.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
lib/anubis_test.go Added tests to validate that the default difficulty setting is applied correctly.
docs/docs/CHANGELOG.md Updated the changelog with a note about fixing the default difficulty setting.
lib/anubis.go Replaced the use of a hardcoded default difficulty with the dynamic policy value.

@Xe Xe merged commit 725e11d into main Mar 23, 2025
2 checks passed
JasonLovesDoggo pushed a commit to JasonLovesDoggo/anubis that referenced this pull request Jun 17, 2025
Before this did not respect the difficulty flag and instead used
difficulty 4. This has been fixed.

Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe deleted the Xe/default-difficulty-fix branch July 2, 2025 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants