Skip to content

fix: bump light-event to 0.23.1 (upstream OOB panic fix)#341

Merged
hetdagli234 merged 1 commit into
mainfrom
fix/bump-light-event-0.24
Mar 18, 2026
Merged

fix: bump light-event to 0.23.1 (upstream OOB panic fix)#341
hetdagli234 merged 1 commit into
mainfrom
fix/bump-light-event-0.24

Conversation

@i-am-bert
Copy link
Copy Markdown
Contributor

Problem

Both pitt and fra Photon ingestors are stuck at slot 407265370 due to an index-out-of-bounds panic in light-event v0.21.0 (create_nullifier_queue_indices).

Root Cause

Bug in light-event crate: create_nullifier_queue_indices() sizes a vec to the filtered batch_input_accounts count but iterates over all input_compressed_accounts by index, causing a panic when the two counts differ.

Upstream fix: Lightprotocol/light-protocol#2353

Fix

Bump light-event from "0.21" to "0.24" in Cargo.toml.

⚠️ Merge and deploy once light-event 0.24.0 is published to crates.io. The upstream PR removes the buggy create_nullifier_queue_indices and create_address_queue_indices functions entirely, inlining queue index assignment into the construction loop.

Deploy

Once the crate is published:

cargo update -p light-event
cargo check  # verify it resolves and compiles

# Then deploy both regions:
cd infra/ansible/photon
ansible-playbook main.yml -l kubernetes-pitt -e env=prod-mainnet-pitt --tags photon-system
ansible-playbook main.yml -l kubernetes-fra -e env=prod-mainnet-fra --tags photon-system

@i-am-bert i-am-bert force-pushed the fix/bump-light-event-0.24 branch from 0a368c4 to 4d5a676 Compare March 18, 2026 17:12
@i-am-bert i-am-bert changed the title fix: bump light-event to 0.24 (upstream OOB panic fix) fix: bump light-event to 0.23.1 (upstream OOB panic fix) Mar 18, 2026
@hetdagli234 hetdagli234 requested a review from cbpodd March 18, 2026 17:13
Comment thread Cargo.toml Outdated
Bumps all light-* dependencies to compatible versions:
- light-event: 0.21 -> 0.23.1 (includes OOB panic fix)
- light-concurrent-merkle-tree: 4 -> 5
- light-batched-merkle-tree: 0.10 -> 0.11
- light-merkle-tree-metadata: 0.10 -> 0.11
- light-compressed-account: 0.10.1 -> 0.11
- light-indexed-merkle-tree: 4 -> 5
- light-token-interface: 0.4 -> 0.5
- light-sdk-types: 0.20 -> 0.23

Fixes the index-out-of-bounds panic in create_nullifier_queue_indices()
that halted both pitt and fra ingestors at slot 407265370.

Upstream fix: Lightprotocol/light-protocol#2353
cargo check passes.
@i-am-bert i-am-bert force-pushed the fix/bump-light-event-0.24 branch from 4d5a676 to dd6e01e Compare March 18, 2026 17:24
@hetdagli234 hetdagli234 merged commit a7e022f into main Mar 18, 2026
1 check passed
@hetdagli234 hetdagli234 deleted the fix/bump-light-event-0.24 branch March 18, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants