Skip to content

Difficulty scales very poorly #106

@sfan5

Description

@sfan5

The default of 4 seems to take about 1-2 seconds on my desktop machine.
While I have seen another site use a difficulty of 5 and take 20+ seconds.

Since the leading zeros are checked on the hex-string and not bit-based, increasing difficulty by one will require 4 more zero bits, which increases the computational complexity 16 times.
For more gradual scaling it should check the number of leading zero bits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions