Skip to content

Comments

Simulation of zend Difficulty Adjustment Algorithm#75

Open
alsala wants to merge 4 commits intomainfrom
as/zend_diff_adj_algo_simulation
Open

Simulation of zend Difficulty Adjustment Algorithm#75
alsala wants to merge 4 commits intomainfrom
as/zend_diff_adj_algo_simulation

Conversation

@alsala
Copy link
Contributor

@alsala alsala commented Jun 24, 2025

Python script that simulates the Horizen Difficulty Adjustment Algorithm (DAA). This simulation is deterministic, meaning it omits random fluctuations in block times to demonstrate the DAA's adjustment behavior. The formulas and logic are derived from the Horizen codebase. See especially:

https://github.com/HorizenOfficial/zen/blob/main/src/pow.cpp

https://github.com/HorizenOfficial/zen/blob/main/src/chainparams.cpp

https://github.com/HorizenOfficial/zen/blob/main/src/chain.h

https://github.com/HorizenOfficial/zen/blob/main/src/consensus/params.h

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.

1 participant