Skip to content

Commit

Permalink
fix: propagate chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Jan 15, 2025
1 parent 5c3fc2f commit 7fffaa2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions crates/fuel-core/src/graphql_api/da_compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub fn da_compress_block<T>(
block: &Block,
block_events: &[Event],
db_tx: &mut T,
#[cfg(feature = "fault-proving")] chain_id: fuel_core_types::fuel_types::ChainId,
) -> anyhow::Result<()>
where
T: OffChainDatabaseTransaction,
Expand All @@ -61,6 +62,8 @@ where
block_events,
},
block,
#[cfg(feature = "fault-proving")]
chain_id,
)
.now_or_never()
.expect("The current implementation resolved all futures instantly")?;
Expand Down
9 changes: 8 additions & 1 deletion crates/fuel-core/src/graphql_api/worker_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,14 @@ where
match self.da_compression_config {
DaCompressionConfig::Disabled => {}
DaCompressionConfig::Enabled(config) => {
da_compress_block(config, block, &result.events, &mut transaction)?;
da_compress_block(
config,
block,
&result.events,
&mut transaction,
#[cfg(feature = "fault-proving")]
self.chain_id,
)?;
}
}

Expand Down

0 comments on commit 7fffaa2

Please sign in to comment.