Skip to content

Fix: Improve Git transport integrity and fix transaction filter panic - #2

Open
mertcano wants to merge 1 commit into
podnetwork:mainfrom
mertcano:mertcano-patch-1
Open

Fix: Improve Git transport integrity and fix transaction filter panic#2
mertcano wants to merge 1 commit into
podnetwork:mainfrom
mertcano:mertcano-patch-1

Conversation

@mertcano

Copy link
Copy Markdown

Description

This PR secures dependency resolution and resolves a runtime panic path in the transaction filtering logic of the op-rbuilder crate[cite: 41, 48].

Key Changes

  • Git Transport Integrity (Cargo.toml): Changed the rollup-boost source to an HTTPS URL with an immutable Git revision (rev = "64be33fccdbe8b6c99118b5395a3949c7b73ae4c") to prevent transport downgrades and moving-target dependency resolution[cite: 41, 47].
  • Production Panic Prevention (src/builders/context.rs): Replaced an unchecked reverted_hashes.unwrap() call with Option::is_some_and during transaction filtering[cite: 41, 48]. This preserves bundle semantics while eliminating a panic path for malformed or unexpectedly absent optional state[cite: 41, 48].

### Description
This PR secures dependency resolution and resolves a runtime panic path in the transaction filtering logic of the `op-rbuilder` crate[cite: 41, 48].
### Key Changes
* **Git Transport Integrity (`Cargo.toml`):** Changed the `rollup-boost` source to an HTTPS URL with an immutable Git revision (`rev = "64be33fccdbe8b6c99118b5395a3949c7b73ae4c"`) to prevent transport downgrades and moving-target dependency resolution[cite: 41, 47].
* **Production Panic Prevention (`src/builders/context.rs`):** Replaced an unchecked `reverted_hashes.unwrap()` call with `Option::is_some_and` during transaction filtering[cite: 41, 48]. This preserves bundle semantics while eliminating a panic path for malformed or unexpectedly absent optional state[cite: 41, 48].
Sign up for freeto 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.

1 participant

@mertcano