You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file 0chain.net/chaincore/block/magic_block_entity.go, method GetHashBytes uses value sharderKeys instead of mpkKeys in line 85, to iterate over and append to data variable. It seems like a bug.
func (mb *MagicBlock) GetHashBytes() []byte {
...
...
sort.Strings(mpkKeys)
-> for _, v := range sharderKeys {
data = append(data, []byte(v)...)
}
data = append(data, []byte(strconv.Itoa(mb.T))...)
data = append(data, []byte(strconv.Itoa(mb.N))...)
return encryption.RawHash(data)
}
The text was updated successfully, but these errors were encountered:
In file 0chain.net/chaincore/block/magic_block_entity.go, method GetHashBytes uses value sharderKeys instead of mpkKeys in line 85, to iterate over and append to data variable. It seems like a bug.
The text was updated successfully, but these errors were encountered: