Skip to content

Commit

Permalink
simplify loop in case where blob_versioned_hashes doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
etan-status committed Aug 21, 2024
1 parent 069938d commit 289ce0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_chain/spec/helpers_el.nim
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func is_valid_versioned_hashes*(blck: ForkyBeaconBlock): Result[void, string] =
if txBytes.len == 0 or txBytes[0] != TxEip4844.byte:
continue # Only blob transactions may have blobs
let tx = ? txBytes.readExecutionTransaction()
for vHash in tx.versionedHashes:
if tx.versionedHashes.len > 0:
return err("No blob transaction allowed before Deneb")
ok()
else:
Expand Down

0 comments on commit 289ce0b

Please sign in to comment.