Skip to content

Commit 7ca7d5b

Browse files
committed
Enforce LogsBloomCheckFunc signature
1 parent 67c021d commit 7ca7d5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ethutil/validate_logs_with_block.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ type LogsFilterFunc func(logs []types.Log, header *types.Header, block *types.Bl
1616

1717
// ValidateLogsWithBlockHeader validates that the logs come from the given block
1818
// by comparing the calculated bloom against the header bloom.
19+
var _ LogsBloomCheckFunc = ValidateLogsWithBlockHeader
20+
1921
func ValidateLogsWithBlockHeader(logs []types.Log, header *types.Header) bool {
2022
return bytes.Equal(ConvertLogsToBloom(logs).Bytes(), header.Bloom.Bytes())
2123
}

0 commit comments

Comments
 (0)