Skip to content

Commit

Permalink
Update basic_authorship.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
vipocenka authored Mar 7, 2025
1 parent 8dc4818 commit a773130
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions client/basic-authorship/src/basic_authorship.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,16 @@ where
futures_timer::Delay::new(deadline.saturating_duration_since((self.now)()) / 8).fuse();

let mut pending_iterator = select! {
res = t1 => res,
res = t1 => match res {
Ok(value) => value,
Err(e) => {
error!(target: LOG_TARGET,
"NODE_CRITICAL_ERROR_005 - Transaction pool error at block #{}: {:?}",
self.parent_number, e
);
self.transaction_pool.ready()
}
},
_ = t2 => {
warn!(target: LOG_TARGET,
"Timeout fired waiting for transaction pool at block #{}. \
Expand Down Expand Up @@ -635,11 +644,12 @@ where
};

info!(
"🎁 Prepared block for proposing at {} ({} ms) [hash: {:?}; parent_hash: {}; {extrinsics_summary}",
"🎁 Prepared block for proposing at {} ({} ms) [hash: {:?}; parent_hash: {}; {extrinsics_summary}]",
block.header().number(),
block_took.as_millis(),
<Block as BlockT>::Hash::from(block.header().hash()),
block.header().parent_hash(),
extrinsics_summary
);
telemetry!(
self.telemetry;
Expand Down

0 comments on commit a773130

Please sign in to comment.