Skip to content

Commit

Permalink
fix: improve vague log message when selecting candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
LGLO committed Oct 18, 2024
1 parent e5f87c0 commit 01a8466
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ provider will not query the main chain state or produce inherent data at all.
* Implemented batch queries and caching for the native token observability. Improves performance of the full-sync.
* Added ogmios-client interal library for communication with Ogmios
* Using Ogmios for reading Cardano Network parameters in `partner-chains-cli`, instead of asking user to choose them
* Bugfix: rephrased vague log message when selecting the epoch committee
* Removed the `main-chain-follower-api` completely. Each crate that depended on it now defines its own `*DataSource`
trait, implemented by separate types in `db-sync-follower` and `main-chain-follower-mock` crates. For reference
on how to create these new data sources see `node/src/main_chain_follower.rs` file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ pub fn select_authorities<
if let Some(validators) =
weighted_selection(candidates_with_weight, committee_size, random_seed)
{
info!("💼 Selected {} validators for epoch {}, from {} permissioned candidates and {} trustless candidates", validators.len(), sidechain_epoch, valid_permissioned_candidates.len(), valid_trustless_candidates.len());
Some(BoundedVec::truncate_from(validators))
let validators = BoundedVec::truncate_from(validators);
info!("💼 Selected committee of {} seats for epoch {} from {} permissioned and {} registered candidates", validators.len(), sidechain_epoch, valid_permissioned_candidates.len(), valid_trustless_candidates.len());
Some(validators)
} else {
warn!("🚫 Failed to select validators for epoch {}", sidechain_epoch);
None
Expand Down

0 comments on commit 01a8466

Please sign in to comment.