forked from tari-project/tari
-
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.
fix!: limit monero hashes and force coinbase to be tx 0 (tari-project…
…#5602) Description --- This limits the merkle proof hashes from monero blocks to be all used stopping miners from adding junk data at the end that is not used. Also brings the merkle root construction inline with monero rule by forcing the coinbase to be tx 0. Motivation and Context --- If the hashes are not limited, miners can add endless data to the header. This causes TARI-006 and TARI-008, TARI-009, TARI-011 and TARI-012 How Has This Been Tested? --- Unit tests Audit Finding Number --- TARI-006 TARI-008 TARI-009 TARI-011 TARI-012 --------- Co-authored-by: Stan Bondi <sdbondi@users.noreply.github.com>
- Loading branch information
1 parent
3937ae4
commit 2af1198
Showing
3 changed files
with
49 additions
and
127 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