mirror of https://github.com/zcash/zips.git
Fix vulnerability in append() pseudocode.
This addresses finding NCC-1908_Zcash-001.
This commit is contained in:
parent
a627029132
commit
5b411837f4
|
@ -499,6 +499,7 @@ With each new block ``B_n``, we append a new MMR leaf node corresponding to bloc
|
|||
else:
|
||||
merged.append(current)
|
||||
current = peak
|
||||
merged.append(current)
|
||||
|
||||
# finally, bag the merged peaks
|
||||
return bag_peaks(merged[::-1])
|
||||
|
|
Loading…
Reference in New Issue