Skip to content

Commit 5b59a19

Browse files
author
4d55397500
authored
Update merkle.cpp
Change comment from `The reason is that if the number of hashes in the list at a given time is odd`, to ` The reason is that if the number of hashes in the list at a given level is odd` (to be a bit more precise)
1 parent 3a8d250 commit 5b59a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/consensus/merkle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
that the following merkle tree algorithm has a serious flaw related to
1111
duplicate txids, resulting in a vulnerability (CVE-2012-2459).
1212
13-
The reason is that if the number of hashes in the list at a given time
13+
The reason is that if the number of hashes in the list at a given level
1414
is odd, the last one is duplicated before computing the next level (which
1515
is unusual in Merkle trees). This results in certain sequences of
1616
transactions leading to the same merkle root. For example, these two

0 commit comments

Comments
 (0)