@@ -12,8 +12,7 @@ use crate::cmd::block_history::BlockSummary;
1212use crate :: contracts:: { AclContract , TfheContract } ;
1313use crate :: database:: dependence_chains:: dependence_chains;
1414use crate :: database:: tfhe_event_propagate:: {
15- acl_result_handles, tfhe_inputs_handle, tfhe_result_handle, Chain ,
16- ChainHash , Database , LogTfhe ,
15+ acl_result_handles, tfhe_result_handle, Chain , ChainHash , Database , LogTfhe ,
1716} ;
1817
1918pub struct BlockLogs < T > {
@@ -187,11 +186,9 @@ pub async fn ingest_block_logs(
187186 for tfhe_log in tfhe_event_log {
188187 let inserted = db. insert_tfhe_event ( & mut tx, & tfhe_log) . await ?;
189188 at_least_one_insertion |= inserted;
190- // Count newly inserted dependent TFHE ops (ops that consume input
191- // handles). This approximates dependent work added to a chain by this
192- // ingest pass.
193- let has_dependencies = !tfhe_inputs_handle ( & tfhe_log. event ) . is_empty ( ) ;
194- if slow_lane_enabled && inserted && has_dependencies {
189+ // Count all newly inserted ops per chain to avoid underestimating
190+ // pressure from producer paths that are required by downstream work.
191+ if slow_lane_enabled && inserted {
195192 let total = dependent_ops_by_chain
196193 . entry ( tfhe_log. dependence_chain )
197194 . or_default ( ) ;
0 commit comments