Skip to content

Commit 5dc241d

Browse files
committed
fix: check envelope
1 parent e201a73 commit 5dc241d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

beacon_chain/gossip_processing/block_processor.nim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,9 @@ proc verifySidecars(
195195
const consensusFork = typeof(signedBlock).kind
196196

197197
when consensusFork >= ConsensusFork.Gloas:
198-
if sidecarsOpt.isSome:
198+
if envelopeOpt.isSome and sidecarsOpt.isSome:
199199
let
200-
signedEnvelope = envelopeOpt.valueOr:
201-
return err(VerifierError.Invalid)
200+
signedEnvelope = envelopeOpt.get()
202201
columns = sidecarsOpt.get()
203202
kzgCommits = signedEnvelope.message.blob_kzg_commitments.asSeq
204203
if columns.len > 0 and kzgCommits.len > 0:

0 commit comments

Comments
 (0)