Skip to content

Commit

Permalink
Deprecate Legacy BlockProductionMethod (#3113)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Oct 10, 2024
1 parent fda4def commit ea87ffa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ The order of precedence for the chosen tools version goes: `--tools-version` arg
* `solana-test-validator`: Add `--clone-feature-set` flag to mimic features from a target cluster (#2480)
* `solana-genesis`: the `--cluster-type` parameter now clones the feature set from the target cluster (#2587)
* `unified-scheduler` as default option for `--block-verification-method` (#2653)
* warn that `thread-local-multi-iterator` option for `--block-production-method` is deprecated (#3113)

## [2.0.0]
* Breaking
Expand Down
10 changes: 10 additions & 0 deletions core/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,16 @@ impl Validator {
"Using: block-verification-method: {}, block-production-method: {}",
config.block_verification_method, config.block_production_method
);
if matches!(
config.block_production_method,
BlockProductionMethod::ThreadLocalMultiIterator
) {
warn!(
"--block-production-method thread-local-multi-iterator is deprecated \
and will be removed in a future release. Please use \
--block-production-method=central-scheduler instead."
);
}

let (replay_vote_sender, replay_vote_receiver) = unbounded();

Expand Down

0 comments on commit ea87ffa

Please sign in to comment.