Skip to content

Commit

Permalink
refactor: Remove unnecessary assignment and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Sep 26, 2023
1 parent f0b1612 commit 7e53d90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cannon/deriver/beacon/eth/v2/beacon_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ func (b *BeaconBlockDeriver) getAdditionalData(_ context.Context, block *spec.Ve
}

extra.Version = block.Version.String()
// Always set to false for sentry events
extra.FinalizedWhenRequested = false

var txCount int

Expand Down Expand Up @@ -340,6 +338,7 @@ func (b *BeaconBlockDeriver) getAdditionalData(_ context.Context, block *spec.Ve
extra.TransactionsTotalBytes = wrapperspb.UInt64(uint64(txSize))
extra.TransactionsTotalBytesCompressed = wrapperspb.UInt64(uint64(compressedTxSize))

// Always set to true when derived from the cannon.
extra.FinalizedWhenRequested = true

return extra, nil
Expand Down

0 comments on commit 7e53d90

Please sign in to comment.