forked from dominant-strategies/go-quai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor of phCache and head picking to always choose the greatest Td…
… in zones: This is a departure from the top-down picking originally proposed by HLCR. Only zones have sufficient information to make decisions in which block to keep mining. The hierarchical constraint is now statistically enforced by setting subordinate Tds to dominant values on coincident blocks. Note that this is a statistical enforcement and not a strict enforcement as previously proposed. This appears to create a much more robust head pick that never stalls or seperates. Coordinate updates coerce the ph pick to the result of the coordinate coincident dom head choice. The dom and its head choice is neccassarily the correct choice because the the dom is always shared. Renamed phHashKey, added deepcopies around phcache writes, combined writePh and pickPh into writePhHeaderAndPickPhHead
- Loading branch information
1 parent
bea8a40
commit 8e832c9
Showing
1 changed file
with
57 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters