Skip to content

Commit d7c4344

Browse files
committed
Update validation.ts
1 parent 518b5d9 commit d7c4344

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/validation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export const isBlockHash = (hash: string): boolean => {
3838
}
3939

4040
// Heuristic: Block Hashes are more likely to start with 6 consecutive zeros
41-
const leadingZeros = hash.substring(0, 6);
42-
if (leadingZeros === '000000') {
41+
const leadingZeros = hash.substring(0, 12);
42+
if (leadingZeros === '000000000000') {
4343
return true; // Likely a Block Hash based on heuristic
4444
}
4545

0 commit comments

Comments
 (0)