Skip to content

Commit 10614fc

Browse files
authored
beacon/engine: only print the bad hash on error (#35112)
Better error messages on the engine api
1 parent 1f87331 commit 10614fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beacon/engine/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func ExecutableDataToBlockNoHash(data ExecutableData, versionedHashes []common.H
295295
}
296296
for i := 0; i < len(blobHashes); i++ {
297297
if blobHashes[i] != versionedHashes[i] {
298-
return nil, fmt.Errorf("invalid versionedHash at %v: %v blobHashes: %v", i, versionedHashes, blobHashes)
298+
return nil, fmt.Errorf("invalid versionedHash at %v: %v blobHash: %v", i, versionedHashes[i], blobHashes[i])
299299
}
300300
}
301301
// Only set withdrawalsRoot if it is non-nil. This allows CLs to use

0 commit comments

Comments
 (0)