Skip to content

Commit

Permalink
fix(batching): fix issue where hash used dataRoot instead of superRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
FranklinWaller committed Oct 30, 2024
1 parent 9ce12e8 commit 2ed853d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/batching/keeper/endblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (k Keeper) ConstructBatch(ctx sdk.Context) (types.Batch, [][]byte, [][]byte
//nolint:gosec // G115: We shouldn't get negative block heights anyway.
hashContent = binary.BigEndian.AppendUint64(hashContent, uint64(ctx.BlockHeight()))
hashContent = append(hashContent, valRoot...)
hashContent = append(hashContent, dataRoot...)
hashContent = append(hashContent, superRoot...)
hashContent = append(hashContent, provingMetaDataHash...)

hasher := sha3.NewLegacyKeccak256()
Expand Down

0 comments on commit 2ed853d

Please sign in to comment.