-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mine_loop): Make hash rate independent of tx size
Prior to this commit, the hash rate was lower for blocks with many inputs/outputs in their transaction. This was because the block body MAST hash was not cached, so it was recalculated for each PoW iteration. This strongly incentivized miners to mine empty or small blocks, to the detriment of the ability to have transactions confirmed and merged.
- Loading branch information
1 parent
5c7fff7
commit 8c4a730
Showing
3 changed files
with
83 additions
and
5 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
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
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